[PATCH 13/15] Move macros from i386-{nat,low}.c to i386-{nat,low}.h
Gary Benson
gbenson@redhat.com
Wed Jun 18 11:33:00 GMT 2014
Pedro Alves wrote:
> On 06/17/2014 03:12 PM, Gary Benson wrote:
> > This commit moves macros required by the soon-to-be-created
> > nat/i386-dregs.c into i386-{nat,low}.h.
>
> To get rid of the remaining '#ifdef GDBSERVER's in the new
> i386-dregs.c, we could make gdbserver use the i386_dr_low
> vector too. Did you look into that?
I'm not 100% sure I know what you mean. The only '#ifdef GDBSERVER's
in i386-dregs.c are the one surrounding the #include files and the
one surrounding debug_printf.
It would be possible to make gdbserver use the i386_dr_low vector and
remove the macros from i386-{nat,low}.h, but you'd have to change the
function signatures in either gdb or gdbserver as the i386_dr_low
"set" functions take an argument (what to set it to) but the functions
in gdbserver don't. I think in gdbserver they all get set at once,
but I have to confess I don't fully understand it yet.
I'll think about this some more.
> Meanwhile, this is already much better than what we have today.
> Thus, this is OK.
Ok, I pushed it.
Thanks,
Gary
--
http://gbenson.net/
More information about the Gdb-patches
mailing list