aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-12-15 12:18:53 +0000
committerFred Fish <fnf@specifix.com>1992-12-15 12:18:53 +0000
commit51b80b0072e928c9163087e1fcbc71e52301f524 (patch)
tree90bb7bbe1b85b516f3439749f81af4c42a6085ef /gdb/defs.h
parent631f7a9f7c9d520973aec40b9ef090cc59b3caa0 (diff)
downloadgdb-51b80b0072e928c9163087e1fcbc71e52301f524.zip
gdb-51b80b0072e928c9163087e1fcbc71e52301f524.tar.gz
gdb-51b80b0072e928c9163087e1fcbc71e52301f524.tar.bz2
* complaints.c: New file, code moved from utils.c.
* complaints.c (complain): Made into a varargs function. * complaints.h: New file, code moved from symfile.h. * Makefile.in (SFILES_MAINDIR): Add complaints.c. * Makefile.in (HFILES): Add complaints.h. * Makefile.in (OBS): Add complaints.o. * symfile.c (complaint_root, stop_whining, complaint_series, complain, clear_complaints, add_show_from_set for stop_whining): Moved to complaints.c. * symfile.h (struct complaint, complaint_root decl, complain prototype, clear_complaints prototype): Moved to complaints.h. * buildsym.c, coffread.c, dbxread.c, dwarfread.c, elfread.c, gdbtypes.c, mipsread.c, stbsread.c, symfile.c: Include complaints.h. Remove casts from arguments to complain(), which is now a varargs function, and remove unnecessary placeholder zero args. * defs.h (begin_line): Add prototype. * defs.h (vprintf_filtered): Add prototype. * dwarfread.c (varargs.h): Remove, no longer needed. * dwarfread.c (dwarfwarn): Remove prototype and function. * dwarfread.c (complaints): Define a bunch of complaints. * dwarfread.c (SQUAWK): Remove macro defs, convert all usages to standard complain() calls. * utils.c (begin_line): New function that ensures that whatever gets filter-printed next starts on its own line. * utils.c (vprintf_filtered): New func, like vfprintf_filtered, but to stdout (calls vfprintf_filtered internally).
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h37
1 files changed, 14 insertions, 23 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 2ec8a0c..34d47f7 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -41,6 +41,7 @@ typedef unsigned int CORE_ADDR;
extern int quit_flag;
extern int immediate_quit;
+extern int sevenbit_strings;
extern void
quit PARAMS ((void));
@@ -184,6 +185,9 @@ extern int
query ();
extern void
+begin_line PARAMS ((void));
+
+extern void
wrap_here PARAMS ((char *));
extern void
@@ -199,6 +203,9 @@ extern void
puts_filtered PARAMS ((char *));
extern void
+vprintf_filtered ();
+
+extern void
vfprintf_filtered ();
extern void
@@ -223,7 +230,7 @@ extern char *
n_spaces PARAMS ((int));
extern void
-printchar PARAMS ((int, FILE *, int));
+gdb_printchar PARAMS ((int, FILE *, int));
extern char *
strdup_demangled PARAMS ((const char *));
@@ -334,7 +341,10 @@ extern unsigned output_radix;
/* Baud rate specified for communication with serial target systems. */
extern char *baud_rate;
-/* Languages represented in the symbol table and elsewhere. */
+/* Languages represented in the symbol table and elsewhere.
+ This should probably be in language.h, but since enum's can't
+ be forward declared to satisfy opaque references before their
+ actual definition, needs to be here. */
enum language
{
@@ -342,31 +352,12 @@ enum language
language_auto, /* Placeholder for automatic setting */
language_c, /* C */
language_cplus, /* C++ */
+ /* start-sanitize-chill */
language_chill, /* Chill */
+ /* end-sanitize-chill */
language_m2 /* Modula-2 */
};
-/* Return a format string for printf that will print a number in the local
- (language-specific) hexadecimal format. Result is static and is
- overwritten by the next call. local_hex_format_custom takes printf
- options like "08" or "l" (to produce e.g. %08x or %lx). */
-
-#define local_hex_format() (current_language->la_hex_format)
-
-extern char *
-local_hex_format_custom PARAMS ((char *)); /* language.c */
-
-/* Return a string that contains a number formatted in the local
- (language-specific) hexadecimal format. Result is static and is
- overwritten by the next call. local_hex_string_custom takes printf
- options like "08" or "l". */
-
-extern char *
-local_hex_string PARAMS ((int)); /* language.c */
-
-extern char *
-local_hex_string_custom PARAMS ((int, char *)); /* language.c */
-
/* Host machine definition. This will be a symlink to one of the
xm-*.h files, built by the `configure' script. */