Introduce common-types.h
authorGary Benson <gbenson@redhat.com>
Wed, 30 Jul 2014 14:31:10 +0000 (15:31 +0100)
committerGary Benson <gbenson@redhat.com>
Tue, 19 Aug 2014 09:07:19 +0000 (10:07 +0100)
commit9239eeabe340e1662c5df8f816785477309e1c0b
treeb2608885259ccabbe8ce2c73b32dbe8d69f14c42
parentef87c8bbe7d1c4a987578626655f4a15555c7f4a
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.
gdb/ChangeLog
gdb/Makefile.in
gdb/common/common-defs.h
gdb/common/common-types.h [new file with mode: 0644]
gdb/defs.h
gdb/gdbserver/ChangeLog
gdb/gdbserver/server.h