GDBserver
Macros | Functions
utils.c File Reference
#include "server.h"

Go to the source code of this file.

Macros

#define PREFIX   "gdbserver: "
 
#define TOOLNAME   "GDBserver"
 

Functions

void malloc_failure (long size)
 
char * xstrdup (const char *s)
 
void perror_with_name (const char *string)
 
void verror (const char *string, va_list args)
 
void vwarning (const char *string, va_list args)
 
void internal_verror (const char *file, int line, const char *fmt, va_list args)
 
void internal_vwarning (const char *file, int line, const char *fmt, va_list args)
 
char * paddress (CORE_ADDR addr)
 
char * pfildes (gdb_fildes_t fd)
 
void prepare_to_throw_exception (void)
 

Macro Definition Documentation

#define PREFIX   "gdbserver: "

Definition at line 25 of file utils.c.

Referenced by malloc_failure(), and vwarning().

#define TOOLNAME   "GDBserver"

Definition at line 26 of file utils.c.

Referenced by internal_verror(), and internal_vwarning().

Function Documentation

void internal_verror ( const char *  file,
int  line,
const char *  fmt,
va_list  args 
)

Definition at line 100 of file utils.c.

References TOOLNAME.

Referenced by internal_error().

void internal_vwarning ( const char *  file,
int  line,
const char *  fmt,
va_list  args 
)

Definition at line 112 of file utils.c.

References TOOLNAME.

Referenced by internal_warning().

void malloc_failure ( long  size)

Definition at line 32 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 132 of file utils.c.

References phex_nz(), and plongest().

Referenced by handle_file_event().

void prepare_to_throw_exception ( void  )

Definition at line 144 of file utils.c.

Referenced by throw_exception().

void verror ( const char *  string,
va_list  args 
)

Definition at line 77 of file utils.c.

References GENERIC_ERROR, and throw_verror().

Referenced by error().

void vwarning ( const char *  string,
va_list  args 
)

Definition at line 90 of file utils.c.

References PREFIX.

Referenced by warning().

char* xstrdup ( const char *  s)