[PATCH 1/3] Remove spurious exceptions.h inclusions

Pedro Alves palves@redhat.com
Thu Oct 9 11:43:00 GMT 2014


On 10/09/2014 10:43 AM, Gary Benson wrote:
> Doug Evans wrote:
>> Can you also update the Include files section of the coding standards?
>> https://sourceware.org/gdb/wiki/Internals%20GDB-C-Coding-Standards
>>
>> This section needs to list exceptions.h and others that .c and .h
>> files are no longer supposed to directly include.
> 
> I have updated it.  Rather than adding a long list of headers that
> will undoubtedly rot I have specified that files should not include
> stuff included by whichever of defs.h, server.h, common-defs.h is
> relevant.  The wording is not ideal but it's the best I could come
> up with.

Thanks Gary.  I've extended it a bit to mention the ".c file must include
its header" rule, which I think ends up clarifying it too.

Thanks,
Pedro Alves



More information about the Gdb-patches mailing list