X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdbsupport%2Fcommon-types.h;h=f5b2f3d249177acea77231c21c5601f959c18d2f;hb=87f83f20023bf366c14ec4e0fd307948d96caaee;hp=61099b4e25d8c47f36696f84270399436927a448;hpb=01027315f54048dbaf03ac37455c2528c72a6d9b;p=deliverable%2Fbinutils-gdb.git diff --git a/gdbsupport/common-types.h b/gdbsupport/common-types.h index 61099b4e25..f5b2f3d249 100644 --- a/gdbsupport/common-types.h +++ b/gdbsupport/common-types.h @@ -20,40 +20,18 @@ #ifndef COMMON_COMMON_TYPES_H #define COMMON_COMMON_TYPES_H -#ifdef GDBSERVER +#include /* * A byte from the program being debugged. */ typedef unsigned char gdb_byte; -typedef unsigned long long CORE_ADDR; - -typedef long long LONGEST; -typedef unsigned long long ULONGEST; - -#else /* GDBSERVER */ - -#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; - -/* This is to make sure that LONGEST is at least as big as CORE_ADDR. */ - -#ifdef BFD64 - -typedef BFD_HOST_64_BIT LONGEST; -typedef BFD_HOST_U_64_BIT ULONGEST; - -#else /* No BFD64 */ +typedef uint64_t CORE_ADDR; -typedef long long LONGEST; -typedef unsigned long long ULONGEST; +/* LONGEST must be at least as big as CORE_ADDR. */ -#endif /* No BFD64 */ -#endif /* GDBSERVER */ +typedef int64_t LONGEST; +typedef uint64_t ULONGEST; /* * The largest CORE_ADDR value. */ #define CORE_ADDR_MAX (~(CORE_ADDR) 0)