aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-05-08 04:58:45 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-05-08 04:58:45 +0000
commit48cb83fdd097716c0f21511e0e5b475bb1f2aa41 (patch)
tree4c4ba04451d6ee4b092fede123544b4d0238fa45 /gdb/symfile.h
parent8ef4892fb60c863e960a860b4adc40ad79215294 (diff)
downloadgdb-48cb83fdd097716c0f21511e0e5b475bb1f2aa41.zip
gdb-48cb83fdd097716c0f21511e0e5b475bb1f2aa41.tar.gz
gdb-48cb83fdd097716c0f21511e0e5b475bb1f2aa41.tar.bz2
gdb/
* dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg list for the obconcat call. * mdebugread.c (parse_symbol): Likewise. * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev): Likewise. * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'. New variable ap. Remove variables len and val. * symfile.h (obconcat): Likewise for the prototype.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r--gdb/symfile.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index a8effda..d53c465 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -458,11 +458,11 @@ extern struct partial_symtab *start_psymtab_common (struct objfile *,
extern char *obsavestring (const char *, int, struct obstack *);
-/* Concatenate strings S1, S2 and S3; return the new string. Space is
- found in the OBSTACKP */
+/* Concatenate NULL terminated variable argument list of `const char *' strings;
+ return the new string. Space is found in the OBSTACKP. Argument list must
+ be terminated by a sentinel expression `(char *) NULL'. */
-extern char *obconcat (struct obstack *obstackp, const char *, const char *,
- const char *);
+extern char *obconcat (struct obstack *obstackp, ...) ATTRIBUTE_SENTINEL;
/* Variables */