gdb: Fix an infrun debug log message
authorAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 23 May 2018 13:24:28 +0000 (14:24 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 12 Jun 2018 20:15:32 +0000 (21:15 +0100)
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.

gdb/ChangeLog
gdb/infrun.c

index 4179665c2ed2d28e358a4e7cdb6f505f1ce19d6d..e05561a1e5757f5bdaec22ab02552addb290dd22 100644 (file)
@@ -1,3 +1,7 @@
+2018-06-12  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * infrun.c (do_target_wait): Change old version of $pc printed.
+
 2018-06-11  Simon Marchi  <simon.marchi@ericsson.com>
 
        * dwarf2read.c (read_index_from_section): Rename to...
index 94a88c13d79375e0a5f0a74f58694d35cac67755..655681ff3601e062d6437db5739886c7e3412496 100644 (file)
@@ -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;
        }