[PATCH] include libiberty.h in gdbserver.h

Pedro Alves palves@redhat.com
Fri Aug 24 17:16:00 GMT 2012


On 08/22/2012 01:46 PM, Yao Qi wrote:
> Hi,
> Some macros have been defined in libiberty.h and ansidecl.h, but we
> define them again in server.h.  libiberty.h has been included in
> gdbserver, so I think we can use the macros defined in 'libiberty.h' and
> 'ansidecl.h' in gdbserver.  so this patch is to include them, and
> remove these macros in server.h.

Makes me a little nervous (the current use of bits of libiberty in
gdbserver is already a hack, and this spreads it), but okay.

Don't we need to update Makefile dependencies to make $server_h
depend on ...include/libiberty.h and ...include/ansidecl.h ?

-- 
Pedro Alves



More information about the Gdb-patches mailing list