This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[pushed] Remove displaced_step_inferior_state::next


Commit

  39a36629f68e ("Use std::forward_list for displaced_step_inferior_states")

missed removing the "next" field, while changing the hand-made linked
list in favor of std::forward_list.  This patch fixes that.

gdb/ChangeLog:

	* infrun.c (displaced_step_inferior_state) <next>: Remove.
---
 gdb/ChangeLog | 4 ++++
 gdb/infrun.c  | 3 ---
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6973f427d0d2..f2b6f5633c02 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2018-11-19  Simon Marchi  <simon.marchi@polymtl.ca>
+
+	* infrun.c (displaced_step_inferior_state) <next>: Remove.
+
 2018-11-19  Tom Tromey  <tom@tromey.com>
 
 	* source.c (get_filename_and_charpos): Return void.
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 1c48740404e0..3e9acb45aa98 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1484,9 +1484,6 @@ displaced_step_closure::~displaced_step_closure () = default;
 /* Per-inferior displaced stepping state.  */
 struct displaced_step_inferior_state
 {
-  /* Pointer to next in linked list.  */
-  struct displaced_step_inferior_state *next;
-
   /* The process this displaced step state refers to.  */
   inferior *inf;
 
-- 
2.19.1


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]