This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
[RFC] Changes to *_*regset functions
- To: gdb at sources dot redhat dot com
- Subject: [RFC] Changes to *_*regset functions
- From: Daniel Jacobowitz <dmj+ at andrew dot cmu dot edu>
- Date: Fri, 13 Jul 2001 10:26:05 -0700
Along with the cross-core handling, and eventually cross-thread support, I
want to multi-arch supply_gregset/fill_gregset/supply_fpregset/fill_fpregset,
and make them target rather than native functions where possible. The issue,
of course, is that the *regset_t and *reg_t types are not available to us
when cross compiling, and attempting to make them available seems the wrong
way to go.
Given that almost every call to or definition of these functions starts by
casting its arguments anyway, I'd like to change the prototypes to the
somewhat vaguer:
extern void supply_gregset (char *gregs);
extern void supply_fpregset (char *fpregs);
extern void fill_gregset (char *gregs, int regno);
extern void fill_fpregset (char *fpregs, int regno);
It'll add a couple of casts, and remove a couple, and end up with functions
that can be safely defined in a cross debugger.
Any objection to this?
--
Daniel Jacobowitz Carnegie Mellon University
MontaVista Software Debian GNU/Linux Developer