GDBserver
Macros | Functions
print-utils.h File Reference

Go to the source code of this file.

Macros

#define PRINT_CELL_SIZE   50
 
#define host_address_to_string(ADDR)   host_address_to_string_1 ((const void *) (ADDR))
 

Functions

char * pulongest (ULONGEST u)
 
char * plongest (LONGEST l)
 
char * phex (ULONGEST l, int sizeof_l)
 
char * phex_nz (ULONGEST l, int sizeof_l)
 
char * hex_string (LONGEST num)
 
char * hex_string_custom (LONGEST num, int width)
 
char * int_string (LONGEST val, int radix, int is_signed, int width, int use_c_format)
 
const char * core_addr_to_string (const CORE_ADDR addr)
 
const char * core_addr_to_string_nz (const CORE_ADDR addr)
 
const char * host_address_to_string_1 (const void *addr)
 
char * get_print_cell (void)
 

Macro Definition Documentation

◆ host_address_to_string

#define host_address_to_string (   ADDR)    host_address_to_string_1 ((const void *) (ADDR))

Definition at line 75 of file print-utils.h.

◆ PRINT_CELL_SIZE

#define PRINT_CELL_SIZE   50

Function Documentation

◆ core_addr_to_string()

const char* core_addr_to_string ( const CORE_ADDR  addr)

Definition at line 295 of file print-utils.c.

References get_print_cell(), and phex().

◆ core_addr_to_string_nz()

const char* core_addr_to_string_nz ( const CORE_ADDR  addr)

◆ get_print_cell()

char* get_print_cell ( void  )

◆ hex_string()

char* hex_string ( LONGEST  num)

Definition at line 220 of file print-utils.c.

References get_print_cell(), phex_nz(), PRINT_CELL_SIZE, and xsnprintf().

Referenced by int_string().

◆ hex_string_custom()

char* hex_string_custom ( LONGEST  num,
int  width 
)

Definition at line 231 of file print-utils.c.

References _, get_print_cell(), internal_error(), memset(), phex_nz(), and PRINT_CELL_SIZE.

Referenced by int_string().

◆ host_address_to_string_1()

const char* host_address_to_string_1 ( const void *  addr)

Definition at line 319 of file print-utils.c.

References get_print_cell(), phex_nz(), PRINT_CELL_SIZE, and xsnprintf().

◆ int_string()

char* int_string ( LONGEST  val,
int  radix,
int  is_signed,
int  width,
int  use_c_format 
)

◆ phex()

char* phex ( ULONGEST  l,
int  sizeof_l 
)

◆ phex_nz()

char* phex_nz ( ULONGEST  l,
int  sizeof_l 
)

◆ plongest()

char* plongest ( LONGEST  l)

Definition at line 137 of file print-utils.c.

References decimal2str().

Referenced by cmd_bigqtbuffer_size(), get_trace_state_variable_value(), and pfildes().

◆ pulongest()

char* pulongest ( ULONGEST  u)