GDB (API)
Classes | Defines | Typedefs | Enumerations | Functions | Variables
/home/stan/gdb/src/gdb/defs.h File Reference
#include "config.h"
#include "build-gnulib/config.h"
#include <sys/types.h>
#include <stdio.h>
#include <errno.h>
#include <limits.h>
#include <stdint.h>
#include <unistd.h>
#include "pathmax.h"
#include <fcntl.h>
#include "ansidecl.h"
#include "gdb_locale.h"
#include "gdb_wchar.h"
#include "gdb/signals.h"
#include "ui-file.h"
#include "host-defs.h"
#include <stdarg.h>
#include "libiberty.h"
#include "hashtab.h"
#include "bfd.h"
#include "ptid.h"
#include "fopen-bin.h"
#include "common-utils.h"
#include "gdbarch.h"
#include "utils.h"

Go to the source code of this file.

Classes

struct  command_line

Defines

#define GCC_GENERATED_STDINT_H   1
#define CORE_ADDR_MAX   (~ (CORE_ADDR) 0)
#define LONGEST   long long
#define ULONGEST   unsigned long long
#define QUIT
#define OPF_TRY_CWD_FIRST   0x01
#define OPF_SEARCH_IN_PATH   0x02
#define OPF_RETURN_REALPATH   0x04
#define XZALLOC(TYPE)   ((TYPE*) xzalloc (sizeof (TYPE)))
#define XMALLOC(TYPE)   ((TYPE*) xmalloc (sizeof (TYPE)))
#define XCALLOC(NMEMB, TYPE)   ((TYPE*) xcalloc ((NMEMB), sizeof (TYPE)))
#define HOST_CHAR_BIT   TARGET_CHAR_BIT
#define GDB_MI_MSG_WIDTH   80

Typedefs

typedef bfd_byte gdb_byte
typedef bfd_vma CORE_ADDR
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)

Enumerations

enum  language {
  language_unknown, language_auto, language_c, language_cplus,
  language_d, language_go, language_objc, language_java,
  language_fortran, language_m2, language_asm, language_pascal,
  language_ada, language_opencl, language_minimal, nr_languages
}
enum  precision_type { single_precision, double_precision, unspecified_precision }
enum  auto_boolean { AUTO_BOOLEAN_TRUE, AUTO_BOOLEAN_FALSE, AUTO_BOOLEAN_AUTO }
enum  return_value_convention { RETURN_VALUE_REGISTER_CONVENTION, RETURN_VALUE_STRUCT_CONVENTION, RETURN_VALUE_ABI_RETURNS_ADDRESS, RETURN_VALUE_ABI_PRESERVES_ADDRESS }
enum  lval_type {
  not_lval, lval_memory, lval_register, lval_internalvar,
  lval_internalvar_component, lval_computed
}
enum  misc_command_type { ok_command, end_command, else_command, nop_command }
enum  command_control_type {
  simple_control, break_control, continue_control, while_control,
  if_control, commands_control, python_control, while_stepping_control,
  invalid_control
}
enum  info_proc_what {
  IP_MINIMAL, IP_MAPPINGS, IP_STATUS, IP_STAT,
  IP_CMDLINE, IP_EXE, IP_CWD, IP_ALL
}
enum  val_prettyformat { Val_no_prettyformat = 0, Val_prettyformat, Val_prettyformat_default }
enum  gdb_osabi {
  GDB_OSABI_UNINITIALIZED = -1, GDB_OSABI_UNKNOWN = 0, GDB_OSABI_SVR4, GDB_OSABI_HURD,
  GDB_OSABI_SOLARIS, GDB_OSABI_OSF1, GDB_OSABI_LINUX, GDB_OSABI_FREEBSD_AOUT,
  GDB_OSABI_FREEBSD_ELF, GDB_OSABI_NETBSD_AOUT, GDB_OSABI_NETBSD_ELF, GDB_OSABI_OPENBSD_ELF,
  GDB_OSABI_WINCE, GDB_OSABI_GO32, GDB_OSABI_IRIX, GDB_OSABI_HPUX_ELF,
  GDB_OSABI_HPUX_SOM, GDB_OSABI_QNXNTO, GDB_OSABI_CYGWIN, GDB_OSABI_AIX,
  GDB_OSABI_DICOS, GDB_OSABI_DARWIN, GDB_OSABI_SYMBIAN, GDB_OSABI_OPENVMS,
  GDB_OSABI_LYNXOS178, GDB_OSABI_NEWLIB, GDB_OSABI_INVALID
}
enum  { MAX_REGISTER_SIZE = 64 }
enum  block_enum { GLOBAL_BLOCK = 0, STATIC_BLOCK = 1, FIRST_LOCAL_BLOCK = 2 }

Functions

void clear_quit_flag (void)
int check_quit_flag (void)
void set_quit_flag (void)
void quit (void)
char * relocate_gdb_directory (const char *initial, int flag)
char * re_comp (const char *)
void symbol_file_command (char *, int)
void generic_load (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 (char *)
char * gdb_readline_wrapper (char *)
char * command_line_input (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)
void exec_set_find_memory_regions (int(*func)(find_memory_region_ftype func, void *data))
struct command_lineread_command_lines (char *, int, int, void(*)(char *, void *), void *)
struct command_lineread_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 xdb_commands
int dbx_commands
char * gdb_sysroot
char * gdb_datadir
char * python_libdir
char * debug_file_directory
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_init_ui_hook )(char *argv0)
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_flush_hook )(struct ui_file *stream)
void(* deprecated_interactive_hook )(void)
void(* deprecated_readline_begin_hook )(char *,...) ATTRIBUTE_FPTR_PRINTF_1
char *(* deprecated_readline_hook )(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)
void(* deprecated_set_hook )(struct cmd_list_element *c)
int(* deprecated_ui_load_progress_hook )(const char *section, unsigned long num)
int use_windows

Define Documentation

#define CORE_ADDR_MAX   (~ (CORE_ADDR) 0)

Definition at line 115 of file defs.h.

#define GCC_GENERATED_STDINT_H   1

Definition at line 49 of file defs.h.

#define GDB_MI_MSG_WIDTH   80

Definition at line 761 of file defs.h.

#define HOST_CHAR_BIT   TARGET_CHAR_BIT

Definition at line 667 of file defs.h.

#define LONGEST   long long

Definition at line 126 of file defs.h.

#define OPF_RETURN_REALPATH   0x04

Definition at line 350 of file defs.h.

#define OPF_SEARCH_IN_PATH   0x02

Definition at line 349 of file defs.h.

#define OPF_TRY_CWD_FIRST   0x01

Definition at line 348 of file defs.h.

#define QUIT
Value:

Definition at line 191 of file defs.h.

#define ULONGEST   unsigned long long

Definition at line 127 of file defs.h.

#define XCALLOC (   NMEMB,
  TYPE 
)    ((TYPE*) xcalloc ((NMEMB), sizeof (TYPE)))

Definition at line 563 of file defs.h.

#define XMALLOC (   TYPE)    ((TYPE*) xmalloc (sizeof (TYPE)))

Definition at line 562 of file defs.h.

#define XZALLOC (   TYPE)    ((TYPE*) xzalloc (sizeof (TYPE)))

Definition at line 561 of file defs.h.


Typedef Documentation

typedef bfd_vma CORE_ADDR

Definition at line 112 of file defs.h.

typedef int(* find_memory_region_ftype)(CORE_ADDR addr, unsigned long size, int read, int write, int exec, int modified, void *data)

Definition at line 373 of file defs.h.

typedef bfd_byte gdb_byte

Definition at line 109 of file defs.h.

typedef void initialize_file_ftype(void)

Definition at line 312 of file defs.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
MAX_REGISTER_SIZE 

Definition at line 649 of file defs.h.

Enumerator:
AUTO_BOOLEAN_TRUE 
AUTO_BOOLEAN_FALSE 
AUTO_BOOLEAN_AUTO 

Definition at line 229 of file defs.h.

enum block_enum
Enumerator:
GLOBAL_BLOCK 
STATIC_BLOCK 
FIRST_LOCAL_BLOCK 

Definition at line 770 of file defs.h.

Enumerator:
simple_control 
break_control 
continue_control 
while_control 
if_control 
commands_control 
python_control 
while_stepping_control 
invalid_control 

Definition at line 411 of file defs.h.

enum gdb_osabi
Enumerator:
GDB_OSABI_UNINITIALIZED 
GDB_OSABI_UNKNOWN 
GDB_OSABI_SVR4 
GDB_OSABI_HURD 
GDB_OSABI_SOLARIS 
GDB_OSABI_OSF1 
GDB_OSABI_LINUX 
GDB_OSABI_FREEBSD_AOUT 
GDB_OSABI_FREEBSD_ELF 
GDB_OSABI_NETBSD_AOUT 
GDB_OSABI_NETBSD_ELF 
GDB_OSABI_OPENBSD_ELF 
GDB_OSABI_WINCE 
GDB_OSABI_GO32 
GDB_OSABI_IRIX 
GDB_OSABI_HPUX_ELF 
GDB_OSABI_HPUX_SOM 
GDB_OSABI_QNXNTO 
GDB_OSABI_CYGWIN 
GDB_OSABI_AIX 
GDB_OSABI_DICOS 
GDB_OSABI_DARWIN 
GDB_OSABI_SYMBIAN 
GDB_OSABI_OPENVMS 
GDB_OSABI_LYNXOS178 
GDB_OSABI_NEWLIB 
GDB_OSABI_INVALID 

Definition at line 569 of file defs.h.

Enumerator:
IP_MINIMAL 
IP_MAPPINGS 
IP_STATUS 
IP_STAT 
IP_CMDLINE 
IP_EXE 
IP_CWD 
IP_ALL 

Definition at line 451 of file defs.h.

enum language
Enumerator:
language_unknown 
language_auto 
language_c 
language_cplus 
language_d 
language_go 
language_objc 
language_java 
language_fortran 
language_m2 
language_asm 
language_pascal 
language_ada 
language_opencl 
language_minimal 
nr_languages 

Definition at line 201 of file defs.h.

enum lval_type
Enumerator:
not_lval 
lval_memory 
lval_register 
lval_internalvar 
lval_internalvar_component 
lval_computed 

Definition at line 384 of file defs.h.

Enumerator:
ok_command 
end_command 
else_command 
nop_command 

Definition at line 403 of file defs.h.

Enumerator:
single_precision 
double_precision 
unspecified_precision 

Definition at line 221 of file defs.h.

Enumerator:
RETURN_VALUE_REGISTER_CONVENTION 
RETURN_VALUE_STRUCT_CONVENTION 
RETURN_VALUE_ABI_RETURNS_ADDRESS 
RETURN_VALUE_ABI_PRESERVES_ADDRESS 

Definition at line 237 of file defs.h.

Enumerator:
Val_no_prettyformat 
Val_prettyformat 
Val_prettyformat_default 

Definition at line 492 of file defs.h.


Function Documentation

void add_path ( char *  ,
char **  ,
int   
)

Definition at line 459 of file source.c.

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 
)

Definition at line 626 of file printcmd.c.

int check_quit_flag ( void  )

Definition at line 160 of file utils.c.

void clear_quit_flag ( void  )
char* command_line_input ( char *  ,
int  ,
char *   
)

Definition at line 887 of file top.c.

void directory_switch ( char *  ,
int   
)

Definition at line 439 of file source.c.

int extract_long_unsigned_integer ( const gdb_byte ,
int  ,
enum  bfd_endian,
LONGEST  
)

Definition at line 121 of file findvar.c.

LONGEST extract_signed_integer ( const gdb_byte ,
int  ,
enum  bfd_endian 
)

Definition at line 51 of file findvar.c.

CORE_ADDR extract_typed_address ( const gdb_byte buf,
struct type type 
)

Definition at line 171 of file findvar.c.

ULONGEST extract_unsigned_integer ( const gdb_byte ,
int  ,
enum  bfd_endian 
)

Definition at line 86 of file findvar.c.

void free_command_lines ( struct command_line **  )

Definition at line 1318 of file cli-script.c.

char* gdb_readline ( char *  )

Definition at line 620 of file top.c.

char* gdb_readline_wrapper ( char *  )

Definition at line 792 of file top.c.

void generic_load ( char *  name,
int  from_tty 
)

Definition at line 2028 of file symfile.c.

void init_source_path ( void  )

Definition at line 402 of file source.c.

void initialize_inferiors ( void  )

Definition at line 986 of file inferior.c.

void initialize_progspace ( void  )

Definition at line 524 of file progspace.c.

Definition at line 1435 of file top.c.

Definition at line 1038 of file valprint.c.

void mod_path ( char *  ,
char **   
)

Definition at line 447 of file source.c.

int openp ( const char *  ,
int  ,
const char *  ,
int  ,
char **   
)

Definition at line 703 of file source.c.

const char* pc_prefix ( CORE_ADDR  )

Definition at line 767 of file printcmd.c.

void print_address ( struct gdbarch *  ,
CORE_ADDR  ,
struct ui_file *   
)

Definition at line 756 of file printcmd.c.

int print_address_symbolic ( struct gdbarch *  ,
CORE_ADDR  ,
struct ui_file *  ,
int  ,
char *   
)

Definition at line 571 of file printcmd.c.

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 
)

Definition at line 2137 of file symfile.c.

void quit ( void  )

Definition at line 1040 of file utils.c.

char* re_comp ( const char *  )
struct command_line* read_command_lines ( char *  ,
int  ,
int  ,
void(*)(char *, void *)  ,
void *   
) [read]

Definition at line 1198 of file cli-script.c.

struct command_line* read_command_lines_1 ( char *  *)(void,
int  ,
void(*)(char *, void *)  ,
void *   
) [read]
char* relocate_gdb_directory ( const char *  initial,
int  flag 
)

Definition at line 131 of file main.c.

void set_next_address ( struct gdbarch *  ,
CORE_ADDR   
)

Definition at line 549 of file printcmd.c.

void set_quit_flag ( void  )

Definition at line 152 of file utils.c.

int source_full_path_of ( const char *  ,
char **   
)

Definition at line 896 of file source.c.

void store_signed_integer ( gdb_byte ,
int  ,
enum  bfd_endian,
LONGEST   
)

Definition at line 186 of file findvar.c.

void store_typed_address ( gdb_byte buf,
struct type type,
CORE_ADDR  addr 
)

Definition at line 244 of file findvar.c.

void store_unsigned_integer ( gdb_byte ,
int  ,
enum  bfd_endian,
ULONGEST   
)

Definition at line 214 of file findvar.c.

void symbol_file_command ( char *  ,
int   
)

Definition at line 1578 of file symfile.c.


Variable Documentation

Definition at line 114 of file stack.c.

Definition at line 122 of file top.c.

Definition at line 59 of file main.c.

Definition at line 1368 of file symfile.c.

void(* deprecated_attach_hook)(void)

Definition at line 229 of file top.c.

void(* deprecated_call_command_hook)(struct cmd_list_element *c, char *cmd, int from_tty)

Definition at line 252 of file top.c.

Definition at line 262 of file top.c.

void(* deprecated_detach_hook)(void)

Definition at line 230 of file top.c.

int(*) void(*) void(* deprecated_flush_hook)(struct ui_file *stream)
void(* deprecated_init_ui_hook)(char *argv0)

Definition at line 186 of file top.c.

Definition at line 235 of file top.c.

Definition at line 79 of file symfile.c.

Definition at line 78 of file symfile.c.

void(* deprecated_print_frame_info_listing_hook)(struct symtab *s, int line, int stopline, int noerror)

Definition at line 198 of file top.c.

int(* deprecated_query_hook)(const char *, va_list) ATTRIBUTE_FPTR_PRINTF(1

Definition at line 204 of file top.c.

void(* deprecated_readline_begin_hook)(char *,...) ATTRIBUTE_FPTR_PRINTF_1

Definition at line 222 of file top.c.

Definition at line 224 of file top.c.

char*(* deprecated_readline_hook)(char *)

Definition at line 223 of file top.c.

Definition at line 240 of file top.c.

Definition at line 258 of file top.c.

void(* deprecated_show_load_progress)(const char *section, unsigned long section_sent, unsigned long section_size, unsigned long total_sent, unsigned long total_size)

Definition at line 73 of file symfile.c.

Definition at line 245 of file top.c.

int(* deprecated_ui_load_progress_hook)(const char *section, unsigned long num)

Definition at line 71 of file symfile.c.

Definition at line 193 of file top.c.

int(*) void(* deprecated_warning_hook)(const char *, va_list) ATTRIBUTE_FPTR_PRINTF(1

Definition at line 208 of file top.c.

char* gdb_datadir

Definition at line 65 of file main.c.

char* gdb_sysroot

Definition at line 62 of file main.c.

Definition at line 1569 of file top.c.

unsigned input_radix

Definition at line 170 of file valprint.c.

Definition at line 53 of file main.c.

unsigned output_radix

Definition at line 180 of file valprint.c.

Definition at line 74 of file main.c.

char* source_path

Definition at line 70 of file source.c.

Definition at line 91 of file top.c.

Definition at line 76 of file maint.c.

Definition at line 56 of file main.c.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines