This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Always include defs.h first.
On 11/08/2012 06:38 PM, Joel Brobecker wrote:
> [I agree consistency is good]
>
>> Note that gdbserver doesn't have defs.h and lots of files in common/ do the
>>
>> #ifdef GDBSERVER
>> #include "server.h"
>> #else
>> #include "defs.h"
>> #endif
>
> Perhaps we should rename server.h into defs.h? Or move defs.h to
> common?
I agree with adding a defs.h to gdbserver.
defs.h depends on bfd and has lots of gdb-specifics, so no
good for gdbserver as is.
--
Pedro Alves