Thread View: gnu.gdb.bug
1 messages
1 total messages
Started by Doug Abbott
Mon, 01 May 2006 04:09
gdb and shared libraries
Author: Doug Abbott
Date: Mon, 01 May 2006 04:09
Date: Mon, 01 May 2006 04:09
33 lines
2504 bytes
2504 bytes
Hi,
I know this problem has been alluded to in the past, but I haven't seen
a workable solution to the exact problem I'm seeing. I'm running gdb
6.3 under Red Hat 9 on a PC accessing an ARM9 target board through
gdbserver. Oh, and by the way, I refuse to work at the command line
level so I'm running DDD on top of gdb.
In trying to debug a simple "Hello World" program, which appears to run
correctly on the target outside of gdb, here's what I get. When I
connect to the remote target via TCP, I get:
0x40001470 in ?? ()
This in itself is suspicious. I don't recall ever seeing anything like
this before using other remote targets. Then when I execute next, I get:
Cannot access memory at address 0x0
Cannot find bounds of current function
Hmmm, that last one leads me to believe gdb isn't finding the
appropriate shared libraries. I tried executing the command:
set solib-search-path <arm_library_path>
before connecting to the target. Didn't work.
And why on earth should gdb be trying to access memory at address 0?
Any thoughts???
Thanks,
Doug
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads