[PATCH] UnixWare Pentium III core file fix
Michael Snyder
msnyder@redhat.com
Wed Sep 27 15:02:00 GMT 2000
Petr Sorfa wrote:
>
> Hi,
>
> Here's a patch for allowing GDB to read core files dumped by UnixWare
> 7.1.x on a Pentium III or greater.
Hello,
I like the patch, but this is the wrong group! ;-)
Could you please send this to binutils@sourceware.cygnus.com?
I'm sure it will be approved.
Michael Snyder
> 2000-09-25 Petr Sorfa <petrs@sco.com>
>
> *elf.c: Check for sizes of pxstatus_t and lwpxstatus_t for register
> content
> *configure.in: Add check for pxstatus_t and lwpxstatus_t
>
> Index: elf.c
> ===================================================================
> RCS file: /cvs/src/src/bfd/elf.c,v
> retrieving revision 1.52
> diff -c -3 -p -r1.52 elf.c
> *** elf.c 2000/09/11 17:01:47 1.52
> --- elf.c 2000/09/25 19:29:45
> *************** elfcore_grok_pstatus (abfd, note)
> *** 5559,5565 ****
> bfd *abfd;
> Elf_Internal_Note *note;
> {
> ! if (note->descsz == sizeof (pstatus_t))
> {
> pstatus_t pstat;
>
> --- 5559,5569 ----
> bfd *abfd;
> Elf_Internal_Note *note;
> {
> ! if (note->descsz == sizeof (pstatus_t)
> ! #if defined (HAVE_PXSTATUS_T)
> ! && note->descsz != sizeof (pxstatus_t)
> ! #endif
> ! )
> {
> pstatus_t pstat;
>
> *************** elfcore_grok_lwpstatus (abfd, note)
> *** 5597,5603 ****
> char *name;
> asection *sect;
>
> ! if (note->descsz != sizeof (lwpstat))
> return true;
>
> memcpy (&lwpstat, note->descdata, sizeof (lwpstat));
> --- 5601,5611 ----
> char *name;
> asection *sect;
>
> ! if (note->descsz != sizeof (lwpstat)
> ! #if defined (HAVE_LWPXSTATUS_T)
> ! && note->descsz != sizeof (lwpxstatus_t)
> ! #endif
> ! )
> return true;
>
> memcpy (&lwpstat, note->descdata, sizeof (lwpstat));
> Index: configure.in
> ===================================================================
> RCS file: /cvs/src/src/bfd/configure.in,v
> retrieving revision 1.32
> diff -c -3 -p -r1.32 configure.in
> *** configure.in 2000/09/07 04:23:43 1.32
> --- configure.in 2000/09/25 19:29:51
> *************** changequote([,])dnl
> *** 343,354 ****
> --- 343,356 ----
> BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
> BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
> BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
> + BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
> BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
> BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
> BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
> BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
> BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
> BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
> + BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
> BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
> BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
> BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
>
> -------------------------------
> Thanks,
>
> Petr
> --
> --------------------------------------------------------
> Petr Sorfa Software Engineer
> Santa Cruz Operation (SCO)
> 430 Mountain Ave. http://www.sco.com
> Murray Hill 07974
> NJ, USA
> --------------------------------------------------------
> Disclaimer: All my comments are my own and nobody else's
> ----------------------------------------------------------
More information about the Gdb-patches
mailing list