aboutsummaryrefslogtreecommitdiff
path: root/gdb/linespec.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/linespec.c
parentbceb6e50519a169c044c1d2fef5b3a9f5cda2a06 (diff)
downloadgdb-cbf3b44a9fd8240ea5f6daef05f7d43020f9fcc0.zip
gdb-cbf3b44a9fd8240ea5f6daef05f7d43020f9fcc0.tar.gz
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/linespec.c')
-rw-r--r--gdb/linespec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/linespec.c b/gdb/linespec.c
index dc003e5..9043ca6 100644
--- a/gdb/linespec.c
+++ b/gdb/linespec.c
@@ -1833,7 +1833,8 @@ minsym_found (int funfirstline, struct minimal_symbol *msymbol)
values.sals[0].section = SYMBOL_BFD_SECTION (msymbol);
if (funfirstline)
{
- values.sals[0].pc += DEPRECATED_FUNCTION_START_OFFSET;
+ values.sals[0].pc
+ += gdbarch_deprecated_function_start_offset (current_gdbarch);
values.sals[0].pc = gdbarch_skip_prologue
(current_gdbarch, values.sals[0].pc);
}