diff options
author | Stu Grossman <grossman@cygnus> | 1994-09-16 22:57:37 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1994-09-16 22:57:37 +0000 |
commit | 637b166117dbbd3df6eedaec2873a45b4d10b3cc (patch) | |
tree | 2bd4a6d9d5e8a31d2b58bbf41a81052b74198074 /gdb/top.c | |
parent | 2d0546410d0e67caa4b51e755968070389681a44 (diff) | |
download | gdb-637b166117dbbd3df6eedaec2873a45b4d10b3cc.zip gdb-637b166117dbbd3df6eedaec2873a45b4d10b3cc.tar.gz gdb-637b166117dbbd3df6eedaec2873a45b4d10b3cc.tar.bz2 |
* defs.h (QUIT): Call interactive_hook to allow GUI to interrupt.
Also, add decl for symtab_to_filename.
* gdbtk.c: Replace calls to full_filename with symtab_to_filename.
* gdbtk.tcl: New routine pc_to_line replaces in line code. New
routine decr replaces in line code.
* (create_file_win): Use catch to handle open failures more
elegantly. Also, create special window to display file open
failure message. Move opening of file prior to creation of text
widget.
* (create_asm_win): Add PC as argument. We now base disassembly
on PC instead of function name, since function names can be
ambiguous (usually seen with shared libs). Also, use catch to
simplify code where we don't care about failures.
* source.c (symtab_to_filename): New. Returns the file
associated with a symtab.
* top.c: Define interactive_hook. Called during QUIT to animate
the GUI.
Diffstat (limited to 'gdb/top.c')
-rw-r--r-- | gdb/top.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -349,10 +349,16 @@ 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 (*create_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); void (*delete_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); void (*enable_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); void (*disable_breakpoint_hook) PARAMS ((struct breakpoint *bpt)); + +/* Called during long calculations to allow GUI to repair window damage, and to + check for stop buttons, etc... */ + +void (*interactive_hook) PARAMS ((void)); + /* Where to go for return_to_top_level (RETURN_ERROR). */ jmp_buf error_return; |