Re: [PATCH] gdb, inferior: replace NULL by nullptr

Tom de Vries <[email protected]> Tue, 4 Aug 2026 14:29:05 +0200
Newsgroups gmane.comp.gdb.patches
Message-ID <[email protected]>
On 8/4/26 12:59 PM, Stephan Rohr wrote:
> From: Nils-Christian Kempke <[email protected]>
> 

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", "*");