GDBserver
Defines | Functions | Variables
/home/stan/gdb/src/gdb/gdbserver/utils.c File Reference
#include "server.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>

Go to the source code of this file.

Defines

#define PREFIX   "gdbserver: "
#define TOOLNAME   "GDBserver"
#define NUMCELLS   10
#define CELLSIZE   50

Functions

void malloc_failure (long size)
char * xstrdup (const char *s)
void freeargv (char **vector)
void perror_with_name (const char *string)
void error (const char *string,...)
void fatal (const char *string,...)
void warning (const char *string,...)
void internal_error (const char *file, int line, const char *fmt,...)
static char * get_cell (void)
static char * decimal2str (char *sign, ULONGEST addr)
char * pulongest (ULONGEST u)
char * plongest (LONGEST l)
char * phex_nz (ULONGEST l, int sizeof_l)
char * paddress (CORE_ADDR addr)
char * pfildes (gdb_fildes_t fd)

Variables

static int thirty_two = 32

Define Documentation

#define CELLSIZE   50

Definition at line 170 of file utils.c.

Referenced by decimal2str(), get_cell(), and phex_nz().

#define NUMCELLS   10

Definition at line 169 of file utils.c.

Referenced by get_cell().

#define PREFIX   "gdbserver: "

Definition at line 31 of file utils.c.

Referenced by fatal(), malloc_failure(), and warning().

#define TOOLNAME   "GDBserver"

Definition at line 32 of file utils.c.

Referenced by internal_error().


Function Documentation

static char* decimal2str ( char *  sign,
ULONGEST  addr 
) [static]

Definition at line 185 of file utils.c.

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

Referenced by plongest(), and pulongest().

void error ( const char *  string,
  ... 
)
void fatal ( const char *  string,
  ... 
)
void freeargv ( char **  vector)

Definition at line 63 of file utils.c.

Referenced by handle_v_run().

static char* get_cell ( void  ) [static]

Definition at line 175 of file utils.c.

References CELLSIZE, and NUMCELLS.

Referenced by decimal2str(), and phex_nz().

void internal_error ( const char *  file,
int  line,
const char *  fmt,
  ... 
)
void malloc_failure ( long  size)

Definition at line 38 of file utils.c.

References PREFIX.

Referenced by xcalloc(), xmalloc(), xrealloc(), and xstrdup().

char* paddress ( CORE_ADDR  addr)
void perror_with_name ( const char *  string)
char* pfildes ( gdb_fildes_t  fd)

Definition at line 297 of file utils.c.

References phex_nz(), and plongest().

Referenced by handle_file_event().

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

Definition at line 236 of file utils.c.

References decimal2str().

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

char* pulongest ( ULONGEST  u)
void warning ( const char *  string,
  ... 
)
char* xstrdup ( const char *  s)

Variable Documentation

int thirty_two = 32 [static]

Definition at line 245 of file utils.c.

Referenced by phex_nz().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines