Bug 12679 - gdb does show user code when no libc available
Summary: gdb does show user code when no libc available
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: corefiles (show other bugs)
Version: 7.2
: P2 minor
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-15 17:37 UTC by rjgebis
Modified: 2011-04-15 17:37 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rjgebis 2011-04-15 17:37:38 UTC
I just installed from source 7.2 gdb release on CentOS 5.6.
After loading core file switching between threads when I do list to show source
I get source from last list where user code was available.

For example I am on thread 5 and do "where"
it shows stack with libc on top of the stack. If I do up few times until I get to frame where user code executed, I do "list" and see my code.

Now I switch to some other thread and right away I issue "list", if libc is at top of the stack 
list shows wrong source from user stack (looks like last "list" from different thread - user code)
instead of printing "No source available" until i go up the stack to user code.