This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] include libiberty.h in gdbserver.h


On Wed, Aug 22, 2012 at 5:46 AM, Yao Qi <yao@codesourcery.com> 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.
>
> Rebuild GDBserver for x86-linux and mingw32.  OK to apply?
>
> gdb/gdbserver:
>
> 2012-08-22  Yao Qi  <yao@codesourcery.com>
>
>         * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
>         * server.h: Include 'libiberty.h' and 'ansidecl.h'.
>         Remove macro ATTR_NORETURN, ATTR_FORMAT, and ATTR_MALLOC.
>         Remove declarations of xmalloc, xreallloc, xstrdup and
>         freeargv.
>         Replace ATTR_NORETURN with ATTRIBUTE_NORETURN.
>         Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.

The patch is ok with me, though I'd wait a few days to see if someone
else has an opinion.

Then changelog entry does not follow convention though.  Please fix.
E.g., generally we put the name of the object affected in parens.
As in,
        (ATTR_NORETURN): Delete.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]