25 # error gdbserver should not include gdb/defs.h
28 #include "common-defs.h"
30 #include <sys/types.h>
45 #define GCC_GENERATED_STDINT_H 1
51 #include "gdb_wchar.h"
55 #include "host-defs.h"
106 #define min(a, b) ((a) < (b) ? (a) : (b))
109 #define max(a, b) ((a) > (b) ? (a) : (b))
150 extern void quit (
void);
160 #define QUIT maybe_quit ()
256 EXTERN_C
char *
re_comp (
const char *);
263 extern void generic_load (
const char *name,
int from_tty);
274 unsigned long data_count,
275 unsigned long write_count,
276 const struct timeval *start_time,
277 const struct timeval *end_time);
300 struct ui_file *,
int,
char *);
311 extern void print_address (
struct gdbarch *, CORE_ADDR,
struct ui_file *);
312 extern const char *
pc_prefix (CORE_ADDR);
317 #define OPF_TRY_CWD_FIRST 0x01
318 #define OPF_SEARCH_IN_PATH 0x02
319 #define OPF_RETURN_REALPATH 0x04
321 extern int openp (
const char *,
int,
const char *,
int,
char **);
325 extern void mod_path (
char *,
char **);
327 extern void add_path (
char *,
char **,
int);
344 int read,
int write,
int exec,
345 int modified,
void *data);
421 void (*)(
char *,
void *),
424 void (*)(
char *,
void *),
498 # include "fopen-bin.h"
504 #if !defined (UINT_MAX)
505 #define UINT_MAX ((unsigned int)(~0))
508 #if !defined (INT_MAX)
509 #define INT_MAX ((int)(UINT_MAX >> 1))
512 #if !defined (INT_MIN)
513 #define INT_MIN ((int)((int) ~0 ^ INT_MAX))
516 #if !defined (ULONG_MAX)
517 #define ULONG_MAX ((unsigned long)(~0L))
520 #if !defined (LONG_MAX)
521 #define LONG_MAX ((long)(ULONG_MAX >> 1))
524 #if !defined (ULONGEST_MAX)
525 #define ULONGEST_MAX (~(ULONGEST)0)
528 #if !defined (LONGEST_MAX)
529 #define LONGEST_MAX ((LONGEST)(ULONGEST_MAX >> 1))
581 extern double atof (
const char *);
601 enum bfd_endian, LONGEST *);
607 enum bfd_endian, LONGEST);
610 enum bfd_endian, ULONGEST);
625 struct target_waitstatus;
626 struct cmd_list_element;
633 unsigned long section_sent,
634 unsigned long section_size,
635 unsigned long total_sent,
636 unsigned long total_size);
642 ATTRIBUTE_FPTR_PRINTF(1,0);
644 ATTRIBUTE_FPTR_PRINTF(1,0);
647 ATTRIBUTE_FPTR_PRINTF_1;
648 extern char *(*deprecated_readline_hook) (
const char *);
653 struct target_waitstatus *status,
659 char *cmd,
int from_tty);
667 #define ISATTY(FP) (isatty (fileno (FP)))
671 #define GDB_MI_MSG_WIDTH 80
void(* deprecated_detach_hook)(void)
ULONGEST extract_unsigned_integer(const gdb_byte *, int, enum bfd_endian)
CORE_ADDR extract_typed_address(const gdb_byte *buf, struct type *type)
int source_full_path_of(const char *, char **)
void(* deprecated_register_changed_hook)(int regno)
void initialize_inferiors(void)
void print_address(struct gdbarch *, CORE_ADDR, struct ui_file *)
struct command_line::@1::@2 compile
void store_signed_integer(gdb_byte *, int, enum bfd_endian, LONGEST)
void clear_quit_flag(void)
int(* deprecated_query_hook)(const char *, va_list) ATTRIBUTE_FPTR_PRINTF(1
struct command_line * read_command_lines_1(char *(*)(void), int, void(*)(char *, void *), void *)
void(* deprecated_context_hook)(int)
void(* deprecated_print_frame_info_listing_hook)(struct symtab *s, int line, int stopline, int noerror)
void set_next_address(struct gdbarch *, CORE_ADDR)
int extract_long_unsigned_integer(const gdb_byte *, int, enum bfd_endian, LONGEST *)
void free_command_lines(struct command_line **)
ptid_t(* deprecated_target_wait_hook)(ptid_t ptid, struct target_waitstatus *status, int options)
const char * pc_prefix(CORE_ADDR)
char * debug_file_directory
void store_unsigned_integer(gdb_byte *, int, enum bfd_endian, ULONGEST)
int longest_to_int(LONGEST)
void init_source_path(void)
char * gdb_readline(const char *)
char * command_line_input(const char *, int, char *)
void(* deprecated_call_command_hook)(struct cmd_list_element *c, char *cmd, int from_tty)
void initialize_file_ftype(void)
int openp(const char *, int, const char *, int, char **)
int(*) void(* deprecated_warning_hook)(const char *, va_list) ATTRIBUTE_FPTR_PRINTF(1
char * gdb_readline_wrapper(const char *)
void generic_load(const char *name, int from_tty)
enum compile_i_scope_types scope
void(* selected_frame_level_changed_hook)(int)
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 mod_path(char *, char **)
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_pre_add_symbol_hook)(const char *)
volatile int sync_quit_force_run
int(*) void(*) void(* deprecated_interactive_hook)(void)
void initialize_progspace(void)
int input_from_terminal_p(void)
int build_address_symbolic(struct gdbarch *, CORE_ADDR addr, int do_demangle, char **name, int *offset, char **filename, int *line, int *unmapped)
struct command_line * next
enum command_control_type control_type
int print_address_symbolic(struct gdbarch *, CORE_ADDR, struct ui_file *, int, char *)
void(* deprecated_readline_end_hook)(void)
int check_quit_flag(void)
void symbol_file_command(char *, int)
void(* deprecated_readline_begin_hook)(char *,...) ATTRIBUTE_FPTR_PRINTF_1
void directory_switch(char *, int)
EXTERN_C char * re_comp(const char *)
double atof(const char *)
union command_line::@1 control_u
char * relocate_gdb_directory(const char *initial, int flag)
void store_typed_address(gdb_byte *buf, struct type *type, CORE_ADDR addr)
void(* deprecated_post_add_symbol_hook)(void)
int(* deprecated_ui_load_progress_hook)(const char *section, unsigned long num)
LONGEST extract_signed_integer(const gdb_byte *, int, enum bfd_endian)
struct command_line * read_command_lines(char *, int, int, void(*)(char *, void *), void *)
int(* find_memory_region_ftype)(CORE_ADDR addr, unsigned long size, int read, int write, int exec, int modified, void *data)
void add_path(char *, char **, int)
void(* deprecated_attach_hook)(void)
struct command_line ** body_list
int(* deprecated_ui_loop_hook)(int signo)