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

* RE: [PING][PATCH 1/1] gdb, infrun: assertion for a possibly uninitialized variable
  2023-10-24 10:16 [PATCH 1/1] gdb, infrun: assertion for a possibly uninitialized variable Schimpe, Christina
@ 2023-11-06 17:24 ` Schimpe, Christina
  2023-11-13 17:19 ` [PATCH " Tom Tromey
  1 sibling, 0 replies; 3+ messages in thread
From: Schimpe, Christina @ 2023-11-06 17:24 UTC (permalink / raw)
  To: gdb-patches

Kindly pinging for this patch.

Christina

> -----Original Message-----
> From: Schimpe, Christina <christina.schimpe@intel.com>
> Sent: Tuesday, October 24, 2023 12:17 PM
> To: gdb-patches@sourceware.org
> Subject: [PATCH 1/1] gdb, infrun: assertion for a possibly uninitialized variable
> 
> 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

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

* Re: [PATCH 1/1] gdb, infrun: assertion for a possibly uninitialized variable
  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 ` Tom Tromey
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Tromey @ 2023-11-13 17:19 UTC (permalink / raw)
  To: Schimpe, Christina; +Cc: gdb-patches

>>>>> Schimpe, Christina <christina.schimpe@intel.com> writes:

> 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>

Seems fine to me.
Approved-By: Tom Tromey <tom@tromey.com>

Tom

^ 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).