This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] infrun.c (set_step_over_info): Add comment.
- From: Doug Evans <devans at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 22 Dec 2016 23:51:19 -0000
- Subject: [binutils-gdb] infrun.c (set_step_over_info): Add comment.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ce0db13751aed2782c417bc4cf715313f9273e94
commit ce0db13751aed2782c417bc4cf715313f9273e94
Author: Doug Evans <xdje42@gmail.com>
Date: Thu Dec 22 15:50:10 2016 -0800
infrun.c (set_step_over_info): Add comment.
gdb/ChangeLog:
* infrun.c (set_step_over_info): Add comment.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/infrun.c | 4 +++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a9295e2..db6e913 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2016-12-22 Doug Evans <xdje42@gmail.com>
+ * infrun.c (set_step_over_info): Add comment.
+
+2016-12-22 Doug Evans <xdje42@gmail.com>
+
* NEWS: Document new syntax for "mt print symbols", "mt print psymbols"
and "mt print msymbols" commands.
* psymtab.c (DEV_TTY): Delete.
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 1a08a09..fb778d3 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1320,7 +1320,9 @@ struct step_over_info
static struct step_over_info step_over_info;
/* Record the address of the breakpoint/instruction we're currently
- stepping over. */
+ stepping over.
+ N.B. We record the aspace and address now, instead of say just the thread,
+ because when we need the info later the thread may be running. */
static void
set_step_over_info (struct address_space *aspace, CORE_ADDR address,