aboutsummaryrefslogtreecommitdiff
path: root/gdb/stack.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2007-12-13 02:00:09 +0000
committerJim Blandy <jimb@codesourcery.com>2007-12-13 02:00:09 +0000
commitdfdfb3ca984ae5d2775c942705e79794d0c82d8c (patch)
treeac3f2f115c58045b99e538a6e8f55337572c1d8d /gdb/stack.c
parentee951a0b342279bd1b7b328ba25a1a112b92edd8 (diff)
downloadgdb-dfdfb3ca984ae5d2775c942705e79794d0c82d8c.zip
gdb-dfdfb3ca984ae5d2775c942705e79794d0c82d8c.tar.gz
gdb-dfdfb3ca984ae5d2775c942705e79794d0c82d8c.tar.bz2
Remove unused support for target-based exception catching.
* target.h (struct target_ops): Delete to_enable_exception_callback and to_get_current_exception_event members. (target_enable_exception_callback) (target_get_current_exception_event): Delete macros. * target.c (update_current_target): Remove code to inherit and default those members. (debug_to_enable_exception_callback) (debug_to_get_current_exception_event): Delete functions. (setup_target_debug): Don't install those methods. * inf-child.c (inf_child_enable_exception_callback) (inf_child_get_current_exception_event): Delete dummy functions. (inf_child_target): Don't install them in the target vector. * breakpoint.h (enum bptype): Delete bp_catch_catch, bp_catch_throw. * breakpoint.c (cover_target_enable_exception_callback) (ep_is_exception_catchpoint, create_exception_catchpoint): Delete functions. (insert_bp_location, update_breakpoints_after_exec) (remove_breakpoint, ep_is_catchpoint, print_it_typical) (bpstat_stop_status, bpstat_what) (bpstat_get_triggered_catchpoints, print_one_breakpoint_location) (user_settable_breakpoint, allocate_bp_location) (disable_watchpoints_before_interactive_call_start) (enable_watchpoints_after_interactive_call_stop, mention) (delete_breakpoint, breakpoint_re_set_one, disable_command) (enable_command): Remove exception catchpoint cases. (catch_exception_command_1): Don't try target-based exception handling. * stack.c (catch_info): Call print_frame_label_vars unconditionally.
Diffstat (limited to 'gdb/stack.c')
-rw-r--r--gdb/stack.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/gdb/stack.c b/gdb/stack.c
index c23529f..f09283f 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -1549,22 +1549,9 @@ catch_info (char *ignore, int from_tty)
{
struct symtab_and_line *sal;
- /* Check for target support for exception handling */
- sal = target_enable_exception_callback (EX_EVENT_CATCH, 1);
- if (sal)
- {
- /* Currently not handling this. Ideally, here we should
- interact with the C++ runtime system to find the list of
- active handlers, etc. */
- fprintf_filtered (gdb_stdout, _("\
-Info catch not supported with this target/compiler combination.\n"));
- }
- else
- {
- /* Assume g++ compiled code; old GDB 4.16 behaviour. */
- print_frame_label_vars (get_selected_frame (_("No frame selected.")),
- 0, gdb_stdout);
- }
+ /* Assume g++ compiled code; old GDB 4.16 behaviour. */
+ print_frame_label_vars (get_selected_frame (_("No frame selected.")),
+ 0, gdb_stdout);
}
static void