GDB (API)
|
#include "common-defs.h"
#include <sys/types.h>
#include <limits.h>
#include <unistd.h>
#include <fcntl.h>
#include "gdb_wchar.h"
#include "ui-file.h"
#include "host-defs.h"
#include "hashtab.h"
#include "nm.h"
#include "fopen-bin.h"
#include "gdbarch.h"
#include "utils.h"
Go to the source code of this file.
Classes | |
struct | command_line |
Macros | |
#define | GCC_GENERATED_STDINT_H 1 |
#define | SEEK_SET 0 |
#define | SEEK_CUR 1 |
#define | O_BINARY 0 |
#define | min(a, b) ((a) < (b) ? (a) : (b)) |
#define | max(a, b) ((a) > (b) ? (a) : (b)) |
#define | QUIT maybe_quit () |
#define | OPF_TRY_CWD_FIRST 0x01 |
#define | OPF_SEARCH_IN_PATH 0x02 |
#define | OPF_RETURN_REALPATH 0x04 |
#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 | |
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, void *data) |
Functions | |
void | clear_quit_flag (void) |
int | check_quit_flag (void) |
void | set_quit_flag (void) |
void | quit (void) |
void | maybe_quit (void) |
char * | relocate_gdb_directory (const char *initial, int flag) |
EXTERN_C char * | re_comp (const char *) |
void | symbol_file_command (char *, int) |
void | generic_load (const char *name, int from_tty) |
void | print_transfer_performance (struct ui_file *stream, unsigned long data_count, unsigned long write_count, const struct timeval *start_time, const struct timeval *end_time) |
char * | gdb_readline (const char *) |
char * | gdb_readline_wrapper (const char *) |
char * | command_line_input (const char *, int, char *) |
void | print_prompt (void) |
int | input_from_terminal_p (void) |
void | set_next_address (struct gdbarch *, CORE_ADDR) |
int | print_address_symbolic (struct gdbarch *, CORE_ADDR, struct ui_file *, int, char *) |
int | build_address_symbolic (struct gdbarch *, CORE_ADDR addr, int do_demangle, char **name, int *offset, char **filename, int *line, int *unmapped) |
void | print_address (struct gdbarch *, CORE_ADDR, struct ui_file *) |
const char * | pc_prefix (CORE_ADDR) |
int | openp (const char *, int, const char *, int, char **) |
int | source_full_path_of (const char *, char **) |
void | mod_path (char *, char **) |
void | add_path (char *, char **, int) |
void | directory_switch (char *, int) |
void | init_source_path (void) |
struct command_line * | read_command_lines (char *, int, int, void(*)(char *, void *), void *) |
struct command_line * | read_command_lines_1 (char *(*)(void), int, void(*)(char *, void *), void *) |
void | free_command_lines (struct command_line **) |
int | longest_to_int (LONGEST) |
double | atof (const char *) |
LONGEST | extract_signed_integer (const gdb_byte *, int, enum bfd_endian) |
ULONGEST | extract_unsigned_integer (const gdb_byte *, int, enum bfd_endian) |
int | extract_long_unsigned_integer (const gdb_byte *, int, enum bfd_endian, LONGEST *) |
CORE_ADDR | extract_typed_address (const gdb_byte *buf, struct type *type) |
void | store_signed_integer (gdb_byte *, int, enum bfd_endian, LONGEST) |
void | store_unsigned_integer (gdb_byte *, int, enum bfd_endian, ULONGEST) |
void | store_typed_address (gdb_byte *buf, struct type *type, CORE_ADDR addr) |
void | initialize_progspace (void) |
void | initialize_inferiors (void) |
Variables | |
int | dbx_commands |
char * | gdb_sysroot |
char * | gdb_datadir |
char * | python_libdir |
char * | debug_file_directory |
volatile int | sync_quit_force_run |
int | immediate_quit |
int | annotation_level |
int | info_verbose |
char * | source_path |
char * | current_directory |
unsigned | input_radix |
unsigned | output_radix |
int | watchdog |
char * | interpreter_p |
void(* | deprecated_pre_add_symbol_hook )(const char *) |
void(* | deprecated_post_add_symbol_hook )(void) |
void(* | selected_frame_level_changed_hook )(int) |
int(* | deprecated_ui_loop_hook )(int signo) |
void(* | deprecated_show_load_progress )(const char *section, unsigned long section_sent, unsigned long section_size, unsigned long total_sent, unsigned long total_size) |
void(* | deprecated_print_frame_info_listing_hook )(struct symtab *s, int line, int stopline, int noerror) |
int(* | deprecated_query_hook )(const char *, va_list) ATTRIBUTE_FPTR_PRINTF(1 |
int(*) void(* | deprecated_warning_hook )(const char *, va_list) ATTRIBUTE_FPTR_PRINTF(1 |
int(*) void(*) void(* | deprecated_interactive_hook )(void) |
void(* | deprecated_readline_begin_hook )(char *,...) ATTRIBUTE_FPTR_PRINTF_1 |
char *(* | deprecated_readline_hook )(const char *) |
void(* | deprecated_readline_end_hook )(void) |
void(* | deprecated_register_changed_hook )(int regno) |
void(* | deprecated_context_hook )(int) |
ptid_t(* | deprecated_target_wait_hook )(ptid_t ptid, struct target_waitstatus *status, int options) |
void(* | deprecated_attach_hook )(void) |
void(* | deprecated_detach_hook )(void) |
void(* | deprecated_call_command_hook )(struct cmd_list_element *c, char *cmd, int from_tty) |
int(* | deprecated_ui_load_progress_hook )(const char *section, unsigned long num) |
#define GDB_MI_MSG_WIDTH 80 |
#define INT_MAX ((int)(UINT_MAX >> 1)) /* 0x7FFFFFFF for 32-bits */ |
#define INT_MIN ((int)((int) ~0 ^ INT_MAX)) /* 0x80000000 for 32-bits */ |
#define LONG_MAX ((long)(ULONG_MAX >> 1)) /* 0x7FFFFFFF for 32-bits */ |
#define LONGEST_MAX ((LONGEST)(ULONGEST_MAX >> 1)) |
#define QUIT maybe_quit () |
#define UINT_MAX ((unsigned int)(~0)) /* 0xFFFFFFFF for 32-bits */ |
#define ULONG_MAX ((unsigned long)(~0L)) /* 0xFFFFFFFF for 32-bits */ |
#define ULONGEST_MAX (~(ULONGEST)0) /* 0xFFFFFFFFFFFFFFFF for 64-bits */ |
typedef int(* find_memory_region_ftype) (CORE_ADDR addr, unsigned long size, int read, int write, int exec, int modified, 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. DATA is passed without changes from a caller.
anonymous enum |
enum auto_boolean |
enum block_enum |
enum command_control_type |
enum gdb_osabi |
List of known OS ABIs. If you change this, make sure to update the table in osabi.c.
enum info_proc_what |
Parameters of the "info proc" command.
enum language |
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.
enum lval_type |
Possible lvalue types. Like enum language, this should be in value.h, but needs to be here for the same reason.
enum misc_command_type |
enum precision_type |
Potential ways that a function can return a value of a given type.
enum val_prettyformat |
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. |
void add_path | ( | char * | , |
char ** | , | ||
int | |||
) |
double atof | ( | const char * | ) |
int build_address_symbolic | ( | struct gdbarch * | , |
CORE_ADDR | addr, | ||
int | do_demangle, | ||
char ** | name, | ||
int * | offset, | ||
char ** | filename, | ||
int * | line, | ||
int * | unmapped | ||
) |
int check_quit_flag | ( | void | ) |
Evaluate to non-zero if the quit flag is set, zero otherwise. This will clear the quit flag as a side effect.
void clear_quit_flag | ( | void | ) |
Clear the quit flag.
char* command_line_input | ( | const char * | , |
int | , | ||
char * | |||
) |
void directory_switch | ( | char * | , |
int | |||
) |
int extract_long_unsigned_integer | ( | const gdb_byte * | , |
int | , | ||
enum | bfd_endian, | ||
LONGEST * | |||
) |
LONGEST extract_signed_integer | ( | const gdb_byte * | , |
int | , | ||
enum | bfd_endian | ||
) |
CORE_ADDR extract_typed_address | ( | const gdb_byte * | buf, |
struct type * | type | ||
) |
ULONGEST extract_unsigned_integer | ( | const gdb_byte * | , |
int | , | ||
enum | bfd_endian | ||
) |
void free_command_lines | ( | struct command_line ** | ) |
char* gdb_readline | ( | const char * | ) |
char* gdb_readline_wrapper | ( | const char * | ) |
void generic_load | ( | const char * | name, |
int | from_tty | ||
) |
Remote targets may wish to use this as their load function.
void init_source_path | ( | void | ) |
void initialize_inferiors | ( | void | ) |
void initialize_progspace | ( | void | ) |
int input_from_terminal_p | ( | void | ) |
int longest_to_int | ( | LONGEST | ) |
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.
void maybe_quit | ( | void | ) |
void mod_path | ( | char * | , |
char ** | |||
) |
int openp | ( | const char * | , |
int | , | ||
const char * | , | ||
int | , | ||
char ** | |||
) |
const char* pc_prefix | ( | CORE_ADDR | ) |
void print_address | ( | struct gdbarch * | , |
CORE_ADDR | , | ||
struct ui_file * | |||
) |
int print_address_symbolic | ( | struct gdbarch * | , |
CORE_ADDR | , | ||
struct ui_file * | , | ||
int | , | ||
char * | |||
) |
void print_prompt | ( | void | ) |
void print_transfer_performance | ( | struct ui_file * | stream, |
unsigned long | data_count, | ||
unsigned long | write_count, | ||
const struct timeval * | start_time, | ||
const struct timeval * | end_time | ||
) |
void quit | ( | void | ) |
EXTERN_C char* re_comp | ( | const char * | ) |
struct command_line* read_command_lines | ( | char * | , |
int | , | ||
int | , | ||
void(*)(char *, void *) | , | ||
void * | |||
) |
struct command_line* read_command_lines_1 | ( | char * | *)(void, |
int | , | ||
void(*)(char *, void *) | , | ||
void * | |||
) |
char* relocate_gdb_directory | ( | const char * | initial, |
int | flag | ||
) |
void set_next_address | ( | struct gdbarch * | , |
CORE_ADDR | |||
) |
void set_quit_flag | ( | void | ) |
Set the quit flag.
int source_full_path_of | ( | const char * | , |
char ** | |||
) |
void store_signed_integer | ( | gdb_byte * | , |
int | , | ||
enum | bfd_endian, | ||
LONGEST | |||
) |
void store_typed_address | ( | gdb_byte * | buf, |
struct type * | type, | ||
CORE_ADDR | addr | ||
) |
void store_unsigned_integer | ( | gdb_byte * | , |
int | , | ||
enum | bfd_endian, | ||
ULONGEST | |||
) |
void symbol_file_command | ( | char * | , |
int | |||
) |
int annotation_level |
char* current_directory |
String containing the current directory (what getwd would return).
int dbx_commands |
Enable dbx commands if set.
char* debug_file_directory |
Search path for separate debug files.
void(* deprecated_attach_hook) (void) |
void(* deprecated_call_command_hook) (struct cmd_list_element *c, char *cmd, int from_tty) |
void(* deprecated_context_hook) (int) |
void(* deprecated_detach_hook) (void) |
int(*) void(*) void(* deprecated_interactive_hook) (void) |
void(* deprecated_post_add_symbol_hook) (void) |
void(* deprecated_pre_add_symbol_hook) (const char *) |
void(* deprecated_print_frame_info_listing_hook) (struct symtab *s, int line, int stopline, int noerror) |
int(* deprecated_query_hook) (const char *, va_list) ATTRIBUTE_FPTR_PRINTF(1 |
void(* deprecated_readline_begin_hook) (char *,...) ATTRIBUTE_FPTR_PRINTF_1 |
void(* deprecated_readline_end_hook) (void) |
char*(* deprecated_readline_hook) (const char *) |
void(* deprecated_register_changed_hook) (int regno) |
void(* deprecated_show_load_progress) (const char *section, unsigned long section_sent, unsigned long section_size, unsigned long total_sent, unsigned long total_size) |
ptid_t(* deprecated_target_wait_hook) (ptid_t ptid, struct target_waitstatus *status, int options) |
int(* deprecated_ui_load_progress_hook) (const char *section, unsigned long num) |
int(* deprecated_ui_loop_hook) (int signo) |
int(*) void(* deprecated_warning_hook) (const char *, va_list) ATTRIBUTE_FPTR_PRINTF(1 |
char* gdb_datadir |
GDB datadir, used to store data files.
char* gdb_sysroot |
System root path, used to find libraries etc.
int immediate_quit |
int info_verbose |
unsigned input_radix |
Default radixes for input and output. Only some values supported.
char* interpreter_p |
The name of the interpreter if specified on the command line.
unsigned output_radix |
char* python_libdir |
If non-NULL, the possibly relocated path to python's "lib" directory specified with –with-python.
void(* selected_frame_level_changed_hook) (int) |
char* source_path |
volatile int sync_quit_force_run |
int watchdog |