diff options
author | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-10-24 21:02:53 +0000 |
---|---|---|
committer | Elena Zannoni <ezannoni@kwikemart.cygnus.com> | 2002-10-24 21:02:53 +0000 |
commit | 89d7930af1f1e5a083e97802cc39784e6dd3703d (patch) | |
tree | 6a218ff06fd65c9900e48cfc84c5995583dbd5b3 /gdb/symtab.c | |
parent | 9ce56bf0ed5d5c3c37f8abddbf8c44658c4db6fb (diff) | |
download | gdb-89d7930af1f1e5a083e97802cc39784e6dd3703d.tar.gz |
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.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index a55fd110bfc..acbfa6538fa 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -488,6 +488,17 @@ symbol_demangled_name (struct general_symbol_info *gsymbol) /* OBSOLETE (SYMBOL_LANGUAGE (symbol) == language_chill */ /* OBSOLETE ? SYMBOL_CHILL_DEMANGLED_NAME (symbol) */ } + +/* Initialize the structure fields to zero values. */ +void +init_sal (struct symtab_and_line *sal) +{ + sal->symtab = 0; + sal->section = 0; + sal->line = 0; + sal->pc = 0; + sal->end = 0; +} @@ -1823,7 +1834,7 @@ find_pc_sect_line (CORE_ADDR pc, struct sec *section, int notcurrent) But what we want is the statement containing the instruction. Fudge the pc to make sure we get that. */ - INIT_SAL (&val); /* initialize to zeroes */ + init_sal (&val); /* initialize to zeroes */ /* It's tempting to assume that, if we can't find debugging info for any function enclosing PC, that we shouldn't search for line |