diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-04-11 22:26:14 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1995-04-11 22:26:14 +0000 |
commit | 8989d4fc4b13389e9883887b23e87a133eb72f38 (patch) | |
tree | 7a83a2a670c116a2d561ca93e93d69a90f8f9e91 /gdb/defs.h | |
parent | af125b1638ee35edf583c6f0c17caeab419c8364 (diff) | |
download | gdb-8989d4fc4b13389e9883887b23e87a133eb72f38.zip gdb-8989d4fc4b13389e9883887b23e87a133eb72f38.tar.gz gdb-8989d4fc4b13389e9883887b23e87a133eb72f38.tar.bz2 |
* utils.c, defs.h (warning_begin): Renamed from warning_setup, for
consistency with error_begin. Also print warning_pre_print.
Document it better.
* utils.c (warning): Use it.
* utils.c (error_begin): Doc fix.
* rs6000-nat.c (vmap_ldinfo): If symfile_objfile is not part of
any vmap, nuke it.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 33 |
1 files changed, 9 insertions, 24 deletions
@@ -211,11 +211,9 @@ extern void fputs_filtered PARAMS ((const char *, GDB_FILE *)); extern void fputs_unfiltered PARAMS ((const char *, GDB_FILE *)); -extern void fputc_unfiltered PARAMS ((int, GDB_FILE *)); +extern int fputc_unfiltered PARAMS ((int c, GDB_FILE *)); -extern void putc_unfiltered PARAMS ((int)); - -#define putchar_unfiltered(C) putc_unfiltered(C) +extern int putchar_unfiltered PARAMS ((int c)); extern void puts_filtered PARAMS ((char *)); @@ -541,6 +539,10 @@ extern char *reg_names[]; extern char *error_pre_print; +/* Message to be printed before the error message, when an error occurs. */ + +extern char *quit_pre_print; + /* Message to be printed before the warning message, when a warning occurs. */ extern char *warning_pre_print; @@ -573,7 +575,7 @@ return_to_top_level PARAMS ((enum return_reason)) ATTR_NORETURN; extern int catch_errors PARAMS ((int (*) (char *), void *, char *, return_mask)); -extern void warning_setup PARAMS ((void)); +extern void warning_begin PARAMS ((void)); extern void warning (); @@ -596,7 +598,9 @@ extern void psignal PARAMS ((unsigned, const char *)); extern int fclose (); +#ifndef atof extern double atof (); +#endif #ifndef MALLOC_INCOMPATIBLE @@ -740,25 +744,6 @@ extern void set_endian_from_file PARAMS ((bfd *)); #endif /* defined (TARGET_BYTE_ORDER_SELECTABLE) */ #endif /* BITS_BIG_ENDIAN not defined. */ -/* Swap LEN bytes at BUFFER between target and host byte-order. */ -#define SWAP_TARGET_AND_HOST(buffer,len) \ - do \ - { \ - if (TARGET_BYTE_ORDER != HOST_BYTE_ORDER) \ - { \ - char tmp; \ - char *p = (char *)(buffer); \ - char *q = ((char *)(buffer)) + len - 1; \ - for (; p < q; p++, q--) \ - { \ - tmp = *q; \ - *q = *p; \ - *p = tmp; \ - } \ - } \ - } \ - while (0) - /* In findvar.c. */ extern LONGEST extract_signed_integer PARAMS ((void *, int)); |