diff options
author | Stu Grossman <grossman@cygnus> | 1994-12-16 01:07:35 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1994-12-16 01:07:35 +0000 |
commit | 86db943cebfc5a45476d6926bbeccbda4e69a568 (patch) | |
tree | 2f696b0f9359243ae6ff71636879ae26e5d55cbc /gdb/defs.h | |
parent | 243babd42406749d7299822be3fb63a9ccc4fcd3 (diff) | |
download | gdb-86db943cebfc5a45476d6926bbeccbda4e69a568.zip gdb-86db943cebfc5a45476d6926bbeccbda4e69a568.tar.gz gdb-86db943cebfc5a45476d6926bbeccbda4e69a568.tar.bz2 |
* defs.h, gdbtk.c (gdbtk_fputs), main.c (gdb_fputs), top.c: Add stream arg
to fputs_unfiltered_hook. Differentiate stdout from stderr when
passing text into tcl land.
* defs.h, top.c, utils.c (error): Add error_hook.
* gdbtk.c: Improve mechanism for capturing output values.
* (full_filename): Remove.
* (gdb_cmd call_wrapper gdbtk_init): Protect all calls from tcl
land with call_wrapper. This prevents longjmps (usually via
error()) from jumping out of tcl/tk and leaving things in an
indeterminate state.
* gdbtk.tcl: New view option to disable line numbers. Put catch
around most uses of gdb_cmd. Add update button to reg config
window. Stop doing immediate updates when selecting registers.
Change register view values into checkbuttons.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 40 |
1 files changed, 6 insertions, 34 deletions
@@ -33,6 +33,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* libiberty.h can't declare this one, but evidently we can. */ extern char *strsignal PARAMS ((int)); +#include "mmalloc.h" + /* For BFD64 and bfd_vma. */ #include "bfd.h" @@ -138,28 +140,6 @@ extern int inside_main_func PARAMS ((CORE_ADDR pc)); extern char *chill_demangle PARAMS ((const char *)); -/* From libiberty.a */ - -extern char *cplus_demangle PARAMS ((const char *, int)); - -extern char *cplus_mangle_opname PARAMS ((char *, int)); - -/* From libmmalloc.a (memory mapped malloc library) */ - -extern PTR mmalloc_attach PARAMS ((int, PTR)); - -extern PTR mmalloc_detach PARAMS ((PTR)); - -extern PTR mmalloc PARAMS ((PTR, long)); - -extern PTR mrealloc PARAMS ((PTR, PTR, long)); - -extern void mfree PARAMS ((PTR, PTR)); - -extern int mmalloc_setkey PARAMS ((PTR, int, PTR)); - -extern PTR mmalloc_getkey PARAMS ((PTR, int)); - /* From utils.c */ extern int strcmp_iw PARAMS ((const char *, const char *)); @@ -544,19 +524,9 @@ extern PTR xmmalloc PARAMS ((PTR, long)); extern PTR xmrealloc PARAMS ((PTR, PTR, long)); -extern PTR mmalloc PARAMS ((PTR, long)); - -extern PTR mrealloc PARAMS ((PTR, PTR, long)); - -extern void mfree PARAMS ((PTR, PTR)); - -extern int mmcheck PARAMS ((PTR, void (*) (void))); - -extern int mmtrace PARAMS ((void)); - extern int parse_escape PARAMS ((char **)); -extern const char * const reg_names[]; +extern char *reg_names[]; /* Message to be printed before the error message, when an error occurs. */ @@ -862,7 +832,7 @@ extern CORE_ADDR push_word PARAMS ((CORE_ADDR, unsigned LONGEST)); extern void (*init_ui_hook) PARAMS ((void)); extern void (*command_loop_hook) PARAMS ((void)); -extern void (*fputs_unfiltered_hook) PARAMS ((const char *linebuffer)); +extern void (*fputs_unfiltered_hook) PARAMS ((const char *linebuffer, FILE *stream)); extern void (*print_frame_info_listing_hook) PARAMS ((struct symtab *s, int line, int stopline, int noerror)); extern int (*query_hook) PARAMS (()); @@ -884,6 +854,8 @@ extern int (*target_wait_hook) PARAMS ((int pid, extern void (*call_command_hook) PARAMS ((struct cmd_list_element *c, char *cmd, int from_tty)); +extern NORETURN void (*error_hook) PARAMS (()); + /* Inhibit window interface if non-zero. */ extern int use_windows; |