2016-09-25 39 views
1

GDBの仕組みを知るために、この(http://cs.baylor.edu/~donahoo/tools/gdb/tutorial.html)ガイドを使用します。エラーE01でGDBリモートデバッグが失敗する

対象: はコンパイルと私の組込みLinux ARMプラットフォームにコードをアップロードした後、私は私のターゲットでgdbserverをと接続するためのリモート接続を使用します(仮想マシンで実行されているのUbuntu 14.04)

[email protected]:/Software# gdbserver HOST:1234 broken 
Process broken created; pid = 1103 
Listening on port 1234 
Remote debugging from host 192.168.178.32 

ホスト:

Remote debugging using 192.168.178.33:1234 
warning: A handler for the OS ABI "GNU/Linux" is not built into this 
configuration of GDB. Attempting to continue with the default arm settings. 

Cannot access memory at address 0x0 
0x43330d40 in ??() 
(gdb) 

私は43行目とそれがブレークポイントで停止するまでプログラムを継続するためにブレークポイントを設定します。

しかし、私はこのエラーを得た私のホスト上のステップ・コールの後、: ホスト:

warning: Remote failure reply: E01 
Ignoring packet error, continuing... 

対象:

ptrace: Input/output error. 
input_interrupt, count = 1 c = 36 ('$') 

それが何を意味し、私はそれをどのように修正することができますか?

ありがとうございました。

答えて

0

Host (Ubuntu 14.04 running in a virtual machine):

Remote debugging using 192.168.178.33:1234 
warning: A handler for the OS ABI "GNU/Linux" is not built into this 
configuration of GDB. Attempting to continue with the default arm settings.` 

これは、(ホスト)GDBが、デバッグするターゲットをサポートするように構築されていないことを示しています。

What does it mean and how can I fix it?

あなたは(ホスト)GDBの異なるビルドを取得、または自分が正しい--target設定で1を構築することのいずれかが必要です。

通常正しいホストGDBは、ターゲット用に作成するクロス-gccに含まれています。だから、gdbの代わりに/path/to/cross-gdbを実行するだけで簡単に修正することができます。

+0

ありがとうございました。それは謝罪のヒントだった。 arm-none-eabi-gdbが私の現在のコンパイラで動作していないようです。 bitbake gdb-cross クロスコンパイラ用のgdbバージョンを作成することができます。 – Kampi

関連する問題