mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 21:34:46 +08:00
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:
@ -3884,7 +3884,7 @@ create_internal_breakpoint (CORE_ADDR address, enum bptype type)
|
||||
struct symtab_and_line sal;
|
||||
struct breakpoint *b;
|
||||
|
||||
INIT_SAL (&sal); /* initialize to zeroes */
|
||||
init_sal (&sal); /* initialize to zeroes */
|
||||
|
||||
sal.pc = address;
|
||||
sal.section = find_pc_overlay (sal.pc);
|
||||
@ -4204,7 +4204,7 @@ create_fork_vfork_event_catchpoint (int tempflag, char *cond_string,
|
||||
struct breakpoint *b;
|
||||
int thread = -1; /* All threads. */
|
||||
|
||||
INIT_SAL (&sal);
|
||||
init_sal (&sal);
|
||||
sal.pc = 0;
|
||||
sal.symtab = NULL;
|
||||
sal.line = 0;
|
||||
@ -4243,7 +4243,7 @@ create_exec_event_catchpoint (int tempflag, char *cond_string)
|
||||
struct breakpoint *b;
|
||||
int thread = -1; /* All threads. */
|
||||
|
||||
INIT_SAL (&sal);
|
||||
init_sal (&sal);
|
||||
sal.pc = 0;
|
||||
sal.symtab = NULL;
|
||||
sal.line = 0;
|
||||
@ -4600,7 +4600,7 @@ parse_breakpoint_sals (char **address,
|
||||
if (default_breakpoint_valid)
|
||||
{
|
||||
struct symtab_and_line sal;
|
||||
INIT_SAL (&sal); /* initialize to zeroes */
|
||||
init_sal (&sal); /* initialize to zeroes */
|
||||
sals->sals = (struct symtab_and_line *)
|
||||
xmalloc (sizeof (struct symtab_and_line));
|
||||
sal.pc = default_breakpoint_address;
|
||||
@ -5296,7 +5296,7 @@ watch_command_1 (char *arg, int accessflag, int from_tty)
|
||||
enum bptype bp_type;
|
||||
int mem_cnt = 0;
|
||||
|
||||
INIT_SAL (&sal); /* initialize to zeroes */
|
||||
init_sal (&sal); /* initialize to zeroes */
|
||||
|
||||
/* Parse arguments. */
|
||||
innermost_block = NULL;
|
||||
@ -6262,7 +6262,7 @@ handle_gnu_4_16_catch_command (char *arg, int tempflag, int from_tty)
|
||||
char *save_arg;
|
||||
int i;
|
||||
|
||||
INIT_SAL (&sal); /* initialize to zeroes */
|
||||
init_sal (&sal); /* initialize to zeroes */
|
||||
|
||||
/* If no arg given, or if first arg is 'if ', all active catch clauses
|
||||
are breakpointed. */
|
||||
@ -6533,7 +6533,7 @@ clear_command (char *arg, int from_tty)
|
||||
sals.sals = (struct symtab_and_line *)
|
||||
xmalloc (sizeof (struct symtab_and_line));
|
||||
make_cleanup (xfree, sals.sals);
|
||||
INIT_SAL (&sal); /* initialize to zeroes */
|
||||
init_sal (&sal); /* initialize to zeroes */
|
||||
sal.line = default_breakpoint_line;
|
||||
sal.symtab = default_breakpoint_symtab;
|
||||
sal.pc = default_breakpoint_address;
|
||||
|
Reference in New Issue
Block a user