This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] PIE support for OpenBSD


> Date: Wed, 21 Dec 2011 18:13:15 +0100
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> 
> On Sat, 17 Dec 2011 22:08:29 +0100, Mark Kettenis wrote:
> > For now this is OpenBSD-specific, but FreeBSD and NetBSD might
> > implement the PIOD_READ_AUXV request at some point too.
> [...]
> > 	* inf-ptrace.c [PT_IO && PIOD_READ_AUXV]
> 
> So why didn't you put it into *bsd*-nat.c files?

There is already PT_IO support code in inf-ptrace.c.  It makes sense
to keep it all together.  I guess I could move all that code into a
seperate bsd-nat.c file, but that's quite a big undertaking.  And
inf-ptrace.c *BSD really is the primary user of inf-ptrace.c anyway.
The various Linux targets only need it to support ancient versions of
the Linux kernels; linux-nat.c ovverrides everything except for
to_fetch_registers and to_store_registers.  And those are overridden
by most, if not all, *-linux-nat.c files.

Cheers,

Mark


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]