GDBserver
Functions
/home/stan/gdb/src/gdb/common/common-utils.c File Reference
#include "defs.h"
#include "gdb_assert.h"
#include "gdb_string.h"
#include <stdlib.h>
#include <stdio.h>

Go to the source code of this file.

Functions

PTR xmalloc (size_t size)
PTR xrealloc (PTR ptr, size_t size)
PTR xcalloc (size_t number, size_t size)
void * xzalloc (size_t size)
void xfree (void *ptr)
char * xstrprintf (const char *format,...)
char * xstrvprintf (const char *format, va_list ap)
int xsnprintf (char *str, size_t size, const char *format,...)
char * savestring (const char *ptr, size_t len)

Function Documentation

char* savestring ( const char *  ptr,
size_t  len 
)

Definition at line 156 of file common-utils.c.

References memcpy(), and xmalloc().

Referenced by add_tracepoint_action().

PTR xcalloc ( size_t  number,
size_t  size 
)
void xfree ( void *  ptr)
PTR xmalloc ( size_t  size)
PTR xrealloc ( PTR  ptr,
size_t  size 
)
int xsnprintf ( char *  str,
size_t  size,
const char *  format,
  ... 
)
char* xstrprintf ( const char *  format,
  ... 
)
char* xstrvprintf ( const char *  format,
va_list  ap 
)

Definition at line 127 of file common-utils.c.

References _, internal_error(), and vasprintf().

Referenced by xstrprintf().

void* xzalloc ( size_t  size)

Definition at line 99 of file common-utils.c.

References xcalloc().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines