aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorGary Benson <gbenson@redhat.com>2014-07-30 15:31:10 +0100
committerGary Benson <gbenson@redhat.com>2014-08-19 10:07:19 +0100
commit9239eeabe340e1662c5df8f816785477309e1c0b (patch)
treeb2608885259ccabbe8ce2c73b32dbe8d69f14c42 /gdb/defs.h
parentef87c8bbe7d1c4a987578626655f4a15555c7f4a (diff)
downloadfsf-binutils-gdb-9239eeabe340e1662c5df8f816785477309e1c0b.zip
fsf-binutils-gdb-9239eeabe340e1662c5df8f816785477309e1c0b.tar.gz
fsf-binutils-gdb-9239eeabe340e1662c5df8f816785477309e1c0b.tar.bz2
Introduce common-types.h
This introduces common-types.h. This file defines various standard types used by gdb and gdbserver. Currently these types are conditionally defined based on GDBSERVER. The long term goal is to remove all such tests; however, this is difficult as currently gdb uses definitions from BFD. In the meantime this is still a step in the right direction. gdb/ChangeLog: * common/common-types.h: New file. * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h. * common/common-defs.h: Include common-types.h. * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST) (ULONGEST): Remove. gdb/gdbserver/ChangeLog: * server.h: Add static assertion. (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index b7271a7..8914512 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -76,35 +76,6 @@
#include "hashtab.h"
-/* Rather than duplicate all the logic in BFD for figuring out what
- types to use (which can be pretty complicated), symply define them
- in terms of the corresponding type from BFD. */
-
-#include "bfd.h"
-
-/* * A byte from the program being debugged. */
-typedef bfd_byte gdb_byte;
-
-/* * An address in the program being debugged. Host byte order. */
-typedef bfd_vma CORE_ADDR;
-
-/* * The largest CORE_ADDR value. */
-#define CORE_ADDR_MAX (~ (CORE_ADDR) 0)
-
-/* This is to make sure that LONGEST is at least as big as CORE_ADDR. */
-
-#ifdef BFD64
-
-#define LONGEST BFD_HOST_64_BIT
-#define ULONGEST BFD_HOST_U_64_BIT
-
-#else /* No BFD64 */
-
-#define LONGEST long long
-#define ULONGEST unsigned long long
-
-#endif /* No BFD64 */
-
#ifndef min
#define min(a, b) ((a) < (b) ? (a) : (b))
#endif