Home | History | Annotate | Download | only in gdbsupport

Lines Matching refs:obstack

0 /* Obstack wrapper for GDB.
23 #include "obstack.h"
25 /* Utility macros - wrap obstack alloc into something more robust. */
29 obstack_zalloc (struct obstack *ob)
36 #define OBSTACK_ZALLOC(OBSTACK,TYPE) obstack_zalloc<TYPE> ((OBSTACK))
40 obstack_calloc (struct obstack *ob, size_t number)
48 #define OBSTACK_CALLOC(OBSTACK,NUMBER,TYPE) \
49 obstack_calloc<TYPE> ((OBSTACK), (NUMBER))
55 obstack_new (struct obstack *ob, Args&&... args)
65 functions using a special init function for each obstack,
74 #define obstack_grow_str(OBSTACK,STRING) \
75 obstack_grow (OBSTACK, STRING, strlen (STRING))
76 #define obstack_grow_str0(OBSTACK,STRING) \
77 obstack_grow0 (OBSTACK, STRING, strlen (STRING))
79 #define obstack_grow_wstr(OBSTACK, WSTRING) \
80 obstack_grow (OBSTACK, WSTRING, sizeof (gdb_wchar_t) * gdb_wcslen (WSTRING))
87 extern char *obconcat (struct obstack *obstackp, ...) ATTRIBUTE_SENTINEL;
90 obstack OBSTACKP. */
93 obstack_strdup (struct obstack *obstackp, const char *string)
99 obstack OBSTACKP. */
102 obstack_strdup (struct obstack *obstackp, const std::string &string)
109 \0-terminated string that's allocated on the obstack OBSTACKP.
114 obstack_strndup (struct obstack *obstackp, const char *string, size_t n)
119 /* An obstack that frees itself on scope exit. */
120 struct auto_obstack : obstack
130 /* Free all memory in the obstack but leave it valid for further
136 /* Objects are allocated on obstack instead of heap. This is a mixin
145 void* operator new (size_t size, struct obstack *obstack)
148 return obstack_alloc (obstack, size);
151 void* operator new[] (size_t size, struct obstack *obstack)
153 return obstack_alloc (obstack, size);