[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)
From: |
Laurent Vivier |
Subject: |
Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes) |
Date: |
Wed, 09 Feb 2011 11:14:01 +0100 |
>On 9 February 2011 09:20, Laurent Vivier <address@hidden> wrote:
>> It is strange as we have in gdb, if I remember correctly, an explicit check
>of the size of prstatus:
>>
>> 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))
>> ...
>>
>> 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
--
--------------------- address@hidden ---------------------
"Tout ce qui est impossible reste à accomplir" Jules Verne
"Things are only impossible until they're not" Jean-Luc Picard
- Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes), (continued)