GDB (API)
Loading...
Searching...
No Matches
Classes | Macros | Enumerations | Functions | Variables
/tmp/gdb-13.1/gdb/utils.h File Reference
#include "exceptions.h"
#include "gdbsupport/array-view.h"
#include "gdbsupport/scoped_restore.h"
#include <chrono>

Go to the source code of this file.

Classes

struct  set_batch_flag_and_restore_page_info
 

Macros

#define gdb_stdout   (*current_ui_gdb_stdout_ptr ())
 
#define gdb_stdin   (*current_ui_gdb_stdin_ptr ())
 
#define gdb_stderr   (*current_ui_gdb_stderr_ptr ())
 
#define gdb_stdlog   (*current_ui_gdb_stdlog_ptr ())
 

Enumerations

enum class  strncmp_iw_mode { NORMAL , MATCH_PARAMS }
 
enum  resource_limit_kind { LIMIT_CUR , LIMIT_MAX }
 

Functions

int strncmp_iw_with_mode (const char *string1, const char *string2, size_t string2_len, strncmp_iw_mode mode, enum language language, completion_match_for_lcd *match_for_lcd=NULL, bool ignore_template_params=false)
 
int strncmp_iw (const char *string1, const char *string2, size_t string2_len)
 
int strcmp_iw (const char *string1, const char *string2)
 
int strcmp_iw_ordered (const char *, const char *)
 
void reset_prompt_for_continue_wait_time (void)
 
std::chrono::steady_clock::duration get_prompt_for_continue_wait_time ()
 
int parse_pid_to_attach (const char *args)
 
int parse_escape (struct gdbarch *, const char **)
 
void init_page_info (void)
 
int gdb_filename_fnmatch (const char *pattern, const char *string, int flags)
 
void substitute_path_component (char **stringp, const char *from, const char *to)
 
std::string ldirname (const char *filename)
 
int count_path_elements (const char *path)
 
const char * strip_leading_path_elements (const char *path, int n)
 
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 (int)
 
void reinitialize_more_filter (void)
 
int get_chars_per_line ()
 
struct ui_file ** current_ui_gdb_stdout_ptr (void)
 
struct ui_file ** current_ui_gdb_stdin_ptr (void)
 
struct ui_file ** current_ui_gdb_stderr_ptr (void)
 
struct ui_file ** current_ui_gdb_stdlog_ptr (void)
 
void gdb_flush (struct ui_file *stream)
 
void set_screen_width_and_height (int width, int height)
 
void gdb_puts (const char *, struct ui_file *)
 
void gdb_putc (int c, struct ui_file *)
 
void gdb_putc (int c)
 
void gdb_puts (const char *)
 
void puts_tabular (char *string, int width, int right)
 
void gdb_vprintf (const char *, va_list) ATTRIBUTE_PRINTF(1
 
void void gdb_vprintf (struct ui_file *, const char *, va_list) ATTRIBUTE_PRINTF(2
 
void void void gdb_printf (struct ui_file *, const char *,...) ATTRIBUTE_PRINTF(2
 
void void void void gdb_printf (const char *,...) ATTRIBUTE_PRINTF(1
 
void void void void void printf_unfiltered (const char *,...) ATTRIBUTE_PRINTF(1
 
void void void void void void print_spaces (int, struct ui_file *)
 
const char * n_spaces (int)
 
int filtered_printing_initialized (void)
 
void fprintf_styled (struct ui_file *stream, const ui_file_style &style, const char *fmt,...) ATTRIBUTE_PRINTF(3
 
void void fputs_styled (const char *linebuffer, const ui_file_style &style, struct ui_file *stream)
 
void fputs_highlighted (const char *str, const compiled_regex &highlight, struct ui_file *stream)
 
const char * paddress (struct gdbarch *gdbarch, CORE_ADDR addr)
 
const char * print_core_address (struct gdbarch *gdbarch, CORE_ADDR address)
 
CORE_ADDR string_to_core_addr (const char *my_string)
 
void fprintf_symbol (struct ui_file *, const char *, enum language, int)
 
void perror_warning_with_name (const char *string)
 
void print_sys_errmsg (const char *, int)
 
void error_stream (const string_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 int myread (int, char *, int)
 
ULONGEST uinteger_pow (ULONGEST v1, LONGEST v2)
 
int can_dump_core (enum resource_limit_kind limit_kind)
 
void warn_cant_dump_core (const char *reason)
 
void dump_core (void)
 
void copy_bitwise (gdb_byte *dest, ULONGEST dest_offset, const gdb_byte *source, ULONGEST source_offset, ULONGEST nbits, int bits_big_endian)
 

Variables

bool sevenbit_strings
 
bool pagination_enabled
 
bool debug_timestamp
 
struct ui_file * gdb_stdtarg
 
struct ui_file * gdb_stdtargerr
 
struct ui_file * gdb_stdtargin
 
void(* deprecated_error_begin_hook )(void)
 
const char * warning_pre_print
 

Macro Definition Documentation

◆ gdb_stderr

#define gdb_stderr   (*current_ui_gdb_stderr_ptr ())

Definition at line 193 of file utils.h.

◆ gdb_stdin

#define gdb_stdin   (*current_ui_gdb_stdin_ptr ())

Definition at line 190 of file utils.h.

◆ gdb_stdlog

#define gdb_stdlog   (*current_ui_gdb_stdlog_ptr ())

Definition at line 196 of file utils.h.

◆ gdb_stdout

#define gdb_stdout   (*current_ui_gdb_stdout_ptr ())

Definition at line 188 of file utils.h.

Enumeration Type Documentation

◆ resource_limit_kind

Enumerator
LIMIT_CUR 
LIMIT_MAX 

Definition at line 321 of file utils.h.

◆ strncmp_iw_mode

enum class strncmp_iw_mode
strong
Enumerator
NORMAL 
MATCH_PARAMS 

Definition at line 42 of file utils.h.

Function Documentation

◆ begin_line()

int int int void begin_line ( void  )

◆ can_dump_core()

int can_dump_core ( enum resource_limit_kind  limit_kind)

◆ copy_bitwise()

void copy_bitwise ( gdb_byte *  dest,
ULONGEST  dest_offset,
const gdb_byte *  source,
ULONGEST  source_offset,
ULONGEST  nbits,
int  bits_big_endian 
)

◆ count_path_elements()

int count_path_elements ( const char *  path)

◆ current_ui_gdb_stderr_ptr()

struct ui_file ** current_ui_gdb_stderr_ptr ( void  )

◆ current_ui_gdb_stdin_ptr()

struct ui_file ** current_ui_gdb_stdin_ptr ( void  )

◆ current_ui_gdb_stdlog_ptr()

struct ui_file ** current_ui_gdb_stdlog_ptr ( void  )

◆ current_ui_gdb_stdout_ptr()

struct ui_file ** current_ui_gdb_stdout_ptr ( void  )

◆ demangler_vwarning()

void demangler_vwarning ( const char *  file,
int  line,
const char *  ,
va_list  ap 
)

◆ demangler_warning()

void void demangler_warning ( const char *  file,
int  line,
const char *  ,
  ... 
)

◆ dump_core()

void dump_core ( void  )

◆ error_stream()

void error_stream ( const string_file &  )

◆ filtered_printing_initialized()

int filtered_printing_initialized ( void  )

◆ fprintf_styled()

void fprintf_styled ( struct ui_file *  stream,
const ui_file_style &  style,
const char *  fmt,
  ... 
)

◆ fprintf_symbol()

void fprintf_symbol ( struct ui_file *  ,
const char *  ,
enum  language,
int   
)

◆ fputs_highlighted()

void fputs_highlighted ( const char *  str,
const compiled_regex &  highlight,
struct ui_file *  stream 
)

◆ fputs_styled()

void void fputs_styled ( const char *  linebuffer,
const ui_file_style &  style,
struct ui_file *  stream 
)

◆ gdb_filename_fnmatch()

int gdb_filename_fnmatch ( const char *  pattern,
const char *  string,
int  flags 
)

◆ gdb_flush()

void gdb_flush ( struct ui_file *  stream)

◆ gdb_printf() [1/2]

void void void void gdb_printf ( const char *  ,
  ... 
)

◆ gdb_printf() [2/2]

void void void gdb_printf ( struct ui_file *  ,
const char *  ,
  ... 
)

◆ gdb_putc() [1/2]

void gdb_putc ( int  c)

◆ gdb_putc() [2/2]

void gdb_putc ( int  c,
struct ui_file *   
)

◆ gdb_puts() [1/2]

void gdb_puts ( const char *  )

◆ gdb_puts() [2/2]

void gdb_puts ( const char *  ,
struct ui_file *   
)

◆ gdb_vprintf() [1/2]

void gdb_vprintf ( const char *  ,
va_list   
)

◆ gdb_vprintf() [2/2]

void void gdb_vprintf ( struct ui_file *  ,
const char *  ,
va_list   
)

◆ get_chars_per_line()

int get_chars_per_line ( )

◆ get_prompt_for_continue_wait_time()

std::chrono::steady_clock::duration get_prompt_for_continue_wait_time ( )

◆ init_page_info()

void init_page_info ( void  )

◆ ldirname()

std::string ldirname ( const char *  filename)

◆ myread()

void void int myread ( int  ,
char *  ,
int   
)

◆ n_spaces()

const char * n_spaces ( int  )

◆ nquery()

int int nquery ( const char *  ,
  ... 
)

◆ paddress()

const char * paddress ( struct gdbarch *  gdbarch,
CORE_ADDR  addr 
)

◆ parse_escape()

int parse_escape ( struct gdbarch *  ,
const char **   
)

◆ parse_pid_to_attach()

int parse_pid_to_attach ( const char *  args)

◆ perror_warning_with_name()

void perror_warning_with_name ( const char *  string)

◆ print_core_address()

const char * print_core_address ( struct gdbarch *  gdbarch,
CORE_ADDR  address 
)

◆ print_spaces()

void void void void void void print_spaces ( int  ,
struct ui_file *   
)

◆ print_sys_errmsg()

void print_sys_errmsg ( const char *  ,
int   
)

◆ printf_unfiltered()

void void void void void printf_unfiltered ( const char *  ,
  ... 
)

◆ puts_tabular()

void puts_tabular ( char *  string,
int  width,
int  right 
)

◆ query()

int query ( const char *  ,
  ... 
)

◆ reinitialize_more_filter()

void reinitialize_more_filter ( void  )

◆ reset_prompt_for_continue_wait_time()

void reset_prompt_for_continue_wait_time ( void  )

◆ set_screen_width_and_height()

void set_screen_width_and_height ( int  width,
int  height 
)

◆ strcmp_iw()

int strcmp_iw ( const char *  string1,
const char *  string2 
)

◆ strcmp_iw_ordered()

int strcmp_iw_ordered ( const char *  ,
const char *   
)

◆ string_to_core_addr()

CORE_ADDR string_to_core_addr ( const char *  my_string)

◆ strip_leading_path_elements()

const char * strip_leading_path_elements ( const char *  path,
int  n 
)

◆ strncmp_iw()

int strncmp_iw ( const char *  string1,
const char *  string2,
size_t  string2_len 
)

◆ strncmp_iw_with_mode()

int strncmp_iw_with_mode ( const char *  string1,
const char *  string2,
size_t  string2_len,
strncmp_iw_mode  mode,
enum language  language,
completion_match_for_lcd *  match_for_lcd = NULL,
bool  ignore_template_params = false 
)

◆ substitute_path_component()

void substitute_path_component ( char **  stringp,
const char *  from,
const char *  to 
)

◆ uinteger_pow()

ULONGEST uinteger_pow ( ULONGEST  v1,
LONGEST  v2 
)

◆ warn_cant_dump_core()

void warn_cant_dump_core ( const char *  reason)

◆ wrap_here()

void wrap_here ( int  )

◆ yquery()

int int int yquery ( const char *  ,
  ... 
)

Variable Documentation

◆ debug_timestamp

bool debug_timestamp
extern

◆ deprecated_error_begin_hook

void(* deprecated_error_begin_hook) (void) ( void  )
extern

◆ gdb_stdtarg

struct ui_file* gdb_stdtarg
extern

◆ gdb_stdtargerr

struct ui_file* gdb_stdtargerr
extern

◆ gdb_stdtargin

struct ui_file* gdb_stdtargin
extern

◆ pagination_enabled

bool pagination_enabled
extern

◆ sevenbit_strings

bool sevenbit_strings
extern

◆ warning_pre_print

const char* warning_pre_print
extern