2014-07-30 16:31:10 +02:00
|
|
|
/* Declarations for common types.
|
|
|
|
|
2020-01-01 07:20:01 +01:00
|
|
|
Copyright (C) 1986-2020 Free Software Foundation, Inc.
|
2014-07-30 16:31:10 +02:00
|
|
|
|
|
|
|
This file is part of GDB.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
|
|
2019-01-27 20:51:36 +01:00
|
|
|
#ifndef COMMON_COMMON_TYPES_H
|
|
|
|
#define COMMON_COMMON_TYPES_H
|
2014-07-30 16:31:10 +02:00
|
|
|
|
2020-03-12 20:32:15 +01:00
|
|
|
#include <inttypes.h>
|
2014-07-30 16:31:10 +02:00
|
|
|
|
|
|
|
/* * A byte from the program being debugged. */
|
|
|
|
typedef unsigned char gdb_byte;
|
|
|
|
|
|
|
|
/* * An address in the program being debugged. Host byte order. */
|
2020-03-12 20:32:15 +01:00
|
|
|
typedef uint64_t CORE_ADDR;
|
2014-07-30 16:31:10 +02:00
|
|
|
|
2020-03-12 20:32:15 +01:00
|
|
|
/* LONGEST must be at least as big as CORE_ADDR. */
|
2014-07-30 16:31:10 +02:00
|
|
|
|
2020-03-12 20:32:15 +01:00
|
|
|
typedef int64_t LONGEST;
|
|
|
|
typedef uint64_t ULONGEST;
|
2014-07-30 16:31:10 +02:00
|
|
|
|
|
|
|
/* * The largest CORE_ADDR value. */
|
2018-08-07 21:04:05 +02:00
|
|
|
#define CORE_ADDR_MAX (~(CORE_ADDR) 0)
|
|
|
|
|
|
|
|
/* * The largest ULONGEST value. */
|
|
|
|
#define ULONGEST_MAX (~(ULONGEST) 0)
|
2014-07-30 16:31:10 +02:00
|
|
|
|
2015-09-10 13:31:36 +02:00
|
|
|
enum tribool { TRIBOOL_UNKNOWN = -1, TRIBOOL_FALSE = 0, TRIBOOL_TRUE = 1 };
|
|
|
|
|
2019-01-27 20:51:36 +01:00
|
|
|
#endif /* COMMON_COMMON_TYPES_H */
|