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
 
#define CELLSIZE   50
 

Functions

static char * get_cell (void)
 
static char * decimal2str (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 (const void *addr)
 

Variables

static int thirty_two = 32
 

Macro Definition Documentation

#define CELLSIZE   50
#define NUMCELLS   16

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

Referenced by get_cell().

Function Documentation

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

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

References _, CELLSIZE, get_cell(), internal_error(), and xsnprintf().

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

static char* get_cell ( void  )
static
char* hex_string ( LONGEST  num)
char* hex_string_custom ( LONGEST  num,
int  width 
)
const char* host_address_to_string ( const void *  addr)
char* int_string ( LONGEST  val,
int  radix,
int  is_signed,
int  width,
int  use_c_format 
)
static char* octal2str ( ULONGEST  addr,
int  width 
)
static

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

References _, CELLSIZE, get_cell(), internal_error(), and xsnprintf().

Referenced by int_string().

char* phex ( ULONGEST  l,
int  sizeof_l 
)
char* phex_nz ( ULONGEST  l,
int  sizeof_l 
)
char* plongest ( LONGEST  l)
char* pulongest ( ULONGEST  u)

Variable Documentation

int thirty_two = 32
static

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

Referenced by phex(), and phex_nz().