diff options
author | Stu Grossman <grossman@cygnus> | 1994-08-10 23:16:40 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1994-08-10 23:16:40 +0000 |
commit | 8164ec2eb5c6b68d851af2850b20ef75a5bb1682 (patch) | |
tree | 08e2cf0e3184218ebd2194682b0fa1f102574d2d /gdb/top.c | |
parent | 1311f8d1a5ad54f0b26f318dec99ec91a37d7b1f (diff) | |
download | gdb-8164ec2eb5c6b68d851af2850b20ef75a5bb1682.zip gdb-8164ec2eb5c6b68d851af2850b20ef75a5bb1682.tar.gz gdb-8164ec2eb5c6b68d851af2850b20ef75a5bb1682.tar.bz2 |
* defs.h, top.c: Use `extern' in declarations of GUI hooks, and
define them in top.c. Add comments to the hooks.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -317,6 +317,42 @@ static void stop_sig PARAMS ((int)); #if 0 == (HAVE_SIGSETMASK) #define sigsetmask(n) #endif + +/* Hooks for alternate command interfaces. */ + +/* Called after most modules have been initialized, but before taking users + command file. */ + +void (*init_ui_hook) PARAMS ((void)); + +/* Called instead of command_loop at top level. Can be invoked via + return_to_top_level. */ + +void (*command_loop_hook) PARAMS ((void)); + +/* Called instead of fputs for all output. */ + +void (*fputs_unfiltered_hook) PARAMS ((const char *linebuffer)); + +/* Called from print_frame_info to list the line we stopped in. */ + +void (*print_frame_info_listing_hook) PARAMS ((struct symtab *s, int line, + int stopline, int noerror)); +/* Replaces most of query. */ + +int (*query_hook) PARAMS (()); + +/* Called from gdb_flush to flush output. */ + +void (*flush_hook) PARAMS ((FILE *stream)); + +/* Called as appropriate to notify the interface of the specified breakpoint + conditions. */ + +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)); /* Where to go for return_to_top_level (RETURN_ERROR). */ jmp_buf error_return; |