From: "Schimpe, Christina" <christina.schimpe@intel.com>
To: gdb-patches@sourceware.org
Subject: [PATCH 1/1] gdb, infrun: assertion for a possibly uninitialized variable
Date: Tue, 24 Oct 2023 10:16:46 +0000 [thread overview]
Message-ID: <20231024101646.2441140-1-christina.schimpe@intel.com> (raw)
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
next reply other threads:[~2023-10-24 10:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-24 10:16 Schimpe, Christina [this message]
2023-11-06 17:24 ` [PING][PATCH " Schimpe, Christina
2023-11-13 17:19 ` [PATCH " Tom Tromey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231024101646.2441140-1-christina.schimpe@intel.com \
--to=christina.schimpe@intel.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).