qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes)
@ 2011-02-09  9:20 Laurent Vivier
  2011-02-09  9:52 ` Peter Maydell
  2011-02-09 10:25 ` Riku Voipio
  0 siblings, 2 replies; 7+ messages in thread
From: Laurent Vivier @ 2011-02-09  9:20 UTC (permalink / raw)
  To: laurent, riku.voipio; +Cc: aliguori, qemu-devel

>On Sat, Feb 05, 2011 at 10:49:51PM +0100, Laurent Vivier wrote:
>> >On 02/03/2011 12:16 PM, Laurent Vivier wrote:
>> >> And this one ?
>> >>
>> >> linux-user: correct core dump format
>> >>
>> >> http://patchwork.ozlabs.org/patch/78464/
>
>Actually that patch is not ok. The issues you fix on m68k appear
>on arm/eabi after applying your patch. bswap part appears ok, but
>the padding is needed atleast on arm.

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).

Regards,
Laurent


-- 
--------------------- Laurent@vivier.eu  ---------------------
"Tout ce qui est impossible reste à accomplir"    Jules Verne
"Things are only impossible until they're not" Jean-Luc Picard

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [Qemu-devel] [PATCH 0/2][v3]  correct core dump format
@ 2011-02-13  2:22 Laurent Vivier
  2011-02-13  2:22 ` [Qemu-devel] [PATCH 2/2] linux-user: " Laurent Vivier
  0 siblings, 1 reply; 7+ messages in thread
From: Laurent Vivier @ 2011-02-13  2:22 UTC (permalink / raw)
  To: Riku Voipio; +Cc: qemu-devel

This is the v3 of my patch correcting the core dump format.

It introduces a new parameter of the target: the datatype alignment size.

Targets like i386, mips or ppc align (short, int, long, long long) on
(2, 4, 4, 8), target like x86_64 aligns on (2, 4, 8, 8)

but arm aligns on (2, 4, 4, 4) and m68k (680x0) on (2, 2, 2, 2).

And this knowledge is needed to correctly generate a core dump.

For other targets, please update the patch with your favorite one.

[PATCH 1/2] linux-user: Define target alignment size
[PATCH 2/2] linux-user: correct core dump format

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-13  2:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-09  9:20 [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes) Laurent Vivier
2011-02-09  9:52 ` Peter Maydell
2011-02-09 10:25 ` Riku Voipio
2011-02-10 23:07   ` [Qemu-devel] [PATCH 0/2] correct core dump format Laurent Vivier
2011-02-10 23:07   ` [Qemu-devel] [PATCH 1/2] Define target alignment size Laurent Vivier
2011-02-10 23:07   ` [Qemu-devel] [PATCH 2/2] linux-user: correct core dump format Laurent Vivier
  -- strict thread matches above, loose matches on Subject: below --
2011-02-13  2:22 [Qemu-devel] [PATCH 0/2][v3] " Laurent Vivier
2011-02-13  2:22 ` [Qemu-devel] [PATCH 2/2] linux-user: " Laurent Vivier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).