summaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2002-10-17 21:16:12 +0000
committerDavid Carlton <carlton@bactrian.org>2002-10-17 21:16:12 +0000
commit08d49e75fc1e7286ad6baa0708bddafd533c92cf (patch)
treee3cdd33cade985a4c5a94a8232341e707f0d6a49 /gdb/symfile.h
parent6d086d566637955a335d04a1ad9e53b214b112f5 (diff)
downloadgdb-08d49e75fc1e7286ad6baa0708bddafd533c92cf.tar.gz
2002-10-09 David Carlton <carlton@math.stanford.edu>
* symfile.h: Add opaque declaration for struct obstack. Declare obsavestring to take a const char *. * symfile.c (obsavestring): Make first argument a const char *.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r--gdb/symfile.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 39eb3080f13..62dfcefb54b 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -25,6 +25,10 @@
/* This file requires that you first include "bfd.h". */
+/* Opaque declarations. */
+
+struct obstack;
+
/* Partial symbols are stored in the psymbol_cache and pointers to them
are kept in a dynamically grown array that is obtained from malloc and
grown as necessary via realloc. Each objfile typically has two of these,
@@ -208,7 +212,7 @@ extern void sort_symtab_syms (struct symtab *);
(and add a null character at the end in the copy).
Returns the address of the copy. */
-extern char *obsavestring (char *, int, struct obstack *);
+extern char *obsavestring (const char *, int, struct obstack *);
/* Concatenate strings S1, S2 and S3; return the new string.
Space is found in the symbol_obstack. */