2002-10-24 Elena Zannoni <ezannoni@redhat.com>
* symtab.h (INIT_SAL): Delete macro. (init_sal): Export. * symtab.c (init_sal): New function. * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro to init_sal function call. (find_sal_from_funcs_and_line): Ditto. (all_sals_for_line): Ditto. * breakpoint.c (create_internal_breakpoint): Ditto. (create_fork_vfork_event_catchpoint): Ditto. (create_exec_event_catchpoint): Ditto. (parse_breakpoint_sals): Ditto. (watch_command_1): Ditto. (handle_gnu_4_16_catch_command): Ditto. (clear_command): Ditto. * hppa-tdep.c (child_enable_exception_callback): Ditto. * infcmd.c (run_stack_dummy): Ditto. * infrun.c (process_event_stop_test): Ditto. (check_sigtramp2): Ditto. (step_over_function): Ditto. * linespec.c (decode_line_2): Ditto. (decode_line_1): Ditto. * source.c (line_info): Ditto. * symtab.c (find_pc_sect_line): Ditto.
This commit is contained in:
parent
b64bbf8c48
commit
fe39c6533d
10 changed files with 63 additions and 31 deletions
14
gdb/infrun.c
14
gdb/infrun.c
|
@ -2603,7 +2603,7 @@ process_event_stop_test:
|
|||
/* Set up a step-resume breakpoint at the address
|
||||
indicated by SKIP_SOLIB_RESOLVER. */
|
||||
struct symtab_and_line sr_sal;
|
||||
INIT_SAL (&sr_sal);
|
||||
init_sal (&sr_sal);
|
||||
sr_sal.pc = pc_after_resolver;
|
||||
|
||||
check_for_old_step_resume_breakpoint ();
|
||||
|
@ -2656,7 +2656,7 @@ process_event_stop_test:
|
|||
breakpoint even though the signal happened. */
|
||||
struct symtab_and_line sr_sal;
|
||||
|
||||
INIT_SAL (&sr_sal);
|
||||
init_sal (&sr_sal);
|
||||
sr_sal.symtab = NULL;
|
||||
sr_sal.line = 0;
|
||||
sr_sal.pc = prev_pc;
|
||||
|
@ -2769,7 +2769,7 @@ process_event_stop_test:
|
|||
struct symtab_and_line xxx;
|
||||
/* Why isn't this s_a_l called "sr_sal", like all of the
|
||||
other s_a_l's where this code is duplicated? */
|
||||
INIT_SAL (&xxx); /* initialize to zeroes */
|
||||
init_sal (&xxx); /* initialize to zeroes */
|
||||
xxx.pc = tmp;
|
||||
xxx.section = find_pc_overlay (xxx.pc);
|
||||
check_for_old_step_resume_breakpoint ();
|
||||
|
@ -2844,7 +2844,7 @@ process_event_stop_test:
|
|||
/* And put the step-breakpoint there and go until there. */
|
||||
struct symtab_and_line sr_sal;
|
||||
|
||||
INIT_SAL (&sr_sal); /* initialize to zeroes */
|
||||
init_sal (&sr_sal); /* initialize to zeroes */
|
||||
sr_sal.pc = tmp;
|
||||
sr_sal.section = find_pc_overlay (sr_sal.pc);
|
||||
/* Do not specify what the fp should be when we stop
|
||||
|
@ -2960,7 +2960,7 @@ check_sigtramp2 (struct execution_control_state *ecs)
|
|||
|
||||
struct symtab_and_line sr_sal;
|
||||
|
||||
INIT_SAL (&sr_sal); /* initialize to zeroes */
|
||||
init_sal (&sr_sal); /* initialize to zeroes */
|
||||
sr_sal.pc = prev_pc;
|
||||
sr_sal.section = find_pc_overlay (sr_sal.pc);
|
||||
/* We perhaps could set the frame if we kept track of what the
|
||||
|
@ -3016,7 +3016,7 @@ step_into_function (struct execution_control_state *ecs)
|
|||
else
|
||||
{
|
||||
/* Put the step-breakpoint there and go until there. */
|
||||
INIT_SAL (&sr_sal); /* initialize to zeroes */
|
||||
init_sal (&sr_sal); /* initialize to zeroes */
|
||||
sr_sal.pc = ecs->stop_func_start;
|
||||
sr_sal.section = find_pc_overlay (ecs->stop_func_start);
|
||||
/* Do not specify what the fp should be when we stop since on
|
||||
|
@ -3051,7 +3051,7 @@ step_over_function (struct execution_control_state *ecs)
|
|||
{
|
||||
struct symtab_and_line sr_sal;
|
||||
|
||||
INIT_SAL (&sr_sal); /* initialize to zeros */
|
||||
init_sal (&sr_sal); /* initialize to zeros */
|
||||
sr_sal.pc = ADDR_BITS_REMOVE (SAVED_PC_AFTER_CALL (get_current_frame ()));
|
||||
sr_sal.section = find_pc_overlay (sr_sal.pc);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue