GDB (xrefs)
Defines | Functions
/home/stan/gdb/src/gdb/gdb_obstack.h File Reference
#include "obstack.h"

Go to the source code of this file.

Defines

#define OBSTACK_ZALLOC(OBSTACK, TYPE)   (memset (obstack_alloc ((OBSTACK), sizeof (TYPE)), 0, sizeof (TYPE)))
#define OBSTACK_CALLOC(OBSTACK, NUMBER, TYPE)
#define obstack_chunk_alloc   xmalloc
#define obstack_chunk_free   xfree
#define obstack_grow_str(OBSTACK, STRING)   obstack_grow (OBSTACK, STRING, strlen (STRING))
#define obstack_grow_str0(OBSTACK, STRING)   obstack_grow0 (OBSTACK, STRING, strlen (STRING))
#define obstack_grow_wstr(OBSTACK, WSTRING)   obstack_grow (OBSTACK, WSTRING, sizeof (gdb_wchar_t) * gdb_wcslen (WSTRING))

Functions

char * obconcat (struct obstack *obstackp,...) ATTRIBUTE_SENTINEL

Define Documentation

#define OBSTACK_CALLOC (   OBSTACK,
  NUMBER,
  TYPE 
)
Value:
(memset (obstack_alloc ((OBSTACK), (NUMBER) * sizeof (TYPE)), \
           0, (NUMBER) * sizeof (TYPE)))

Definition at line 30 of file gdb_obstack.h.

Referenced by arm_exidx_new_objfile(), arm_record_special_symbol(), basic_type(), build_objfile_section_table(), dw2_get_real_path(), objfile_type(), ocl_enable_break(), open_and_init_dwp_file(), rs6000_builtin_type(), and spu_get_overlay_table().

Definition at line 43 of file gdb_obstack.h.

#define obstack_chunk_free   xfree

Definition at line 44 of file gdb_obstack.h.

#define obstack_grow_str (   OBSTACK,
  STRING 
)    obstack_grow (OBSTACK, STRING, strlen (STRING))
#define obstack_grow_str0 (   OBSTACK,
  STRING 
)    obstack_grow0 (OBSTACK, STRING, strlen (STRING))
#define obstack_grow_wstr (   OBSTACK,
  WSTRING 
)    obstack_grow (OBSTACK, WSTRING, sizeof (gdb_wchar_t) * gdb_wcslen (WSTRING))

Definition at line 51 of file gdb_obstack.h.

Referenced by generic_printstr(), print_converted_chars_to_obstack(), and print_wchar().

#define OBSTACK_ZALLOC (   OBSTACK,
  TYPE 
)    (memset (obstack_alloc ((OBSTACK), sizeof (TYPE)), 0, sizeof (TYPE)))

Function Documentation

char* obconcat ( struct obstack *  obstackp,
  ... 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines