(toppers-users 4111) GDBでasp_at91skyeye_gccの動作上手くいかず

koizumi yoshiyuki koizumiyoshiyuki @ gmail.com
2013年 7月 2日 (火) 08:59:01 JST


 こいさんです

SKYEYE(skyeye_devm_package-1.0.5)を使ってasp_at91skyeye_gccを動作させていますが、上手くいっていません。いくつか疑問があります。コンパイラはSourcery_G++_Lite
2013_05-23を使用、システムはWindows8
64bitです。

確認したこと
1 skyeye_devm_package-1.0.5インストール。 問題なし
2 ASPをBuild。 問題なし。
3 at91skyeyeをskyeye上で実行(skyeye.exe -e asp.exe -c
..\target\at91skyeye_gcc\skyeye.conf)。問題なし
4 シェルを2つ開いて片方でskyeye(skyeye.exe -c ..\target\at91skyeye_gcc\skyeye.conf -d
)を実行。iniファイルを作成して、もう一方でGDB(arm-none-eabi-gdb.exe -x dbg_at91skyeye.ini
asp.exe)を起動。
------

#dbg_at91skyeye.ini

target remote localhost:12345

load
------

DGBは起動に失敗。以下起動ログ。
------

$ arm-none-eabi-gdb.exe -x dbg_at91skyeye.ini asp.exe

GNU gdb (Sourcery CodeBench Lite 2013.05-23) 7.4.50.20120716-cvs

Copyright (C) 2012 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. Type "show copying"

and "show warranty" for details.

This GDB was configured as "--host=i686-mingw32 --target=arm-none-eabi".

For bug reporting instructions, please see:

<https://sourcery.mentor.com/GNUToolchain/>...

Reading symbols from
c:\devel\toppers\asp\asp_at91skyeye_gcc-20120310.tar\asp\ob

j\asp.exe...done.

vector_table () at ../arch/arm_gcc/common/core_support.S:61

61 ldr pc, reset_vector /* ・・サ・テ・ネ */

Trace is already running on the target.

dbg_at91skyeye.ini:3: Error in sourced command file:

Reply contains invalid hex digit 117

(gdb)
------

5 Reply contains invalid hex digit 117を調べたところ、GDBのバージョンを戻すと・・・の記事を見たので、
Sourcery_G++_Liteをarm-2010q1に入れ替えた処、上記は回避、GDBをcontinueで進めるとaspは動作している。

6 ただし、GDBをCTL+Cで中断、quitでGDBを終了させた処、SKYEYが暴走。下記のメッセージを繰り返し出力。GDBが終了できない。

------

Reply contains invalid hex digit: No such file or directory

Reply contains invalid hex digit: No such file or directory

Reply contains invalid hex digit: No such file or directory

Reply contains invalid hex digit: No such file or directory

------

GDB側のログ(ログ中に<−でコメントがあります)

------

$ arm-none-eabi-gdb.exe -x dbg_at91skyeye.ini asp.exe

GNU gdb (Sourcery G++ Lite 2010q1-188) 7.0.50.20100218-cvs

Copyright (C) 2010 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law. Type "show copying"

and "show warranty" for details.

This GDB was configured as "--host=i686-mingw32 --target=arm-none-eabi".

For bug reporting instructions, please see:

<https://support.codesourcery.com/GNUToolchain/>...

Reading symbols from
c:\devel\toppers\asp\asp_at91skyeye_gcc-20120310.tar\asp\ob

j\asp.exe...done.

vector_table () at ../arch/arm_gcc/common/core_support.S:61

61 ldr pc, reset_vector /* ・・サ・テ・ネ */

Loading section .text, size 0x7878 lma 0x0

Loading section .cs3.interrupt_vector, size 0x40 lma 0x7878

Loading section .eh_frame, size 0x4 lma 0x78b8

Loading section .rodata, size 0x1144 lma 0x78bc

Loading section .data, size 0x438 lma 0x8a00

Start address 0x3c, load size 36408

Transfer rate: 382 KB/sec, 158 bytes/write.

(gdb) continue <−GDB起動、aspを実行

Continuing.

Can't send signals to this remote system. SIGHUP not sent.



 Program received signal SIGHUP, Hangup.

0x00000230 in task (exinf=1) at sample1.c:151

151 for (i = 0; i < task_loop; i++);

(gdb) quit <−、GDBをCTL+cで停止、終了させたいのでquit

A debugging session is active.



 Inferior 1 [Remote target] will be killed.



 Quit anyway? (y or n) y



 Trace is running. Continue tracing after detach? (y or n) y
<−この入力でSKYEYEが暴走、SKYEYEはCTL+Cで停止させた。

Remote communication error: No error.

(gdb) quit <−コマンド入力なったので、再度終了させたは

A debugging session is active.



 Inferior 1 [Remote target] will be killed.



 Quit anyway? (y or n) y

putpkt: write failed: No error. <−エラーになり、GDBは終了できない。

(gdb) <− 何度やっても同じ、赤ボタンXで強制終了させた。

------


疑問

A. SKYEYEは最新のGDBでは動作せず、古いものなら動くのはなぜか。新しいもので動いていほしい。

B. 古いものでもGDBが終了できないのはなぜか

自分のやっていることが正しくない気がしています。手順に誤りがあればご教授を願います。最新のGDBでSKYEYが動作すればinsigthも動作すると思っています。


以上
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: <http://www.toppers.jp/pipermail/users/attachments/20130702/8ebff6cd/attachment.html>