From d7096f716534f280fba72a5b2ec3712ad1aea42e Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Fri, 25 Jul 2014 17:35:30 +0100 Subject: Move stdlib.h to common-defs.h This commit moves the inclusion of stdlib.h to common-defs.h and removes all other inclusions. gdb/ 2014-08-07 Gary Benson * common/common-defs.h: Include stdlib.h. * defs.h: Do not include stdlib.h. * addrmap.c: Likewise. * bcache.c: Likewise. * common/buffer.c: Likewise. * common/common-utils.c: Likewise. * cp-name-parser.y: Likewise. * go32-nat.c: Likewise. * mn10300-linux-tdep.c: Likewise. * nat/linux-osdata.c: Likewise. * tui/tui.c: Likewise. * windows-nat.c: Likewise. gdb/gdbserver/ 2014-08-07 Gary Benson * server.h: Do not include stdlib.h. * inferiors.c: Likewise. * linux-low.c: Likewise. * regcache.c: Likewise. * spu-low.c: Likewise. * tracepoint.c: Likewise. * utils.c: Likewise. --- gdb/common/buffer.c | 1 - gdb/common/common-defs.h | 1 + gdb/common/common-utils.c | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) (limited to 'gdb/common') diff --git a/gdb/common/buffer.c b/gdb/common/buffer.c index a50c890..c291b32 100644 --- a/gdb/common/buffer.c +++ b/gdb/common/buffer.c @@ -27,7 +27,6 @@ #include "buffer.h" #include "inttypes.h" -#include #include #include diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h index 0fc7af5..ed95a36 100644 --- a/gdb/common/common-defs.h +++ b/gdb/common/common-defs.h @@ -28,5 +28,6 @@ #endif #include +#include #endif /* COMMON_DEFS_H */ diff --git a/gdb/common/common-utils.c b/gdb/common/common-utils.c index 41ef289..ab05c9f 100644 --- a/gdb/common/common-utils.c +++ b/gdb/common/common-utils.c @@ -26,8 +26,6 @@ #include "gdb_assert.h" #include -#include - /* The xmalloc() (libiberty.h) family of memory management routines. These are like the ISO-C malloc() family except that they implement -- cgit v1.1