Received: from [140.186.70.92] (port=39807 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pn73t-0006Z9-7V for qemu-devel@nongnu.org; Wed, 09 Feb 2011 05:14:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pn73r-0002nq-W4 for qemu-devel@nongnu.org; Wed, 09 Feb 2011 05:14:13 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:63506) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pn73r-0002nR-OS for qemu-devel@nongnu.org; Wed, 09 Feb 2011 05:14:11 -0500 From: Laurent Vivier Message-Id: <26369978.339392.1297246441946.JavaMail.servlet@pustefix155.kundenserver.de> Subject: Re: [Qemu-devel] Re: [PING 0.14] Missing patches (mostly fixes) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 09 Feb 2011 11:14:01 +0100 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: peter.maydell@linaro.org, Laurent@vivier.eu Cc: aliguori@us.ibm.com, riku.voipio@iki.fi, qemu-devel@nongnu.org >On 9 February 2011 09:20, Laurent Vivier wrote: >> It is strange as we have in gdb, if I remember correctly, an explicit ch= eck=20 >of the size of prstatus: >> >> gdb/bfd/elf.c: >> >> =C2=A0 =C2=A0if defined (HAVE_PRSTATUS_T) >> >> =C2=A0 =C2=A0static bfd_boolean >> =C2=A0 =C2=A0elfcore_grok_prstatus (bfd *abfd, Elf_Internal_Note *note) >> ... >> =C2=A0 =C2=A0 =C2=A0if (note->descsz =3D=3D sizeof (prstatus_t)) >> ... >> >> How do you test this patch ? Do you use native gdb on ARM ? Because, for= =20 >m68k, cross-compiled gdb does not work (it cannot have sizeof(prstatus_t) = for=20 >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 loa= d the core with your cross-compiled gdb. Regards, Laurent --=20 --------------------- Laurent@vivier.eu --------------------- "Tout ce qui est impossible reste =C3=A0 accomplir" Jules Verne "Things are only impossible until they're not" Jean-Luc Picard