This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[rfc] #include "gdb_obstack.h"
- From: Andrew Cagney <ac131313 at ges dot redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 02 Jul 2002 15:26:34 -0400
- Subject: [rfc] #include "gdb_obstack.h"
Hello,
The bcache stuff caused me to stumble across this (symtab.h):
/* Some definitions and declarations to go with use of obstacks. */
#include "obstack.h"
#define obstack_chunk_alloc xmalloc
#define obstack_chunk_free xfree
Other parts of GDB also include "obstack.h" but don't provide those
definitions .... I've always wondered how this worked - I knew obstack
needed some stuff defined but never knew where that was done => good
luck rather than good management :-)
I think this should be moved to a new file "gdb_obstack.h" and
everything in GDB tweaked to include that.
(Unless someone beats me to it I'll try to cover this next week).
Andrew