aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-06-18 18:23:08 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-06-18 18:23:08 +0000
commitcbf3b44a9fd8240ea5f6daef05f7d43020f9fcc0 (patch)
tree8ac31c37150a776884b8db6d999ee40010f8641d /gdb/symtab.c
parentbceb6e50519a169c044c1d2fef5b3a9f5cda2a06 (diff)
downloadfsf-binutils-gdb-cbf3b44a9fd8240ea5f6daef05f7d43020f9fcc0.zip
fsf-binutils-gdb-cbf3b44a9fd8240ea5f6daef05f7d43020f9fcc0.tar.gz
fsf-binutils-gdb-cbf3b44a9fd8240ea5f6daef05f7d43020f9fcc0.tar.bz2
2007-06-18 Markus Deuling <deuling@de.ibm.com>
* gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by gdbarch_deprecated_function_start_offset. * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise. * linespec.c (minsym_found): Likewise. * infrun.c (handle_inferior_event): Likewise. * infcall.c (find_function_addr): Likewise. * cli/cli-cmds.c (disassemble_command): Likewise. * gdbarch.c, gdbarch.h: Regenerate.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 83ff938..6a9ef41 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -2527,7 +2527,7 @@ find_function_start_sal (struct symbol *sym, int funfirstline)
!section_is_mapped (section))
pc = overlay_unmapped_address (pc, section);
- pc += DEPRECATED_FUNCTION_START_OFFSET;
+ pc += gdbarch_deprecated_function_start_offset (current_gdbarch);
pc = gdbarch_skip_prologue (current_gdbarch, pc);
/* For overlays, map pc back into its mapped VMA range */
@@ -4101,7 +4101,7 @@ skip_prologue_using_sal (CORE_ADDR func_addr)
/* Get an initial range for the function. */
find_pc_partial_function (func_addr, NULL, &start_pc, &end_pc);
- start_pc += DEPRECATED_FUNCTION_START_OFFSET;
+ start_pc += gdbarch_deprecated_function_start_offset (current_gdbarch);
prologue_sal = find_pc_line (start_pc, 0);
if (prologue_sal.line != 0)