Skip to contentSkip to conversation

Missing patches (mostly fixes)

Qemu-devel Laurent Vivier 1 participant 1 message Feb 9, 2011

lore
Share & tools
lore
#0 lore raw
Quoted 14 lines · Laurent Vivier
Quoted 1 line

It is strange as we have in gdb, if I remember correctly, an explicit check

of the size of prstatus:

Quoted 11 lines

gdb/bfd/elf.c:

   if defined (HAVE_PRSTATUS_T)

   static bfd_boolean
   elfcore_grok_prstatus (bfd *abfd, Elf_Internal_Note *note)
...
     if (note->descsz == sizeof (prstatus_t))
...

Quoted 8 lines
Quoted 1 line

How do you test this patch ? Do you use native gdb on ARM ? Because, for

m68k, cross-compiled gdb does not work (it cannot have sizeof(prstatus_t) for m68k).

I dunno about m68k, but if ARM gdb behaves differently natively versus the cross-tools version (ie hosted on x86 to target ARM) then that sounds like a bug we in Linaro would like to know about :-)

What I saw for m68k is it cannot access to the saved registers of the core dump (i.e. you cannot use cross-compiled gdb to debug a core dump ...)

What you can try is to generate a core dump with a "kill -SIGILL" on a qemu-arm process (don't forget to do "ulimit -c unlimited" before) and then load the core with your cross-compiled gdb.

Regards,
Laurent

Signature · 3 lines
--------------------- [email protected]  ---------------------
"Tout ce qui est impossible reste à accomplir"    Jules Verne
"Things are only impossible until they're not" Jean-Luc Picard