All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] gdbstub: reset supported features on Supported request
@ 2026-11-05  7:53 Pierrick Bouvier
  2026-11-05  7:56 ` Pierrick Bouvier
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Pierrick Bouvier @ 2026-11-05  7:53 UTC (permalink / raw)
  To: qemu-devel
  Cc: Philippe Mathieu-Daudé, marco.liebel, Alex Bennée,
	brian.cain, Justin Sapp, Pierrick Bouvier

From: Justin Sapp <jsapp@qti.qualcomm.com>

https://sourceware.org/gdb/current/onlinedocs/gdb.html/General-Query-Packets.html#qSupported
```
Whenever the stub receives a ‘qSupported’ request, the supplied set
of GDB features should override any previous request. This allows GDB to
put the stub in a known state, even if the stub had previously been
communicating with a different version of GDB.
```

We exposed this by connecting to gdbstub using a gdb client first, and
then WinDbg (EXDI) for windows kernel debugging. Since they both
differ in their multiprocess support, this was confusing EXDI.

While we are here, fix the same for fork_events in user mode.
Simplify control flow to always call gdb_handle_query_supported_user.

Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
---
 gdbstub/gdbstub.c | 15 +++++++--------
 gdbstub/user.c    |  4 +---
 2 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c
index 0a328b0dd48..38fe56a5d36 100644
--- a/gdbstub/gdbstub.c
+++ b/gdbstub/gdbstub.c
@@ -1679,6 +1679,11 @@ void gdb_extend_qsupported_features(char *qflags)
 
 static void handle_query_supported(GArray *params, void *user_ctx)
 {
+    const char *gdb_supported = "";
+    if (params->len) {
+        gdb_supported = gdb_get_cmd_param(params, 0)->data;
+    }
+
     g_string_printf(gdbserver_state.str_buf, "PacketSize=%x", MAX_PACKET_LENGTH);
     if (gdb_get_core_xml_file(first_cpu)) {
         g_string_append(gdbserver_state.str_buf, ";qXfer:features:read+");
@@ -1701,16 +1706,10 @@ static void handle_query_supported(GArray *params, void *user_ctx)
     g_string_append(gdbserver_state.str_buf, ";qXfer:exec-file:read+");
 #endif
 
-    if (params->len) {
-        const char *gdb_supported = gdb_get_cmd_param(params, 0)->data;
-
-        if (strstr(gdb_supported, "multiprocess+")) {
-            gdbserver_state.multiprocess = true;
-        }
+    gdbserver_state.multiprocess = strstr(gdb_supported, "multiprocess+");
 #if defined(CONFIG_USER_ONLY)
-        gdb_handle_query_supported_user(gdb_supported);
+    gdb_handle_query_supported_user(gdb_supported);
 #endif
-    }
 
     g_string_append(gdbserver_state.str_buf, ";vContSupported+;multiprocess+");
 
diff --git a/gdbstub/user.c b/gdbstub/user.c
index d810f0f38c3..6526200a360 100644
--- a/gdbstub/user.c
+++ b/gdbstub/user.c
@@ -701,9 +701,7 @@ fail:
 
 void gdb_handle_query_supported_user(const char *gdb_supported)
 {
-    if (strstr(gdb_supported, "fork-events+")) {
-        gdbserver_user_state.fork_events = true;
-    }
+    gdbserver_user_state.fork_events = strstr(gdb_supported, "fork-events+");
     g_string_append(gdbserver_state.str_buf, ";fork-events+");
 }
 
-- 
2.43.0



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

* Re: [PATCH v2] gdbstub: reset supported features on Supported request
  2026-11-05  7:53 [PATCH v2] gdbstub: reset supported features on Supported request Pierrick Bouvier
@ 2026-11-05  7:56 ` Pierrick Bouvier
  2026-11-06 15:35 ` Marco Liebel
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Pierrick Bouvier @ 2026-11-05  7:56 UTC (permalink / raw)
  To: qemu-devel
  Cc: Philippe Mathieu-Daudé, marco.liebel, Alex Bennée,
	brian.cain, Justin Sapp

On 11/4/2026 11:53 PM, Pierrick Bouvier wrote:
> From: Justin Sapp <jsapp@qti.qualcomm.com>
> 
> https://sourceware.org/gdb/current/onlinedocs/gdb.html/General-Query-Packets.html#qSupported
> ```
> Whenever the stub receives a ‘qSupported’ request, the supplied set
> of GDB features should override any previous request. This allows GDB to
> put the stub in a known state, even if the stub had previously been
> communicating with a different version of GDB.
> ```
> 
> We exposed this by connecting to gdbstub using a gdb client first, and
> then WinDbg (EXDI) for windows kernel debugging. Since they both
> differ in their multiprocess support, this was confusing EXDI.
> 
> While we are here, fix the same for fork_events in user mode.
> Simplify control flow to always call gdb_handle_query_supported_user.
> 
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
> ---
>  gdbstub/gdbstub.c | 15 +++++++--------
>  gdbstub/user.c    |  4 +---
>  2 files changed, 8 insertions(+), 11 deletions(-)
> 

v2
--

- fix fork_events reset
- (slightly) simplify control flow

Regards,
Pierrick


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

* Re: [PATCH v2] gdbstub: reset supported features on Supported request
  2026-11-05  7:53 [PATCH v2] gdbstub: reset supported features on Supported request Pierrick Bouvier
  2026-11-05  7:56 ` Pierrick Bouvier
@ 2026-11-06 15:35 ` Marco Liebel
  2026-11-11 18:12 ` Pierrick Bouvier
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Marco Liebel @ 2026-11-06 15:35 UTC (permalink / raw)
  To: Pierrick Bouvier
  Cc: qemu-devel, Philippe Mathieu-Daudé, Alex Bennée,
	brian.cain, Justin Sapp

On Thu, Nov 5, 2026 at 1:54 AM Pierrick Bouvier
<pierrick.bouvier@oss.qualcomm.com> wrote:
>
> From: Justin Sapp <jsapp@qti.qualcomm.com>
>
> https://sourceware.org/gdb/current/onlinedocs/gdb.html/General-Query-Packets.html#qSupported
> ```
> Whenever the stub receives a ‘qSupported’ request, the supplied set
> of GDB features should override any previous request. This allows GDB to
> put the stub in a known state, even if the stub had previously been
> communicating with a different version of GDB.
> ```
>
> We exposed this by connecting to gdbstub using a gdb client first, and
> then WinDbg (EXDI) for windows kernel debugging. Since they both
> differ in their multiprocess support, this was confusing EXDI.
>
> While we are here, fix the same for fork_events in user mode.
> Simplify control flow to always call gdb_handle_query_supported_user.
>
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
> ---
>  gdbstub/gdbstub.c | 15 +++++++--------
>  gdbstub/user.c    |  4 +---
>  2 files changed, 8 insertions(+), 11 deletions(-)
>

Reviewed-by: Marco Liebel <marco.liebel@oss.qualcomm.com>


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

* Re: [PATCH v2] gdbstub: reset supported features on Supported request
  2026-11-05  7:53 [PATCH v2] gdbstub: reset supported features on Supported request Pierrick Bouvier
  2026-11-05  7:56 ` Pierrick Bouvier
  2026-11-06 15:35 ` Marco Liebel
@ 2026-11-11 18:12 ` Pierrick Bouvier
  2026-11-23 16:50 ` Pierrick Bouvier
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Pierrick Bouvier @ 2026-11-11 18:12 UTC (permalink / raw)
  To: qemu-devel
  Cc: Philippe Mathieu-Daudé, marco.liebel, Alex Bennée,
	brian.cain, Justin Sapp

On 11/4/2026 11:53 PM, Pierrick Bouvier wrote:
> From: Justin Sapp <jsapp@qti.qualcomm.com>
> 
> https://sourceware.org/gdb/current/onlinedocs/gdb.html/General-Query-Packets.html#qSupported
> ```
> Whenever the stub receives a ‘qSupported’ request, the supplied set
> of GDB features should override any previous request. This allows GDB to
> put the stub in a known state, even if the stub had previously been
> communicating with a different version of GDB.
> ```
> 
> We exposed this by connecting to gdbstub using a gdb client first, and
> then WinDbg (EXDI) for windows kernel debugging. Since they both
> differ in their multiprocess support, this was confusing EXDI.
> 
> While we are here, fix the same for fork_events in user mode.
> Simplify control flow to always call gdb_handle_query_supported_user.
> 
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
> ---
>  gdbstub/gdbstub.c | 15 +++++++--------
>  gdbstub/user.c    |  4 +---
>  2 files changed, 8 insertions(+), 11 deletions(-)
> 

Ping on this v2, would it make sense to include this fix for 11.2?

Regards,
Pierrick


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

* Re: [PATCH v2] gdbstub: reset supported features on Supported request
  2026-11-05  7:53 [PATCH v2] gdbstub: reset supported features on Supported request Pierrick Bouvier
                   ` (2 preceding siblings ...)
  2026-11-11 18:12 ` Pierrick Bouvier
@ 2026-11-23 16:50 ` Pierrick Bouvier
  2026-11-23 17:39 ` Philippe Mathieu-Daudé
  2026-11-30 13:32 ` Pierrick Bouvier
  5 siblings, 0 replies; 11+ messages in thread
From: Pierrick Bouvier @ 2026-11-23 16:50 UTC (permalink / raw)
  To: qemu-devel
  Cc: Philippe Mathieu-Daudé, marco.liebel, Alex Bennée,
	brian.cain, Justin Sapp

On 11/4/2026 11:53 PM, Pierrick Bouvier wrote:
> From: Justin Sapp <jsapp@qti.qualcomm.com>
> 
> https://sourceware.org/gdb/current/onlinedocs/gdb.html/General-Query-Packets.html#qSupported
> ```
> Whenever the stub receives a ‘qSupported’ request, the supplied set
> of GDB features should override any previous request. This allows GDB to
> put the stub in a known state, even if the stub had previously been
> communicating with a different version of GDB.
> ```
> 
> We exposed this by connecting to gdbstub using a gdb client first, and
> then WinDbg (EXDI) for windows kernel debugging. Since they both
> differ in their multiprocess support, this was confusing EXDI.
> 
> While we are here, fix the same for fork_events in user mode.
> Simplify control flow to always call gdb_handle_query_supported_user.
> 
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
> ---
>  gdbstub/gdbstub.c | 15 +++++++--------
>  gdbstub/user.c    |  4 +---
>  2 files changed, 8 insertions(+), 11 deletions(-)
> 

Ping for queuing this for 11.2.

Regards,
Pierrick


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

* Re: [PATCH v2] gdbstub: reset supported features on Supported request
  2026-11-05  7:53 [PATCH v2] gdbstub: reset supported features on Supported request Pierrick Bouvier
                   ` (3 preceding siblings ...)
  2026-11-23 16:50 ` Pierrick Bouvier
@ 2026-11-23 17:39 ` Philippe Mathieu-Daudé
  2026-11-30 13:32 ` Pierrick Bouvier
  5 siblings, 0 replies; 11+ messages in thread
From: Philippe Mathieu-Daudé @ 2026-11-23 17:39 UTC (permalink / raw)
  To: Pierrick Bouvier, qemu-devel
  Cc: marco.liebel, Alex Bennée, brian.cain, Justin Sapp

On 5/11/26 08:53, Pierrick Bouvier wrote:
> From: Justin Sapp <jsapp@qti.qualcomm.com>
> 
> https://sourceware.org/gdb/current/onlinedocs/gdb.html/General-Query-Packets.html#qSupported
> ```
> Whenever the stub receives a ‘qSupported’ request, the supplied set
> of GDB features should override any previous request. This allows GDB to
> put the stub in a known state, even if the stub had previously been
> communicating with a different version of GDB.
> ```
> 
> We exposed this by connecting to gdbstub using a gdb client first, and
> then WinDbg (EXDI) for windows kernel debugging. Since they both
> differ in their multiprocess support, this was confusing EXDI.
> 
> While we are here, fix the same for fork_events in user mode.
> Simplify control flow to always call gdb_handle_query_supported_user.
> 
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
> ---
>   gdbstub/gdbstub.c | 15 +++++++--------
>   gdbstub/user.c    |  4 +---
>   2 files changed, 8 insertions(+), 11 deletions(-)
> 
> diff --git a/gdbstub/gdbstub.c b/gdbstub/gdbstub.c
> index 0a328b0dd48..38fe56a5d36 100644
> --- a/gdbstub/gdbstub.c
> +++ b/gdbstub/gdbstub.c
> @@ -1679,6 +1679,11 @@ void gdb_extend_qsupported_features(char *qflags)
>   
>   static void handle_query_supported(GArray *params, void *user_ctx)
>   {
> +    const char *gdb_supported = "";
> +    if (params->len) {
> +        gdb_supported = gdb_get_cmd_param(params, 0)->data;
> +    }
> +
>       g_string_printf(gdbserver_state.str_buf, "PacketSize=%x", MAX_PACKET_LENGTH);
>       if (gdb_get_core_xml_file(first_cpu)) {
>           g_string_append(gdbserver_state.str_buf, ";qXfer:features:read+");
> @@ -1701,16 +1706,10 @@ static void handle_query_supported(GArray *params, void *user_ctx)
>       g_string_append(gdbserver_state.str_buf, ";qXfer:exec-file:read+");
>   #endif
>   
> -    if (params->len) {
> -        const char *gdb_supported = gdb_get_cmd_param(params, 0)->data;
> -
> -        if (strstr(gdb_supported, "multiprocess+")) {
> -            gdbserver_state.multiprocess = true;
> -        }


> diff --git a/gdbstub/user.c b/gdbstub/user.c
> index d810f0f38c3..6526200a360 100644
> --- a/gdbstub/user.c
> +++ b/gdbstub/user.c
> @@ -701,9 +701,7 @@ fail:
>   
>   void gdb_handle_query_supported_user(const char *gdb_supported)
>   {
> -    if (strstr(gdb_supported, "fork-events+")) {
> -        gdbserver_user_state.fork_events = true;
> -    }
> +    gdbserver_user_state.fork_events = strstr(gdb_supported, "fork-events+");

Per-existing style, != NULL would be more explicit.

>       g_string_append(gdbserver_state.str_buf, ";fork-events+");
>   }
>   

Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>



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

* Re: [PATCH v2] gdbstub: reset supported features on Supported request
  2026-11-05  7:53 [PATCH v2] gdbstub: reset supported features on Supported request Pierrick Bouvier
                   ` (4 preceding siblings ...)
  2026-11-23 17:39 ` Philippe Mathieu-Daudé
@ 2026-11-30 13:32 ` Pierrick Bouvier
  2026-11-30 17:01   ` Alex Bennée
  5 siblings, 1 reply; 11+ messages in thread
From: Pierrick Bouvier @ 2026-11-30 13:32 UTC (permalink / raw)
  To: qemu-devel
  Cc: Philippe Mathieu-Daudé, marco.liebel, Alex Bennée,
	brian.cain, Justin Sapp

On 11/4/2026 11:53 PM, Pierrick Bouvier wrote:
> From: Justin Sapp <jsapp@qti.qualcomm.com>
> 
> https://sourceware.org/gdb/current/onlinedocs/gdb.html/General-Query-Packets.html#qSupported
> ```
> Whenever the stub receives a ‘qSupported’ request, the supplied set
> of GDB features should override any previous request. This allows GDB to
> put the stub in a known state, even if the stub had previously been
> communicating with a different version of GDB.
> ```
> 
> We exposed this by connecting to gdbstub using a gdb client first, and
> then WinDbg (EXDI) for windows kernel debugging. Since they both
> differ in their multiprocess support, this was confusing EXDI.
> 
> While we are here, fix the same for fork_events in user mode.
> Simplify control flow to always call gdb_handle_query_supported_user.
> 
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
> ---
>  gdbstub/gdbstub.c | 15 +++++++--------
>  gdbstub/user.c    |  4 +---
>  2 files changed, 8 insertions(+), 11 deletions(-)
> 

This was merged into master (9cda597a1a3903d090e8e55e23f5b8a859da88ab).

Regards,
Pierrick


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

* Re: [PATCH v2] gdbstub: reset supported features on Supported request
  2026-11-30 13:32 ` Pierrick Bouvier
@ 2026-11-30 17:01   ` Alex Bennée
  2026-11-30 17:16     ` Pierrick Bouvier
  0 siblings, 1 reply; 11+ messages in thread
From: Alex Bennée @ 2026-11-30 17:01 UTC (permalink / raw)
  To: Pierrick Bouvier
  Cc: qemu-devel, Philippe Mathieu-Daudé, marco.liebel, brian.cain,
	Justin Sapp

Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> writes:

> On 11/4/2026 11:53 PM, Pierrick Bouvier wrote:
>> From: Justin Sapp <jsapp@qti.qualcomm.com>
>> 
>> https://sourceware.org/gdb/current/onlinedocs/gdb.html/General-Query-Packets.html#qSupported
>> ```
>> Whenever the stub receives a ‘qSupported’ request, the supplied set
>> of GDB features should override any previous request. This allows GDB to
>> put the stub in a known state, even if the stub had previously been
>> communicating with a different version of GDB.
>> ```
>> 
>> We exposed this by connecting to gdbstub using a gdb client first, and
>> then WinDbg (EXDI) for windows kernel debugging. Since they both
>> differ in their multiprocess support, this was confusing EXDI.
>> 
>> While we are here, fix the same for fork_events in user mode.
>> Simplify control flow to always call gdb_handle_query_supported_user.
>> 
>> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
>> ---
>>  gdbstub/gdbstub.c | 15 +++++++--------
>>  gdbstub/user.c    |  4 +---
>>  2 files changed, 8 insertions(+), 11 deletions(-)
>> 
>
> This was merged into master
> (9cda597a1a3903d090e8e55e23f5b8a859da88ab).

Given we where in freeze I was waiting for the tree to re-open before
pulling as this is clearly not a bugfix. Please don't go around the
normal maintainer trees next time.

Also check your tooling because it should be using Message-ID: instead
of Link: to reference the pulled thread.

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


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

* Re: [PATCH v2] gdbstub: reset supported features on Supported request
  2026-11-30 17:01   ` Alex Bennée
@ 2026-11-30 17:16     ` Pierrick Bouvier
  2026-11-30 19:16       ` Alex Bennée
  0 siblings, 1 reply; 11+ messages in thread
From: Pierrick Bouvier @ 2026-11-30 17:16 UTC (permalink / raw)
  To: Alex Bennée
  Cc: qemu-devel, Philippe Mathieu-Daudé, marco.liebel, brian.cain,
	Justin Sapp

On 11/30/2026 9:01 AM, Alex Bennée wrote:
> Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> writes:
> 
>> On 11/4/2026 11:53 PM, Pierrick Bouvier wrote:
>>> From: Justin Sapp <jsapp@qti.qualcomm.com>
>>>
>>> https://sourceware.org/gdb/current/onlinedocs/gdb.html/General-Query-Packets.html#qSupported
>>> ```
>>> Whenever the stub receives a ‘qSupported’ request, the supplied set
>>> of GDB features should override any previous request. This allows GDB to
>>> put the stub in a known state, even if the stub had previously been
>>> communicating with a different version of GDB.
>>> ```
>>>
>>> We exposed this by connecting to gdbstub using a gdb client first, and
>>> then WinDbg (EXDI) for windows kernel debugging. Since they both
>>> differ in their multiprocess support, this was confusing EXDI.
>>>
>>> While we are here, fix the same for fork_events in user mode.
>>> Simplify control flow to always call gdb_handle_query_supported_user.
>>>
>>> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
>>> ---
>>>  gdbstub/gdbstub.c | 15 +++++++--------
>>>  gdbstub/user.c    |  4 +---
>>>  2 files changed, 8 insertions(+), 11 deletions(-)
>>>
>>
>> This was merged into master
>> (9cda597a1a3903d090e8e55e23f5b8a859da88ab).
> 
> Given we where in freeze I was waiting for the tree to re-open before
> pulling as this is clearly not a bugfix. Please don't go around the
> normal maintainer trees next time.
>

This is a bug fix. Please check the commit description and link to gdb
doc, any gdbstub implementation has to honor this behavior.

I didn't mean to go around you or anything. I've been cautious and added
a disclaimer in PR saying that I'm not the gdbstub maintainer.
After 23 days of silence despite two pings, I can only do what's the
best for the project at this phase: fixing the bug before the release.
It's not possible to guess if you don't want to pick it, or lost the
email on your side.

Next time, feel free to drop a message "Hey, should we keep that for
12.0? It does not seem like a bug fix to me. Thanks", so we're on the
same page 👍.

> Also check your tooling because it should be using Message-ID: instead
> of Link: to reference the pulled thread.
> 

Interesting, I just use b4 --add-link, is it wrong?
I didn't find any information about what is the expected behavior from
maintainers, did I miss it in our documentation?

Seems like some people do one, so people do the other. Personally I like
the convenience of a direct link, which convinced me to do it this way.

Regards,
Pierrick


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

* Re: [PATCH v2] gdbstub: reset supported features on Supported request
  2026-11-30 17:16     ` Pierrick Bouvier
@ 2026-11-30 19:16       ` Alex Bennée
  2026-11-30 19:44         ` Pierrick Bouvier
  0 siblings, 1 reply; 11+ messages in thread
From: Alex Bennée @ 2026-11-30 19:16 UTC (permalink / raw)
  To: Pierrick Bouvier
  Cc: qemu-devel, Philippe Mathieu-Daudé, marco.liebel, brian.cain,
	Justin Sapp

Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> writes:

> On 11/30/2026 9:01 AM, Alex Bennée wrote:
>> Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> writes:
>> 
>>> On 11/4/2026 11:53 PM, Pierrick Bouvier wrote:
>>>> From: Justin Sapp <jsapp@qti.qualcomm.com>
>>>>
>>>> https://sourceware.org/gdb/current/onlinedocs/gdb.html/General-Query-Packets.html#qSupported
>>>> ```
>>>> Whenever the stub receives a ‘qSupported’ request, the supplied set
>>>> of GDB features should override any previous request. This allows GDB to
>>>> put the stub in a known state, even if the stub had previously been
>>>> communicating with a different version of GDB.
>>>> ```
>>>>
>>>> We exposed this by connecting to gdbstub using a gdb client first, and
>>>> then WinDbg (EXDI) for windows kernel debugging. Since they both
>>>> differ in their multiprocess support, this was confusing EXDI.
>>>>
>>>> While we are here, fix the same for fork_events in user mode.
>>>> Simplify control flow to always call gdb_handle_query_supported_user.
>>>>
>>>> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
>>>> ---
>>>>  gdbstub/gdbstub.c | 15 +++++++--------
>>>>  gdbstub/user.c    |  4 +---
>>>>  2 files changed, 8 insertions(+), 11 deletions(-)
>>>>
>>>
>>> This was merged into master
>>> (9cda597a1a3903d090e8e55e23f5b8a859da88ab).
>> 
>> Given we where in freeze I was waiting for the tree to re-open before
>> pulling as this is clearly not a bugfix. Please don't go around the
>> normal maintainer trees next time.
>>
>
> This is a bug fix. Please check the commit description and link to gdb
> doc, any gdbstub implementation has to honor this behavior.
>
> I didn't mean to go around you or anything. I've been cautious and added
> a disclaimer in PR saying that I'm not the gdbstub maintainer.
> After 23 days of silence despite two pings, I can only do what's the
> best for the project at this phase: fixing the bug before the release.
> It's not possible to guess if you don't want to pick it, or lost the
> email on your side.

Apologies - I had seen it but had been so busy on the run up to KVM
forum it seemed like a edge case for windows. I see now it is a bug fix.

>
> Next time, feel free to drop a message "Hey, should we keep that for
> 12.0? It does not seem like a bug fix to me. Thanks", so we're on the
> same page 👍.
>
>> Also check your tooling because it should be using Message-ID: instead
>> of Link: to reference the pulled thread.
>> 
>
> Interesting, I just use b4 --add-link, is it wrong?
> I didn't find any information about what is the expected behavior from
> maintainers, did I miss it in our documentation?

We obliquely mention Message-Id twice on submitting-a-patch.rst along
with the Resolves: and Buglink: instructions. We don't explicitly
mention Link: at all although it might make sense for pointing at other
places that are not the mailing list or our bug tracker.

> Seems like some people do one, so people do the other. Personally I like
> the convenience of a direct link, which convinced me to do it this
> way.

We should aim for consistency because when doing analysis its a pain to
special case everything. We could certainly be clearer in the docs
though.

>
> Regards,
> Pierrick

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


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

* Re: [PATCH v2] gdbstub: reset supported features on Supported request
  2026-11-30 19:16       ` Alex Bennée
@ 2026-11-30 19:44         ` Pierrick Bouvier
  0 siblings, 0 replies; 11+ messages in thread
From: Pierrick Bouvier @ 2026-11-30 19:44 UTC (permalink / raw)
  To: Alex Bennée
  Cc: qemu-devel, Philippe Mathieu-Daudé, marco.liebel, brian.cain,
	Justin Sapp

On 11/30/2026 11:16 AM, Alex Bennée wrote:
> Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> writes:
> 
>> On 11/30/2026 9:01 AM, Alex Bennée wrote:
>>> Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> writes:
>>>
>>>> On 11/4/2026 11:53 PM, Pierrick Bouvier wrote:
>>>>> From: Justin Sapp <jsapp@qti.qualcomm.com>
>>>>>
>>>>> https://sourceware.org/gdb/current/onlinedocs/gdb.html/General-Query-Packets.html#qSupported
>>>>> ```
>>>>> Whenever the stub receives a ‘qSupported’ request, the supplied set
>>>>> of GDB features should override any previous request. This allows GDB to
>>>>> put the stub in a known state, even if the stub had previously been
>>>>> communicating with a different version of GDB.
>>>>> ```
>>>>>
>>>>> We exposed this by connecting to gdbstub using a gdb client first, and
>>>>> then WinDbg (EXDI) for windows kernel debugging. Since they both
>>>>> differ in their multiprocess support, this was confusing EXDI.
>>>>>
>>>>> While we are here, fix the same for fork_events in user mode.
>>>>> Simplify control flow to always call gdb_handle_query_supported_user.
>>>>>
>>>>> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
>>>>> ---
>>>>>  gdbstub/gdbstub.c | 15 +++++++--------
>>>>>  gdbstub/user.c    |  4 +---
>>>>>  2 files changed, 8 insertions(+), 11 deletions(-)
>>>>>
>>>>
>>>> This was merged into master
>>>> (9cda597a1a3903d090e8e55e23f5b8a859da88ab).
>>>
>>> Given we where in freeze I was waiting for the tree to re-open before
>>> pulling as this is clearly not a bugfix. Please don't go around the
>>> normal maintainer trees next time.
>>>
>>
>> This is a bug fix. Please check the commit description and link to gdb
>> doc, any gdbstub implementation has to honor this behavior.
>>
>> I didn't mean to go around you or anything. I've been cautious and added
>> a disclaimer in PR saying that I'm not the gdbstub maintainer.
>> After 23 days of silence despite two pings, I can only do what's the
>> best for the project at this phase: fixing the bug before the release.
>> It's not possible to guess if you don't want to pick it, or lost the
>> email on your side.
> 
> Apologies - I had seen it but had been so busy on the run up to KVM
> forum it seemed like a edge case for windows. I see now it is a bug fix.
> 
>>
>> Next time, feel free to drop a message "Hey, should we keep that for
>> 12.0? It does not seem like a bug fix to me. Thanks", so we're on the
>> same page 👍.
>>
>>> Also check your tooling because it should be using Message-ID: instead
>>> of Link: to reference the pulled thread.
>>>
>>
>> Interesting, I just use b4 --add-link, is it wrong?
>> I didn't find any information about what is the expected behavior from
>> maintainers, did I miss it in our documentation?
> 
> We obliquely mention Message-Id twice on submitting-a-patch.rst along
> with the Resolves: and Buglink: instructions. We don't explicitly
> mention Link: at all although it might make sense for pointing at other
> places that are not the mailing list or our bug tracker.
>
>> Seems like some people do one, so people do the other. Personally I like
>> the convenience of a direct link, which convinced me to do it this
>> way.
> 
> We should aim for consistency because when doing analysis its a pain to
> special case everything. We could certainly be clearer in the docs
> though.
>

CI seems like the best place if we want to enforce anything. We could
make sure PR have specific format there. I'll let you take a look at it.

>>
>> Regards,
>> Pierrick
> 



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

end of thread, other threads:[~2026-11-30 19:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-05  7:53 [PATCH v2] gdbstub: reset supported features on Supported request Pierrick Bouvier
2026-11-05  7:56 ` Pierrick Bouvier
2026-11-06 15:35 ` Marco Liebel
2026-11-11 18:12 ` Pierrick Bouvier
2026-11-23 16:50 ` Pierrick Bouvier
2026-11-23 17:39 ` Philippe Mathieu-Daudé
2026-11-30 13:32 ` Pierrick Bouvier
2026-11-30 17:01   ` Alex Bennée
2026-11-30 17:16     ` Pierrick Bouvier
2026-11-30 19:16       ` Alex Bennée
2026-11-30 19:44         ` Pierrick Bouvier

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.