[Crash-utility] [PATCH 4/11] Fix percpu handling for symbols without debuginfo

Petr Tesarik ptesarik at suse.cz
Fri Oct 18 11:49:29 UTC 2013


When trying to show a percpu symbol without debuginfo, crash fails like
this:

crash> p fcoe_percpu:0
p: gdb request failed: p *(<data variable, no debug info>*)
0xffff88011e2d4900

This is because gdb does not really fail if the type is unknown:

crash> gdb whatis fcoe_percpu
type = <data variable, no debug info>
crash> gdb info variables fcoe_percpu
All variables matching regular expression "fcoe_percpu":
 
Non-debugging symbols:
0x0000000000014900  fcoe_percpu

Of course, the actual contents cannot be shown in this case, but crash
should at least display the address:
 
crash> p fcoe_percpu:0
&per_cpu(fcoe_percpu, 0) = $1 = (void *) 0xffff88011e214900

Signed-off-by: Petr Tesarik <ptesarik at suse.cz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: typename-errors.patch
Type: text/x-patch
Size: 1148 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/crash-utility/attachments/20131018/389123ca/attachment.bin>


More information about the Crash-utility mailing list