public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] gdb/make-target-delegates.py: don't handle "void" in parse_argtypes
@ 2024-04-16 15:52 Simon Marchi
  2024-04-16 16:06 ` John Baldwin
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Marchi @ 2024-04-16 15:52 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

From: Simon Marchi <simon.marchi@efficios.com>

I suppose this was needed when we had `void` in declarations of methods
with no parameters.  If so, we no longer need it.

Change-Id: I0a2b398408aa129634e2d73097a038f7f80db4b4
---
 gdb/make-target-delegates.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gdb/make-target-delegates.py b/gdb/make-target-delegates.py
index 4d18d2802ced..1893fc63ca84 100755
--- a/gdb/make-target-delegates.py
+++ b/gdb/make-target-delegates.py
@@ -149,8 +149,9 @@ def parse_argtypes(typestr: str):
     typestr = re.sub(r"^\((.*)\)$", r"\1", typestr)
     result: list[str] = []
     for item in re.split(r",\s*", typestr):
-        if item == "void" or item == "":
+        if item == "":
             continue
+
         m = ARGTYPES.match(item)
         if m:
             if m.group("E"):

base-commit: 3f6a060c7543332d0cb4377fc318e2db01ea1d3c
-- 
2.44.0


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

* Re: [PATCH] gdb/make-target-delegates.py: don't handle "void" in parse_argtypes
  2024-04-16 15:52 [PATCH] gdb/make-target-delegates.py: don't handle "void" in parse_argtypes Simon Marchi
@ 2024-04-16 16:06 ` John Baldwin
  2024-04-16 16:14   ` Simon Marchi
  0 siblings, 1 reply; 3+ messages in thread
From: John Baldwin @ 2024-04-16 16:06 UTC (permalink / raw)
  To: Simon Marchi, gdb-patches; +Cc: Simon Marchi

On 4/16/24 8:52 AM, Simon Marchi wrote:
> From: Simon Marchi <simon.marchi@efficios.com>
> 
> I suppose this was needed when we had `void` in declarations of methods
> with no parameters.  If so, we no longer need it.
> 
> Change-Id: I0a2b398408aa129634e2d73097a038f7f80db4b4
> ---
>   gdb/make-target-delegates.py | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/gdb/make-target-delegates.py b/gdb/make-target-delegates.py
> index 4d18d2802ced..1893fc63ca84 100755
> --- a/gdb/make-target-delegates.py
> +++ b/gdb/make-target-delegates.py
> @@ -149,8 +149,9 @@ def parse_argtypes(typestr: str):
>       typestr = re.sub(r"^\((.*)\)$", r"\1", typestr)
>       result: list[str] = []
>       for item in re.split(r",\s*", typestr):
> -        if item == "void" or item == "":
> +        if item == "":
>               continue
> +
>           m = ARGTYPES.match(item)
>           if m:
>               if m.group("E"):
> 
> base-commit: 3f6a060c7543332d0cb4377fc318e2db01ea1d3c

Seems ok to me.  I assume it doesn't result in any differences in the generated
code today?

Approved-By: John Baldwin <jhb@FreeBSD.org>

-- 
John Baldwin


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

* Re: [PATCH] gdb/make-target-delegates.py: don't handle "void" in parse_argtypes
  2024-04-16 16:06 ` John Baldwin
@ 2024-04-16 16:14   ` Simon Marchi
  0 siblings, 0 replies; 3+ messages in thread
From: Simon Marchi @ 2024-04-16 16:14 UTC (permalink / raw)
  To: John Baldwin, Simon Marchi, gdb-patches

On 4/16/24 12:06 PM, John Baldwin wrote:
> On 4/16/24 8:52 AM, Simon Marchi wrote:
>> From: Simon Marchi <simon.marchi@efficios.com>
>>
>> I suppose this was needed when we had `void` in declarations of methods
>> with no parameters.  If so, we no longer need it.
>>
>> Change-Id: I0a2b398408aa129634e2d73097a038f7f80db4b4
>> ---
>>   gdb/make-target-delegates.py | 3 ++-
>>   1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/gdb/make-target-delegates.py b/gdb/make-target-delegates.py
>> index 4d18d2802ced..1893fc63ca84 100755
>> --- a/gdb/make-target-delegates.py
>> +++ b/gdb/make-target-delegates.py
>> @@ -149,8 +149,9 @@ def parse_argtypes(typestr: str):
>>       typestr = re.sub(r"^\((.*)\)$", r"\1", typestr)
>>       result: list[str] = []
>>       for item in re.split(r",\s*", typestr):
>> -        if item == "void" or item == "":
>> +        if item == "":
>>               continue
>> +
>>           m = ARGTYPES.match(item)
>>           if m:
>>               if m.group("E"):
>>
>> base-commit: 3f6a060c7543332d0cb4377fc318e2db01ea1d3c
> 
> Seems ok to me.  I assume it doesn't result in any differences in the generated
> code today?

Exactly.  I'll add a mention in the commit message.

> Approved-By: John Baldwin <jhb@FreeBSD.org>

Thanks, will push.

Simon

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

end of thread, other threads:[~2024-04-16 16:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-16 15:52 [PATCH] gdb/make-target-delegates.py: don't handle "void" in parse_argtypes Simon Marchi
2024-04-16 16:06 ` John Baldwin
2024-04-16 16:14   ` Simon Marchi

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