This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Some regset-related cleanup for i386bsd-nat.c
- From: "Nathan J. Williams" <nathanw at wasabisystems dot com>
- To: Mark Kettenis <kettenis at chello dot nl>
- Cc: gdb-patches at sources dot redhat dot com
- Date: 08 Jun 2004 16:49:15 -0400
- Subject: Re: [PATCH] Some regset-related cleanup for i386bsd-nat.c
- Organization: Wasabi Systems, Inc.
- References: <200405311001.i4VA1Ok1041099@elgar.kettenis.dyndns.org>
Mark Kettenis <kettenis@chello.nl> writes:
> * i386bsd-nat.c: Don't include "gregset.h".
> (supply_gregset, fill_gregset): Make static.
> (supply_fpregset, fill_fpregset): Remove.
I just noticed this in one of my builds. I'm attempting to modernize
and prepare my NetBSD thread support code for integration, and that
code uses the {supply,fill}_{regset,fpregset} functions to implement
the thread-specific fetch_registers and store_registers, based on
register context passed back from the pthread debugging library (It
was quite a boon when I ported it forward from 5.0 to 5.3 and got
these functions to use). If these are removed, is there a good way for
an architecture-neutral bit of code like nbsd-thread.c to go back and
forth between GDB's register storage and native register storage?
- Nathan