Mantis - gdb
Viewing Issue Advanced Details
5251 regular use major always 2015-09-03 19:39 2015-09-03 19:39
brianvandenberg  
 
normal  
new  
open  
none    
none  
0005251: Symbol info not loaded when attaching to a running process
I believe the following bug post describes the exact same issue:

https://sourceware.org/bugzilla/show_bug.cgi?id=17903 [^]


This works:

    ~ gdb my_executable --pid=1234
    /* ... */
    (gdb) where
    /* stack trace gets listed correctly */

This does not:

    ~ gdb
    (gdb) attach 1234
    /* ... */
    (gdb) where
    /* stack trace with lots of addresses and question marks */
Assuming this and the other bug I linked to refer to the same issue, their belief is the mechanism gdb is using to discover the executable based on the pid isn't compatible with Solaris.

This is causing difficulties in gui debuggers because they tend to just attach using a pid without giving the executable path.

There is a work around:

    ~ gdb
    (gdb) attach 1234
    /* ... */
    (gdb) file /path/to/file
    (gdb) sharedlibrary .
Issue History
2015-09-03 19:39 brianvandenberg New Issue

There are no notes attached to this issue.