[Crash-utility] [PATCHv2 04/11] Fix percpu handling for symbols without debuginfo

Petr Tesarik ptesarik at suse.cz
Mon Oct 21 19:47:57 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>

---
 symbols.c |    3 +++
 1 file changed, 3 insertions(+)
-------------- 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/20131021/8f546ccd/attachment.bin>


More information about the Crash-utility mailing list