diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-03-01 21:18:21 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2013-03-01 21:18:21 +0000 |
commit | c4be516571a442fabfd4cdb45e0d2d7b40cd1ca9 (patch) | |
tree | beda02b1c56f2eb254b7100c1c6ff920c3389ec7 /gdb | |
parent | 341f9135d1885938b00198811b1a81bfc3c726fd (diff) | |
download | gdb-c4be516571a442fabfd4cdb45e0d2d7b40cd1ca9.zip gdb-c4be516571a442fabfd4cdb45e0d2d7b40cd1ca9.tar.gz gdb-c4be516571a442fabfd4cdb45e0d2d7b40cd1ca9.tar.bz2 |
gdb/
* dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
use it.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2loc.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 92d2209..48df60d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com> + + * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc, + use it. + 2013-03-01 Pedro Alves <palves@redhat.com> Use gdb_byte for bytes from the program being debugged. diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index 002387e..8a61ae6 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -793,6 +793,7 @@ static struct call_site_chain * call_site_find_chain_1 (struct gdbarch *gdbarch, CORE_ADDR caller_pc, CORE_ADDR callee_pc) { + CORE_ADDR save_callee_pc = callee_pc; struct obstack addr_obstack; struct cleanup *back_to_retval, *back_to_workdata; struct call_site_chain *retval = NULL; @@ -811,7 +812,7 @@ call_site_find_chain_1 (struct gdbarch *gdbarch, CORE_ADDR caller_pc, callee_pc = get_pc_function_start (callee_pc); if (callee_pc == 0) throw_error (NO_ENTRY_VALUE_ERROR, _("Unable to find function for PC %s"), - paddress (gdbarch, callee_pc)); + paddress (gdbarch, save_callee_pc)); back_to_retval = make_cleanup (free_current_contents, &retval); |