cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ctelfer
Observer
Observer
6,479 Views
Registered: ‎05-08-2013

Trouble Connecting through GDB to Target

Hi,

I am having trouble using GDB through XMD. After entering the command to connect to the target, the XMD/GDB console seems to hang.  The command never completes.  I am using SDK 14.7.  Any help would be appreciated.

 

XMD% powerpc-eabi-gdb -nw "C:/Workspace/App/Debug/BmcpApp.elf"
GNU gdb 6.5
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "--host=i686-pc-mingw32 --target=powerpc-eabi"...
(gdb) set processor powerpc:440
The target architecture is assumed to be powerpc:440
(gdb) target remote localhost:1234

 

 

0 Kudos
Reply
2 Replies
htsvn
Xilinx Employee
Xilinx Employee
6,469 Views
Registered: ‎08-02-2007

hi,

 

is this the first time you are observing the gdb getting hanged or you were able to make it work in other version of tools?

 

there is a xapp that helps in debugging using gdb. you can have a look at page 10 as a reference

http://www.xilinx.com/support/documentation/application_notes/xapp1117.pdf

 

--hs

----------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------------
0 Kudos
Reply
ctelfer
Observer
Observer
6,456 Views
Registered: ‎05-08-2013

This is the first time I am trying to use GDB from the XMD console. I typically just use the SDK GUI to debug but I need to dig a bit deeper for an issue I am tracking. I want to use GDB for this.  I was following the doc that you mentioned above.  I was folloing the steps:

...

(gdb)
target remote localhost:1234
Now, tell GDB to download the application into memory:
(gdb)
load
...
But I never get a chance to enter the "load" command, the command prompt never returns after the "target" command.
0 Kudos
Reply