Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] gdb, inferior: replace NULL by nullptr
@ 2026-08-04 10:59 Stephan Rohr
  2026-08-04 12:29 ` Tom de Vries
  0 siblings, 1 reply; 2+ messages in thread
From: Stephan Rohr @ 2026-08-04 10:59 UTC (permalink / raw)
  To: gdb-patches

From: Nils-Christian Kempke <nils-christian.kempke@intel.com>

---
 gdb/inferior.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/inferior.c b/gdb/inferior.c
index 1481f46cdd1..65da52b9ccb 100644
--- a/gdb/inferior.c
+++ b/gdb/inferior.c
@@ -588,7 +588,7 @@ print_inferior (struct ui_out *uiout, const char *requested_inferiors)
       if (!number_is_in_list (requested_inferiors, inf->num))
 	continue;
 
-      ui_out_emit_tuple tuple_emitter (uiout, NULL);
+      ui_out_emit_tuple tuple_emitter (uiout, nullptr);
 
       if (inf == current_inf)
 	uiout->field_string ("current", "*");
-- 
2.43.0

________________________________________
Intel Deutschland GmbH 

Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany 

Tel: +49 (89) 99143-0 

www.intel.de 

Managing Directors: Candice Moore, Jeffrey Schneiderman, Ramachandran Sitaraman

Chairperson of the Supervisory Board: Sonja Pierer

Registered Seat: Munich Commercial Register B: Amtsgericht Munich HRB 186928

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


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

* Re: [PATCH] gdb, inferior: replace NULL by nullptr
  2026-08-04 10:59 [PATCH] gdb, inferior: replace NULL by nullptr Stephan Rohr
@ 2026-08-04 12:29 ` Tom de Vries
  0 siblings, 0 replies; 2+ messages in thread
From: Tom de Vries @ 2026-08-04 12:29 UTC (permalink / raw)
  To: Stephan Rohr, gdb-patches

On 8/4/26 12:59 PM, Stephan Rohr wrote:
> From: Nils-Christian Kempke <nils-christian.kempke@intel.com>
> 

Hi,

we could also make nullptr the default argument.

Thanks,
- Tom

> ---
>   gdb/inferior.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/gdb/inferior.c b/gdb/inferior.c
> index 1481f46cdd1..65da52b9ccb 100644
> --- a/gdb/inferior.c
> +++ b/gdb/inferior.c
> @@ -588,7 +588,7 @@ print_inferior (struct ui_out *uiout, const char *requested_inferiors)
>         if (!number_is_in_list (requested_inferiors, inf->num))
>   	continue;
>   
> -      ui_out_emit_tuple tuple_emitter (uiout, NULL);
> +      ui_out_emit_tuple tuple_emitter (uiout, nullptr);
>   
>         if (inf == current_inf)
>   	uiout->field_string ("current", "*");


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

end of thread, other threads:[~2026-08-04 12:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-04 10:59 [PATCH] gdb, inferior: replace NULL by nullptr Stephan Rohr
2026-08-04 12:29 ` Tom de Vries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox