* [PATCH] gdb: Remove redundant clear_proceed_status() call
@ 2026-06-16 14:55 Claudiu Zissulescu
2026-06-16 15:49 ` Simon Marchi
2026-06-16 18:01 ` Pedro Alves
0 siblings, 2 replies; 4+ messages in thread
From: Claudiu Zissulescu @ 2026-06-16 14:55 UTC (permalink / raw)
To: gdb-patches; +Cc: pedro, lancesix, Claudiu Zissulescu
Remove redundant clear_proceed_status() call. The
init_wait_for_inferior(), which runs on the very next line, already
calls clear_proceed_status (0, false).
Signed-off-by: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@amd.com>
---
gdb/windows-nat.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index d9e924f16c6..f1660a02175 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -1944,7 +1944,6 @@ windows_nat_target::do_initial_windows_stuff (DWORD pid, bool attaching)
if (!inf->target_is_pushed (this))
inf->push_target (this);
windows_clear_solib ();
- clear_proceed_status (0);
init_wait_for_inferior ();
inferior_appeared (inf, pid);
--
2.54.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gdb: Remove redundant clear_proceed_status() call
2026-06-16 14:55 [PATCH] gdb: Remove redundant clear_proceed_status() call Claudiu Zissulescu
@ 2026-06-16 15:49 ` Simon Marchi
2026-06-16 18:01 ` Pedro Alves
1 sibling, 0 replies; 4+ messages in thread
From: Simon Marchi @ 2026-06-16 15:49 UTC (permalink / raw)
To: Claudiu Zissulescu, gdb-patches; +Cc: pedro, lancesix
On 6/16/26 10:55 AM, Claudiu Zissulescu wrote:
> Remove redundant clear_proceed_status() call. The
> init_wait_for_inferior(), which runs on the very next line, already
> calls clear_proceed_status (0, false).
>
> Signed-off-by: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@amd.com>
> ---
> gdb/windows-nat.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
> index d9e924f16c6..f1660a02175 100644
> --- a/gdb/windows-nat.c
> +++ b/gdb/windows-nat.c
> @@ -1944,7 +1944,6 @@ windows_nat_target::do_initial_windows_stuff (DWORD pid, bool attaching)
> if (!inf->target_is_pushed (this))
> inf->push_target (this);
> windows_clear_solib ();
> - clear_proceed_status (0);
> init_wait_for_inferior ();
>
> inferior_appeared (inf, pid);
> --
> 2.54.0
>
Seems fine to me.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Simon
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gdb: Remove redundant clear_proceed_status() call
2026-06-16 14:55 [PATCH] gdb: Remove redundant clear_proceed_status() call Claudiu Zissulescu
2026-06-16 15:49 ` Simon Marchi
@ 2026-06-16 18:01 ` Pedro Alves
2026-06-17 12:44 ` Zissulescu-Ianculescu, Claudiu
1 sibling, 1 reply; 4+ messages in thread
From: Pedro Alves @ 2026-06-16 18:01 UTC (permalink / raw)
To: Claudiu Zissulescu, gdb-patches; +Cc: lancesix
On 2026-06-16 15:55, Claudiu Zissulescu wrote:
> Remove redundant clear_proceed_status() call. The
> init_wait_for_inferior(), which runs on the very next line, already
> calls clear_proceed_status (0, false).
That call passes false, while this one did not. We know this actually fixes a bug in MI. Can you
please update the commit log to describe that fix? A testcase would also be great. As far as
I know, it wouldn't be complicated -- just a small test using -target-attach.
Pedro Alves
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] gdb: Remove redundant clear_proceed_status() call
2026-06-16 18:01 ` Pedro Alves
@ 2026-06-17 12:44 ` Zissulescu-Ianculescu, Claudiu
0 siblings, 0 replies; 4+ messages in thread
From: Zissulescu-Ianculescu, Claudiu @ 2026-06-17 12:44 UTC (permalink / raw)
To: Pedro Alves, gdb-patches; +Cc: Six, Lancelot
AMD General
Hi,
I'll respin the patch with Pedro's input.
Thank you,
Claudiu
-----Original Message-----
From: Pedro Alves <pedro@palves.net>
Sent: Tuesday, June 16, 2026 9:02 PM
To: Zissulescu-Ianculescu, Claudiu <Claudiu.Zissulescu-Ianculescu@amd.com>; gdb-patches@sourceware.org
Cc: Six, Lancelot <Lancelot.Six@amd.com>
Subject: Re: [PATCH] gdb: Remove redundant clear_proceed_status() call
[You don't often get email from pedro@palves.net. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
On 2026-06-16 15:55, Claudiu Zissulescu wrote:
> Remove redundant clear_proceed_status() call. The
> init_wait_for_inferior(), which runs on the very next line, already
> calls clear_proceed_status (0, false).
That call passes false, while this one did not. We know this actually fixes a bug in MI. Can you please update the commit log to describe that fix? A testcase would also be great. As far as I know, it wouldn't be complicated -- just a small test using -target-attach.
Pedro Alves
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-06-17 12:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-16 14:55 [PATCH] gdb: Remove redundant clear_proceed_status() call Claudiu Zissulescu
2026-06-16 15:49 ` Simon Marchi
2026-06-16 18:01 ` Pedro Alves
2026-06-17 12:44 ` Zissulescu-Ianculescu, Claudiu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox