public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 1/1] gdb, infrun: assertion for a possibly uninitialized variable
@ 2023-10-24 10:16 Schimpe, Christina
  2023-11-06 17:24 ` [PING][PATCH " Schimpe, Christina
  2023-11-13 17:19 ` [PATCH " Tom Tromey
  0 siblings, 2 replies; 3+ messages in thread
From: Schimpe, Christina @ 2023-10-24 10:16 UTC (permalink / raw)
  To: gdb-patches

From: Mihails Strasuns <mihails.strasuns@intel.com>

It is expected that the loop will always be able to find an inferior.

Co-Authored-By: Christina Schimpe <christina.schimpe@intel.com>
---
 gdb/infrun.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gdb/infrun.c b/gdb/infrun.c
index 4fde96800fb..a36274819d8 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3992,6 +3992,8 @@ do_target_wait (execution_control_state *ecs, target_wait_flags options)
 	  break;
 	}
 
+  gdb_assert (selected);
+
   /* Now poll for events out of each of the matching inferior's
      targets, starting from the selected one.  */
 
-- 
2.34.1

Intel Deutschland GmbH
Registered Address: Am Campeon 10, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de <http://www.intel.de>
Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva  
Chairperson of the Supervisory Board: Nicole Lau
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-11-13 17:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-24 10:16 [PATCH 1/1] gdb, infrun: assertion for a possibly uninitialized variable Schimpe, Christina
2023-11-06 17:24 ` [PING][PATCH " Schimpe, Christina
2023-11-13 17:19 ` [PATCH " Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).