|
GDB (API)
|
#include "gdbsupport/common-defs.h"#include <config.h>#include "bfd.h"#include <sys/types.h>#include <limits.h>#include <unistd.h>#include <fcntl.h>#include "gdb_wchar.h"#include "ui-file.h"#include "gdbsupport/host-defs.h"#include "gdbsupport/enum-flags.h"#include "gdbsupport/array-view.h"#include "hashtab.h"#include "fopen-bin.h"#include "utils.h"Go to the source code of this file.
Macros | |
| #define | GCC_GENERATED_STDINT_H 1 |
| #define | SEEK_SET 0 |
| #define | SEEK_CUR 1 |
| #define | O_BINARY 0 |
| #define | QUIT maybe_quit () |
| #define | LANGUAGE_BITS 5 |
| #define | LANGUAGE_BYTES ((LANGUAGE_BITS + HOST_CHAR_BIT - 1) / HOST_CHAR_BIT) |
| #define | UINT_MAX ((unsigned int)(~0)) /* 0xFFFFFFFF for 32-bits */ |
| #define | INT_MAX ((int)(UINT_MAX >> 1)) /* 0x7FFFFFFF for 32-bits */ |
| #define | INT_MIN ((int)((int) ~0 ^ INT_MAX)) /* 0x80000000 for 32-bits */ |
| #define | ULONG_MAX ((unsigned long)(~0L)) /* 0xFFFFFFFF for 32-bits */ |
| #define | LONG_MAX ((long)(ULONG_MAX >> 1)) /* 0x7FFFFFFF for 32-bits */ |
| #define | ULONGEST_MAX (~(ULONGEST)0) /* 0xFFFFFFFFFFFFFFFF for 64-bits */ |
| #define | LONGEST_MAX ((LONGEST)(ULONGEST_MAX >> 1)) |
| #define | ISATTY(FP) (isatty (fileno (FP))) |
| #define | GDB_MI_MSG_WIDTH 80 |
Typedefs | |
| template<typename T > | |
| using | RequireLongest = gdb::Requires< gdb::Or< std::is_same< T, LONGEST >, std::is_same< T, ULONGEST > > > |
| typedef void() | quit_handler_ftype(void) |
| typedef void | initialize_file_ftype(void) |
| typedef int(* | find_memory_region_ftype) (CORE_ADDR addr, unsigned long size, int read, int write, int exec, int modified, bool memory_tagged, void *data) |
| #define GDB_MI_MSG_WIDTH 80 |
| #define LANGUAGE_BYTES ((LANGUAGE_BITS + HOST_CHAR_BIT - 1) / HOST_CHAR_BIT) |
| #define LONGEST_MAX ((LONGEST)(ULONGEST_MAX >> 1)) |
| #define QUIT maybe_quit () |
| typedef int(* find_memory_region_ftype) (CORE_ADDR addr, unsigned long size, int read, int write, int exec, int modified, bool memory_tagged, void *data) |
Process memory area starting at ADDR with length SIZE. Area is readable iff READ is non-zero, writable if WRITE is non-zero, executable if EXEC is non-zero. Area is possibly changed against its original file based copy if MODIFIED is non-zero.
MEMORY_TAGGED is true if the memory region contains memory tags, false otherwise.
DATA is passed without changes from a caller.
Parameters of the "info proc" command.
Languages represented in the symbol table and elsewhere. This should probably be in language.h, but since enum's can't be forward declared to satisfy opaque references before their actual definition, needs to be here.
The constants here are in priority order. In particular, demangling is attempted according to this order.
Note that there's ambiguity between the mangling schemes of some of these languages, so some symbols could be successfully demangled by several languages. For that reason, the constants here are sorted in the order we'll attempt demangling them. For example: Rust uses C++ mangling, so must come after C++; Ada must come last (see ada_sniff_from_mangled_name). (Keep this order in sync with the 'languages' array in language.c.)
Possible lvalue types. Like enum language, this should be in value.h, but needs to be here for the same reason.
Potential ways that a function can return a value of a given type.
Possibilities for prettyformat parameters to routines which print things. Like enum language, this should be in value.h, but needs to be here for the same reason. FIXME: If we can eliminate this as an arg to LA_VAL_PRINT, then we can probably move it back to value.h.
| Enumerator | |
|---|---|
| Val_no_prettyformat | |
| Val_prettyformat | |
| Val_prettyformat_default | Use the default setting which the user has specified. |
Evaluate to non-zero if the quit flag is set, zero otherwise. This will clear the quit flag as a side effect.
|
extern |
|
extern |
| DEF_ENUM_FLAGS_TYPE | ( | enum | user_selected_what_flag, |
| user_selected_what | |||
| ) |
| T extract_integer | ( | gdb::array_view< const gdb_byte > | , |
| enum bfd_endian | byte_order | ||
| ) |
| gdb_static_assert | ( | nr_languages<= | 1<< LANGUAGE_BITS | ) |
Convert a LONGEST to an int. This is used in contexts (e.g. number of arguments to a function, number in a value history, register number, etc.) where the value must not be larger than can fit in an int.
|
extern |
|
extern |
|
extern |
|
extern |
Search path for separate debug files.
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
|
extern |
GDB datadir, used to store data files.
|
extern |
System root path, used to find libraries etc.
|
extern |
|
extern |
Default radixes for input and output. Only some values supported.
|
extern |
|
extern |
If not empty, the possibly relocated path to python's "lib" directory specified with –with-python.
|
extern |