GDB (API)
Enumerations | Functions | Variables
/tmp/gdb-7.10/gdb/utils.h File Reference
#include "exceptions.h"

Go to the source code of this file.

Enumerations

enum  resource_limit_kind { LIMIT_CUR, LIMIT_MAX }
 

Functions

void initialize_utils (void)
 
int strcmp_iw (const char *, const char *)
 
int strcmp_iw_ordered (const char *, const char *)
 
int streq (const char *, const char *)
 
int subset_compare (char *, char *)
 
int compare_positive_ints (const void *ap, const void *bp)
 
int compare_strings (const void *ap, const void *bp)
 
const char * gdb_bfd_errmsg (bfd_error_type error_tag, char **matching)
 
void reset_prompt_for_continue_wait_time (void)
 
struct timeval get_prompt_for_continue_wait_time (void)
 
int parse_pid_to_attach (const char *args)
 
int parse_escape (struct gdbarch *, const char **)
 
char ** gdb_buildargv (const char *)
 
struct cleanup * make_cleanup_freeargv (char **)
 
struct cleanup * make_cleanup_dyn_string_delete (struct dyn_string *)
 
struct cleanup * make_cleanup_ui_file_delete (struct ui_file *)
 
struct cleanup * make_cleanup_ui_out_redirect_pop (struct ui_out *uiout)
 
struct cleanup * make_cleanup_free_section_addr_info (struct section_addr_info *))
 
struct cleanup * make_cleanup_fclose (FILE *file)
 
struct cleanup * make_cleanup_bfd_unref (bfd *abfd)
 
struct cleanup * make_cleanup_obstack_free (struct obstack *obstack)
 
struct cleanup * make_cleanup_restore_integer (int *variable)
 
struct cleanup * make_cleanup_restore_uinteger (unsigned int *variable)
 
struct cleanup * make_cleanup_unpush_target (struct target_ops *ops)
 
struct cleanup * make_cleanup_restore_ui_file (struct ui_file **variable)
 
struct cleanup * make_cleanup_value_free_to_mark (struct value *)
 
struct cleanup * make_cleanup_value_free (struct value *)
 
struct cleanup * make_cleanup_free_so (struct so_list *so)
 
struct cleanup * make_cleanup_restore_current_language (void)
 
struct cleanup * make_cleanup_htab_delete (htab_t htab)
 
struct cleanup * make_cleanup_clear_parser_state (struct parser_state **p)
 
void free_current_contents (void *)
 
void init_page_info (void)
 
struct cleanup * make_cleanup_restore_page_info (void)
 
struct cleanup * set_batch_flag_and_make_cleanup_restore_page_info (void)
 
struct cleanup * make_bpstat_clear_actions_cleanup (void)
 
char * gdb_realpath (const char *)
 
char * gdb_realpath_keepfile (const char *)
 
char * gdb_abspath (const char *)
 
int gdb_filename_fnmatch (const char *pattern, const char *string, int flags)
 
void substitute_path_component (char **stringp, const char *from, const char *to)
 
char * ldirname (const char *filename)
 
int query (const char *,...) ATTRIBUTE_PRINTF(1
 
int int nquery (const char *,...) ATTRIBUTE_PRINTF(1
 
int int int yquery (const char *,...) ATTRIBUTE_PRINTF(1
 
int int int void begin_line (void)
 
void wrap_here (char *)
 
void reinitialize_more_filter (void)
 
void set_screen_width_and_height (int width, int height)
 
void fputs_filtered (const char *, struct ui_file *)
 
void fputs_unfiltered (const char *, struct ui_file *)
 
int fputc_filtered (int c, struct ui_file *)
 
int fputc_unfiltered (int c, struct ui_file *)
 
int putchar_filtered (int c)
 
int putchar_unfiltered (int c)
 
void puts_filtered (const char *)
 
void puts_unfiltered (const char *)
 
void puts_filtered_tabular (char *string, int width, int right)
 
void puts_debug (char *prefix, char *string, char *suffix)
 
void vprintf_filtered (const char *, va_list) ATTRIBUTE_PRINTF(1
 
void void vfprintf_filtered (struct ui_file *, const char *, va_list) ATTRIBUTE_PRINTF(2
 
void void void fprintf_filtered (struct ui_file *, const char *,...) ATTRIBUTE_PRINTF(2
 
void void void void fprintfi_filtered (int, struct ui_file *, const char *,...) ATTRIBUTE_PRINTF(3
 
void void void void void printf_filtered (const char *,...) ATTRIBUTE_PRINTF(1
 
void void void void void void printfi_filtered (int, const char *,...) ATTRIBUTE_PRINTF(2
 
void void void void void void void vprintf_unfiltered (const char *, va_list) ATTRIBUTE_PRINTF(1
 
void void void void void void void void vfprintf_unfiltered (struct ui_file *, const char *, va_list) ATTRIBUTE_PRINTF(2
 
void void void void void void void void void fprintf_unfiltered (struct ui_file *, const char *,...) ATTRIBUTE_PRINTF(2
 
void void void void void void void void void void printf_unfiltered (const char *,...) ATTRIBUTE_PRINTF(1
 
void void void void void void void void void void void print_spaces (int, struct ui_file *)
 
void print_spaces_filtered (int, struct ui_file *)
 
char * n_spaces (int)
 
void fputstr_filtered (const char *str, int quotr, struct ui_file *stream)
 
void fputstr_unfiltered (const char *str, int quotr, struct ui_file *stream)
 
void fputstrn_filtered (const char *str, int n, int quotr, struct ui_file *stream)
 
void fputstrn_unfiltered (const char *str, int n, int quotr, struct ui_file *stream)
 
int filtered_printing_initialized (void)
 
void gdb_print_host_address (const void *addr, struct ui_file *stream)
 
const char * paddress (struct gdbarch *gdbarch, CORE_ADDR addr)
 
const char * print_core_address (struct gdbarch *gdbarch, CORE_ADDR address)
 
hashval_t core_addr_hash (const void *ap)
 
int core_addr_eq (const void *ap, const void *bp)
 
CORE_ADDR string_to_core_addr (const char *my_string)
 
void fprintf_symbol_filtered (struct ui_file *, const char *, enum language, int)
 
void throw_perror_with_name (enum errors errcode, const char *string) ATTRIBUTE_NORETURN
 
void perror_warning_with_name (const char *string)
 
void print_sys_errmsg (const char *, int)
 
void error_stream (struct ui_file *) ATTRIBUTE_NORETURN
 
void demangler_vwarning (const char *file, int line, const char *, va_list ap) ATTRIBUTE_PRINTF(3
 
void void demangler_warning (const char *file, int line, const char *,...) ATTRIBUTE_PRINTF(3
 
void void void * hashtab_obstack_allocate (void *data, size_t size, size_t count)
 
void dummy_obstack_deallocate (void *object, void *data)
 
int producer_is_gcc_ge_4 (const char *producer)
 
int producer_is_gcc (const char *producer, int *major, int *minor)
 
int myread (int, char *, int)
 
ULONGEST align_up (ULONGEST v, int n)
 
ULONGEST align_down (ULONGEST v, int n)
 
int can_dump_core (enum resource_limit_kind limit_kind)
 
void warn_cant_dump_core (const char *reason)
 
void dump_core (void)
 
char * make_hex_string (const gdb_byte *data, size_t length)
 

Variables

int sevenbit_strings
 
int pagination_enabled
 
struct ui_file * gdb_stdout
 
struct ui_file * gdb_stdin
 
struct ui_file * gdb_stderr
 
struct ui_file * gdb_stdlog
 
struct ui_file * gdb_stdtarg
 
struct ui_file * gdb_stdtargerr
 
struct ui_file * gdb_stdtargin
 
void(* deprecated_error_begin_hook )(void)
 
char * warning_pre_print
 

Enumeration Type Documentation

Enumerator
LIMIT_CUR 
LIMIT_MAX 

Definition at line 345 of file utils.h.

Function Documentation

ULONGEST align_down ( ULONGEST  v,
int  n 
)
ULONGEST align_up ( ULONGEST  v,
int  n 
)
int int int void begin_line ( void  )
int can_dump_core ( enum resource_limit_kind  limit_kind)
int compare_positive_ints ( const void *  ap,
const void *  bp 
)
int compare_strings ( const void *  ap,
const void *  bp 
)
int core_addr_eq ( const void *  ap,
const void *  bp 
)
hashval_t core_addr_hash ( const void *  ap)
void demangler_vwarning ( const char *  file,
int  line,
const char *  ,
va_list  ap 
)
void void demangler_warning ( const char *  file,
int  line,
const char *  ,
  ... 
)
void dummy_obstack_deallocate ( void *  object,
void *  data 
)
void dump_core ( void  )
void error_stream ( struct ui_file *  )
int filtered_printing_initialized ( void  )
void void void fprintf_filtered ( struct ui_file *  ,
const char *  ,
  ... 
)
void fprintf_symbol_filtered ( struct ui_file *  ,
const char *  ,
enum  language,
int   
)
void void void void void void void void void fprintf_unfiltered ( struct ui_file *  ,
const char *  ,
  ... 
)
void void void void fprintfi_filtered ( int  ,
struct ui_file *  ,
const char *  ,
  ... 
)
int fputc_filtered ( int  c,
struct ui_file *   
)
int fputc_unfiltered ( int  c,
struct ui_file *   
)
void fputs_filtered ( const char *  ,
struct ui_file *   
)
void fputs_unfiltered ( const char *  ,
struct ui_file *   
)
void fputstr_filtered ( const char *  str,
int  quotr,
struct ui_file *  stream 
)
void fputstr_unfiltered ( const char *  str,
int  quotr,
struct ui_file *  stream 
)
void fputstrn_filtered ( const char *  str,
int  n,
int  quotr,
struct ui_file *  stream 
)
void fputstrn_unfiltered ( const char *  str,
int  n,
int  quotr,
struct ui_file *  stream 
)
void free_current_contents ( void *  )
char* gdb_abspath ( const char *  )
const char* gdb_bfd_errmsg ( bfd_error_type  error_tag,
char **  matching 
)
char** gdb_buildargv ( const char *  )
int gdb_filename_fnmatch ( const char *  pattern,
const char *  string,
int  flags 
)
void gdb_print_host_address ( const void *  addr,
struct ui_file *  stream 
)
char* gdb_realpath ( const char *  )
char* gdb_realpath_keepfile ( const char *  )
struct timeval get_prompt_for_continue_wait_time ( void  )
void void void* hashtab_obstack_allocate ( void *  data,
size_t  size,
size_t  count 
)
void init_page_info ( void  )
void initialize_utils ( void  )
char* ldirname ( const char *  filename)
struct cleanup* make_bpstat_clear_actions_cleanup ( void  )
struct cleanup* make_cleanup_bfd_unref ( bfd *  abfd)
struct cleanup* make_cleanup_clear_parser_state ( struct parser_state **  p)
struct cleanup* make_cleanup_dyn_string_delete ( struct dyn_string *  )
struct cleanup* make_cleanup_fclose ( FILE *  file)
struct cleanup* make_cleanup_free_section_addr_info ( struct section_addr_info *  )
struct cleanup* make_cleanup_free_so ( struct so_list *  so)
struct cleanup* make_cleanup_freeargv ( char **  )
struct cleanup* make_cleanup_htab_delete ( htab_t  htab)
struct cleanup* make_cleanup_obstack_free ( struct obstack *  obstack)
struct cleanup* make_cleanup_restore_current_language ( void  )
struct cleanup* make_cleanup_restore_integer ( int *  variable)
struct cleanup* make_cleanup_restore_page_info ( void  )
struct cleanup* make_cleanup_restore_ui_file ( struct ui_file **  variable)
struct cleanup* make_cleanup_restore_uinteger ( unsigned int *  variable)
struct cleanup* make_cleanup_ui_file_delete ( struct ui_file *  )
struct cleanup* make_cleanup_ui_out_redirect_pop ( struct ui_out *  uiout)
struct cleanup* make_cleanup_unpush_target ( struct target_ops *  ops)
struct cleanup* make_cleanup_value_free ( struct value *  )
struct cleanup* make_cleanup_value_free_to_mark ( struct value *  )
char* make_hex_string ( const gdb_byte *  data,
size_t  length 
)
int myread ( int  ,
char *  ,
int   
)
char* n_spaces ( int  )
int int nquery ( const char *  ,
  ... 
)
const char* paddress ( struct gdbarch *  gdbarch,
CORE_ADDR  addr 
)
int parse_escape ( struct gdbarch *  ,
const char **   
)
int parse_pid_to_attach ( const char *  args)
void perror_warning_with_name ( const char *  string)
const char* print_core_address ( struct gdbarch *  gdbarch,
CORE_ADDR  address 
)
void void void void void void void void void void void print_spaces ( int  ,
struct ui_file *   
)
void print_spaces_filtered ( int  ,
struct ui_file *   
)
void print_sys_errmsg ( const char *  ,
int   
)
void void void void void printf_filtered ( const char *  ,
  ... 
)
void void void void void void void void void void printf_unfiltered ( const char *  ,
  ... 
)
void void void void void void printfi_filtered ( int  ,
const char *  ,
  ... 
)
int producer_is_gcc ( const char *  producer,
int *  major,
int *  minor 
)
int producer_is_gcc_ge_4 ( const char *  producer)
int putchar_filtered ( int  c)
int putchar_unfiltered ( int  c)
void puts_debug ( char *  prefix,
char *  string,
char *  suffix 
)
void puts_filtered ( const char *  )
void puts_filtered_tabular ( char *  string,
int  width,
int  right 
)
void puts_unfiltered ( const char *  )
int query ( const char *  ,
  ... 
)
void reinitialize_more_filter ( void  )
void reset_prompt_for_continue_wait_time ( void  )
struct cleanup* set_batch_flag_and_make_cleanup_restore_page_info ( void  )
void set_screen_width_and_height ( int  width,
int  height 
)
int strcmp_iw ( const char *  ,
const char *   
)
int strcmp_iw_ordered ( const char *  ,
const char *   
)
int streq ( const char *  ,
const char *   
)
CORE_ADDR string_to_core_addr ( const char *  my_string)
int subset_compare ( char *  ,
char *   
)
void substitute_path_component ( char **  stringp,
const char *  from,
const char *  to 
)
void throw_perror_with_name ( enum errors  errcode,
const char *  string 
)
void void vfprintf_filtered ( struct ui_file *  ,
const char *  ,
va_list   
)
void void void void void void void void vfprintf_unfiltered ( struct ui_file *  ,
const char *  ,
va_list   
)
void vprintf_filtered ( const char *  ,
va_list   
)
void void void void void void void vprintf_unfiltered ( const char *  ,
va_list   
)
void warn_cant_dump_core ( const char *  reason)
void wrap_here ( char *  )
int int int yquery ( const char *  ,
  ... 
)

Variable Documentation

void(* deprecated_error_begin_hook) (void)
struct ui_file* gdb_stderr
struct ui_file* gdb_stdin
struct ui_file* gdb_stdlog
struct ui_file* gdb_stdout
struct ui_file* gdb_stdtarg
struct ui_file* gdb_stdtargerr
struct ui_file* gdb_stdtargin
int pagination_enabled
int sevenbit_strings
char* warning_pre_print