diff options
author | Stu Grossman <grossman@cygnus> | 1994-07-28 22:07:02 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1994-07-28 22:07:02 +0000 |
commit | 754e5da26e5fb9374d6768188944fbca8d49d37c (patch) | |
tree | b875074ed1ccedc6d761f8dab2eb4b47091bc0f4 /gdb/defs.h | |
parent | b98612f1fd9f751389044d28cfa5e66fbf2f1a7f (diff) | |
download | gdb-754e5da26e5fb9374d6768188944fbca8d49d37c.zip gdb-754e5da26e5fb9374d6768188944fbca8d49d37c.tar.gz gdb-754e5da26e5fb9374d6768188944fbca8d49d37c.tar.bz2 |
* Makefile.in (INSTALLED_LIBS, CLIBS, DEPFILES): Add support for
--enable-xxx configure option by adding ENABLE_{CLIBS DEPFILES}
where appropriate.
* General hackery to support alternate user-interface.
* breakpoint.c (mention, delete_breakpoint, enable_breakpoint,
disable_breakpoint): Call hooks for alternate user-interface.
* defs.h: Add declarations for alternate user-interface hooks.
* main.c (main): Add --nw (and --nowindows) options to disable
the GUI.
* (near call to command_loop): Call command_loop_hook if set.
* (fputs_unfiltered): Call fputs_unfiltered_hook if set.
* stack.c: Call print_frame_info_listing_hook if set.
* top.c (gdb_init): Initialize targets.c and utils.c prior to
other files to make sure that calls to error and warning will
work. Call init_ui_hook after everything else.
* utils.c (query): Call query_hook if set.
* (gdb_flush): Call flush_hook if set.
* Change _initialize_utils to initialize_utils cuz we don't use
automatic initialization of utils.c anymore.
* Support for TK GUI.
* Makefile.in: Add rule for gdbtk.o.
* configure.in: Add support for --enable-gdbtk.
* gdbtk.c: New file. Contains support routines for TK interface.
* gdbtk.tcl: New file. Implements GUI policy.
* remote.c: Get rid of #ifdef DONT_USE_REMOTE. It's no longer
necessary.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 31 |
1 files changed, 26 insertions, 5 deletions
@@ -92,7 +92,8 @@ enum language language_c, /* C */ language_cplus, /* C++ */ language_chill, /* Chill */ - language_m2 /* Modula-2 */ + language_m2, /* Modula-2 */ + language_asm /* Assembly language */ }; /* the cleanup list records things that have to be undone @@ -343,9 +344,6 @@ extern void print_prompt PARAMS ((void)); extern int -batch_mode PARAMS ((void)); - -extern int input_from_terminal_p PARAMS ((void)); /* From printcmd.c */ @@ -357,7 +355,7 @@ extern void print_address_symbolic PARAMS ((CORE_ADDR, GDB_FILE *, int, char *)); extern void -print_address_numeric PARAMS ((CORE_ADDR, GDB_FILE *)); +print_address_numeric PARAMS ((CORE_ADDR, int, GDB_FILE *)); extern void print_address PARAMS ((CORE_ADDR, GDB_FILE *)); @@ -941,4 +939,27 @@ push_word PARAMS ((CORE_ADDR, unsigned LONGEST)); #define MAINTENANCE_CMDS 1 #endif +/* Hooks for alternate command interfaces. */ + +#ifdef __STDC__ +struct symtab; +struct breakpoint; +#endif + +void (*init_ui_hook) PARAMS ((void)); +void (*command_loop_hook) PARAMS ((void)); +void (*fputs_unfiltered_hook) PARAMS ((const char *linebuffer)); +void (*print_frame_info_listing_hook) PARAMS ((struct symtab *s, int line, + int stopline, int noerror)); +int (*query_hook) PARAMS (()); +void (*flush_hook) PARAMS ((FILE *stream)); +void (*create_breakpoint_hook) PARAMS ((struct breakpoint *b)); +void (*delete_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); +void (*enable_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); +void (*disable_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); + +/* Inhibit window interface if non-zero. */ + +extern int no_windows; + #endif /* !defined (DEFS_H) */ |