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)
 

Macro Definition Documentation

◆ PREFIX

#define PREFIX   "gdbserver: "

Definition at line 25 of file utils.c.

Referenced by malloc_failure(), and vwarning().

◆ TOOLNAME

#define TOOLNAME   "GDBserver"

Definition at line 26 of file utils.c.

Referenced by internal_verror(), and internal_vwarning().

Function Documentation

◆ internal_verror()

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

◆ internal_vwarning()

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

◆ malloc_failure()

void malloc_failure ( long  size)

Definition at line 32 of file utils.c.

References PREFIX.

Referenced by operator new(), xcalloc(), xmalloc(), xmalloc_failed(), xrealloc(), and xstrdup().

◆ paddress()

char* paddress ( CORE_ADDR  addr)

◆ perror_with_name()

void perror_with_name ( const char *  string)

◆ pfildes()

char* pfildes ( gdb_fildes_t  fd)

Definition at line 132 of file utils.c.

References phex_nz(), and plongest().

Referenced by handle_file_event().

◆ verror()

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

◆ vwarning()

void vwarning ( const char *  string,
va_list  args 
)

Definition at line 90 of file utils.c.

References PREFIX.

Referenced by trace_start_error(), and warning().

◆ xstrdup()

char* xstrdup ( const char *  s)