aboutsummaryrefslogtreecommitdiff
path: root/gdb/infrun.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2018-05-23 14:24:28 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2018-06-12 21:15:32 +0100
commitdefd21729f1ceb51999afcb342310835f8ab2faf (patch)
tree078cf7b42346813f75728c2d27801c05ef5e3a07 /gdb/infrun.c
parent1d3bf4a0a07d0758842fa5cc584b95771e7c226c (diff)
downloadgdb-defd21729f1ceb51999afcb342310835f8ab2faf.zip
gdb-defd21729f1ceb51999afcb342310835f8ab2faf.tar.gz
gdb-defd21729f1ceb51999afcb342310835f8ab2faf.tar.bz2
gdb: Fix an infrun debug log message
Run the test gdb.threads/multiple-successive-infcall.exp by hand, if you turn on 'debug infrun 1', you'll see that the debug line fixed in this commit is printed and contains the wrong $pc value. Fixed in this commit. gdb/ChangeLog: * infrun.c (do_target_wait): Change old version of $pc printed.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r--gdb/infrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 94a88c1..655681f 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3533,7 +3533,7 @@ do_target_wait (ptid_t ptid, struct target_waitstatus *status, int options)
fprintf_unfiltered (gdb_stdlog,
"infrun: PC of %s changed. was=%s, now=%s\n",
target_pid_to_str (tp->ptid),
- paddress (gdbarch, tp->prev_pc),
+ paddress (gdbarch, tp->suspend.stop_pc),
paddress (gdbarch, pc));
discard = 1;
}