gdb, inferior: replace NULL by nullptr

Message ID 20260804105909.177543-1-stephan.rohr@intel.com
State New
Headers
Series gdb, inferior: replace NULL by nullptr |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 success Build passed
linaro-tcwg-bot/tcwg_gdb_build--master-arm success Build passed
linaro-tcwg-bot/tcwg_gdb_check--master-aarch64 success Test passed
linaro-tcwg-bot/tcwg_gdb_check--master-arm success Test passed

Commit Message

Stephan Rohr Aug. 4, 2026, 10:59 a.m. UTC
  From: Nils-Christian Kempke <nils-christian.kempke@intel.com>

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

Comments

Tom de Vries Aug. 4, 2026, 12:29 p.m. UTC | #1
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", "*");
  

Patch

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