GDB (xrefs)
Macros | Functions | Variables
print-utils.c File Reference
#include "common-defs.h"
#include "print-utils.h"

Go to the source code of this file.

Macros

#define NUMCELLS   16
 

Functions

char * get_print_cell (void)
 
static char * decimal2str (const char *sign, ULONGEST addr, int width)
 
static char * octal2str (ULONGEST addr, int width)
 
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)
 

Variables

static int thirty_two = 32
 

Macro Definition Documentation

◆ NUMCELLS

#define NUMCELLS   16

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

Referenced by get_print_cell().

Function Documentation

◆ core_addr_to_string()

const char* core_addr_to_string ( const CORE_ADDR  addr)

◆ core_addr_to_string_nz()

const char* core_addr_to_string_nz ( const CORE_ADDR  addr)

◆ decimal2str()

static char* decimal2str ( const char *  sign,
ULONGEST  addr,
int  width 
)
static

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

References _, get_print_cell(), internal_error(), PRINT_CELL_SIZE, and xsnprintf().

Referenced by int_string(), plongest(), and pulongest().

◆ 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 amd64_relocate_instruction(), append_ocl_sos(), bkscm_print_block_smob(), create_addrmap_from_index(), create_cus_hash_table(), create_debug_type_hash_table(), create_dwo_cu_reader(), create_dwo_unit_in_dwp_v1(), create_dwo_unit_in_dwp_v2(), create_new_frame(), create_tracepoint_from_upload(), debug_qf_find_compunit_symtab_by_address(), debug_qf_find_pc_sect_compunit_symtab(), do_compile_dwarf_expr_to_c(), dump_die_shallow(), dump_subexp_body_standard(), find_unwind_entry(), flash_erase_command(), follow_die_sig(), fprint_field(), fprint_frame(), fprint_frame_id(), frame_unwind_pc(), gdbscm_memory_port_print(), get_frame_func_if_available(), get_function_name(), get_signatured_type(), go32_pte_for_address(), i386_relocate_instruction(), info_scope_command(), int_string(), linux_core_info_proc_mappings(), linux_infcall_munmap(), linux_info_proc(), load_progress(), lookup_dwo_cutu(), lsscm_print_lazy_string_smob(), maintenance_translate_address(), make_blockvector(), mi_cmd_var_create(), mi_memory_changed(), paddress(), parse_partial_symbols(), pdc_read_data(), pdc_read_regs(), pdc_symbol_addrs(), pdc_write_data(), pdc_write_regs(), print_symbol(), process_one_symbol(), process_queue(), push(), pushf_register(), read_attribute_value(), read_cutu_die_from_dwo(), read_dbx_symtab(), remote_parse_stop_reply(), rs6000_ptrace64(), simple_search_memory(), spu_current_sos(), and unwind_command().

◆ hex_string_custom()

char* hex_string_custom ( LONGEST  num,
int  width 
)

◆ 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 
)

◆ octal2str()

static char* octal2str ( ULONGEST  addr,
int  width 
)
static

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

References _, get_print_cell(), internal_error(), PRINT_CELL_SIZE, and xsnprintf().

Referenced by int_string().

◆ phex()

char* phex ( ULONGEST  l,
int  sizeof_l 
)

◆ phex_nz()

char* phex_nz ( ULONGEST  l,
int  sizeof_l 
)

◆ plongest()

char* plongest ( LONGEST  l)

◆ pulongest()

char* pulongest ( ULONGEST  u)

Variable Documentation

◆ thirty_two

int thirty_two = 32
static

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

Referenced by phex(), and phex_nz().