GDB (xrefs)
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.

Referenced by allocate_compunit_symtab(), allocate_psymtab(), allocate_symtab(), arc_return_value(), c_get_range_decl_name(), c_print_token(), cp_lookup_nested_symbol(), cp_lookup_symbol_imports_or_template(), cp_lookup_symbol_namespace(), cp_lookup_symbol_nonlocal(), darwin_xfer_partial(), debug_qf_expand_symtabs_matching(), debug_qf_find_pc_sect_compunit_symtab(), debug_qf_map_matching_symbols(), debug_qf_map_symbol_filenames(), debug_qf_map_symtabs_matching_filename(), debug_qf_relocate(), debug_sym_get_probes(), debug_sym_offsets(), debug_sym_relocate(), dump_psymtab_addrmap_1(), gdb_bfd_open(), gdb_bfd_ref(), gdb_bfd_unref(), gdb_print_host_address_1(), gdbarch_dump(), gdbarch_find_by_info(), gdbarch_register(), gdbarch_update_p(), gdbsim_xfer_memory(), gnu_xfer_auxv(), gnu_xfer_memory(), handle_exception(), handle_load_dll(), handle_unload_dll(), ia64_frame_this_id(), ia64_sigtramp_frame_this_id(), language_lookup_primitive_type_as_symbol(), lookup_dwo_cutu(), lookup_language_this(), lookup_minimal_symbol(), lookup_symbol_aux(), lookup_symbol_in_block(), lookup_symbol_in_objfile(), lookup_symbol_in_objfile_symtabs(), lookup_symbol_in_static_block(), lookup_symbol_via_quick_fns(), maintenance_check_symtabs(), maintenance_info_psymtabs(), maintenance_info_symtabs(), maintenance_print_one_line_table(), or1k_frame_cache(), print_one_bfd(), record_full_arch_list_add(), record_full_exec_insn(), record_full_wait_1(), rust_lookup_symbol_nonlocal(), symbol_cache_dump(), target_xfer_partial(), unwind_command(), xtensa_push_dummy_call(), and xtensa_unwind_pc().

◆ PRINT_CELL_SIZE

#define PRINT_CELL_SIZE   50

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)

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

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