All Forums |
Register |
Login |
Search |
Subscriptions |
My Profile |
Inbox |
Tool Warehouse |
FAQs |
Resources |
Help |
Member List |
Address Book |
Logout |
|
|
gdb and shared objects
|
Logged in as: Guest |
Users viewing this topic: none |
|
Login |
|
|
gdb and shared objects - Mar. 28, '06, 2:17:55 AM
|
|
|
asfoster
Posts: 36
Joined: Oct. 18, '05,
From: Lincolnshire UK
Status: offline
|
This is a resubmission of an entry I made in January but had no replies so I am trying again...
I am debugging some C code under Interix using gdb and need to step into some source that is part of a shared object (.so) file. However, I cannot get to see the code as I get the following message:
(gdb) list my_test_func
7 /tmp/cczLMK6t.s: No such file or directory.
in /tmp/cczLMK6t.s
Rather than taking me to the .c file (which I have forced to be in my gdb source-file-search-path) it looks for some temporary assember file. I have had this problem for some time but have now got to the point where I would really like to get it sorted out. I can work around this by rebuilding the .so as an archive (.a) and rebuilding the application but this is not ideal.
Also <Ctrl>C does not seem to work in gdb when running from an xterm which is a bit of a nuisance.
Does anyone have any suggestions
Thanks
_____________________________
Andy Foster
|
|
|
RE: gdb and shared objects - Mar. 28, '06, 4:35:24 AM
|
|
|
Rodney
Posts: 3714
Joined: Jul. 9, '02,
From: /Tools lab
Status: offline
|
Just so you know, I'm not ignoring the posting.
I haven't heard of being able to step into a shared object with gdb on Interix.
The only workaround is as you noted.
|
|
|
RE: gdb and shared objects - Apr. 6, '06, 6:25:24 AM
|
|
|
asfoster
Posts: 36
Joined: Oct. 18, '05,
From: Lincolnshire UK
Status: offline
|
Well, I have now found that this is certainly possible. All this time I have been running gdb as /opt/gcc.3.3/bin/gdb - I was too lazy to edit my login to set it in my search path....until now.
I thought that perhaps I should just try setting my path to include /opt/gcc.3.3/bin and hey-presto! I can now debug my shared object code. And Ctrl-C works when I invoke gcc from xterm too - another bug-bear.
So I am very happy that now I can debug away into all my 60 shared libs!
_____________________________
Andy Foster
|
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
|
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts |
|
|
|