From 6bac74738704531ac5da95ed65795d8b8b89e200 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Wed, 18 Jul 2012 16:12:17 +0000 Subject: 2012-07-18 Sergio Durigan Junior * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument. (elf_compile_to_ax): Likewise. * infrun.c (insert_exception_resume_from_probe): Likewise. (check_exception_resume): Remove `objfile' variable. * probe.c (find_probe_by_pc): Remove `objfile' argument. (struct probe_and_objfile, probe_and_objfile_s): Delete. (collect_probes): Adjust return value to `VEC (probe_p) *'. (compare_entries): Rename to... (compare_probes): ...this. Adjust function to work with `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb' respectively. (gen_ui_out_table_header_info): Adjust `probes' argument to be `VEC (probe_p) *'. (print_ui_out_info): Adjust argument to be `struct probe *'. (info_probes_for_ops): Adjust internal computations to use `VEC (probe_p) *'. (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore. * probe.h (struct probe_ops) : Remove `objfile' argument. (struct probe) : New field. (find_probe_by_pc): Remove `objfile' argument. * stap-probe.c (stap_parse_probe_arguments): Likewise. (stap_get_probe_argument_count): Likewise. (stap_get_arg): Likewise. (stap_evaluate_probe_argument): Likewise. (stap_compile_to_ax): Likewise. (compile_probe_arg): Refactor not to pass `objfile' anymore. (handle_stap_probe): Fill `objfile' field from `struct probe'. (stap_gen_info_probes_table_header): Remove `objfile' argument. * symfile.h (struct sym_probe_fns) : Likewise. --- gdb/infrun.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'gdb/infrun.c') diff --git a/gdb/infrun.c b/gdb/infrun.c index 11f981f..bd209f7 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -5518,7 +5518,6 @@ insert_exception_resume_breakpoint (struct thread_info *tp, static void insert_exception_resume_from_probe (struct thread_info *tp, const struct probe *probe, - struct objfile *objfile, struct frame_info *frame) { struct value *arg_value; @@ -5534,7 +5533,7 @@ insert_exception_resume_from_probe (struct thread_info *tp, if (debug_infrun) fprintf_unfiltered (gdb_stdlog, "infrun: exception resume at %s\n", - paddress (get_objfile_arch (objfile), + paddress (get_objfile_arch (probe->objfile), handler)); bp = set_momentary_breakpoint_at_pc (get_frame_arch (frame), @@ -5552,7 +5551,6 @@ check_exception_resume (struct execution_control_state *ecs, struct frame_info *frame) { volatile struct gdb_exception e; - struct objfile *objfile; const struct probe *probe; struct symbol *func; @@ -5560,11 +5558,10 @@ check_exception_resume (struct execution_control_state *ecs, SystemTap probe point. If so, the probe has two arguments: the CFA and the HANDLER. We ignore the CFA, extract the handler, and set a breakpoint there. */ - probe = find_probe_by_pc (get_frame_pc (frame), &objfile); + probe = find_probe_by_pc (get_frame_pc (frame)); if (probe) { - insert_exception_resume_from_probe (ecs->event_thread, probe, - objfile, frame); + insert_exception_resume_from_probe (ecs->event_thread, probe, frame); return; } -- cgit v1.1