aboutsummaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2014-07-25 12:18:00 +0100
committerGary Benson <gbenson@redhat.com>2014-07-30 09:22:48 +0100
commitd41f6d8ea2868ed247c149c252741d02293c6659 (patch)
tree072c9ea4577403a530ecb6c9056c7b17b4351f63 /gdb/common
parentf2120acddc665a9adbd90e2dd32a3f589d9230c4 (diff)
downloadgdb-d41f6d8ea2868ed247c149c252741d02293c6659.zip
gdb-d41f6d8ea2868ed247c149c252741d02293c6659.tar.gz
gdb-d41f6d8ea2868ed247c149c252741d02293c6659.tar.bz2
Make all source files include defs.h or server.h first
This commit makes all source files under gdb/ that include headers from gdb/ include either defs.h or server.h before any other code. This ensures that definitions and macros from the two config.h files are always in place for our code. An exception has been made for gdb/gdbserver/gdbreplay.c which seems to be a special case. gdb/ 2014-07-30 Gary Benson <gbenson@redhat.com> * btrace.c: Include defs.h. * common/ptid.c: Include defs.h or server.h as appropriate. * nat/mips-linux-watch.c: Likewise. gdb/gdbserver/ 2014-07-30 Gary Benson <gbenson@redhat.com> * hostio-errno.c: Move server.h to top of includes list. * inferiors.c: Likewise. * linux-x86-low.c: Likewise. * notif.c: Include server.h.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/ptid.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/common/ptid.c b/gdb/common/ptid.c
index f614669..04fd118 100644
--- a/gdb/common/ptid.c
+++ b/gdb/common/ptid.c
@@ -17,6 +17,11 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
+#ifdef GDBSERVER
+#include "server.h"
+#else
+#include "defs.h"
+#endif
#include "ptid.h"
/* See ptid.h for these. */