Re: [PATCH,HURD] Fix reading core

2013-04-26 Thread Alfred M. Szmidt
> > > * gdb/i386gnu-nat.c (CREG_OFFSET): New macro. > > > (creg_offset): New array. > > > (CREG_ADDR): Use creg_offset instead of reg_offset. > > > > Did anyone review this? I don't know GNU/Hurd, but the patch looks > > very plausible. > > > > Do you have write access to

Re: [PATCH,HURD] Fix reading core

2013-04-26 Thread Joel Brobecker
> > > * gdb/i386gnu-nat.c (CREG_OFFSET): New macro. > > > (creg_offset): New array. > > > (CREG_ADDR): Use creg_offset instead of reg_offset. > > > > Did anyone review this? I don't know GNU/Hurd, but the patch looks > > very plausible. > > > > Do you have write access to the GDB repository? > >

Re: [PATCH,HURD] Fix reading core

2013-04-26 Thread Samuel Thibault
Joel Brobecker, le Tue 09 Apr 2013 16:41:17 -0700, a écrit : > > The i386 GNU/Hurd ELF core format actually follows the uaccess gregset_t > > array format, not the Mach thread state format. This fixes gdb reading > > it. > > > > * gdb/i386gnu-nat.c (CREG_OFFSET): New macro. > > (creg_offset): New