GDB (API)
|
#include "gdbsupport/common-defs.h"
#include <config.h>
#include "bfd.h"
#include <sys/types.h>
#include <climits>
#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 | ISATTY(FP) (isatty (fileno (FP))) |
#define | GDB_MI_MSG_WIDTH 80 |
Typedefs | |
template<typename T > | |
using | RequireLongest |
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 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 a C++-compatible mangling, so must come before C++; Ada must come last (see ada_sniff_from_mangled_name).
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.
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 | ) |
Optional native machine support. Non-native (and possibly pure multi-arch) targets do not need a "nm.h" file. This will be a symlink to one of the nm-*.h files, built by the ‘configure’ script.
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 |
|
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 |