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
From: Nils-Christian Kempke <nils-christian.kempke@intel.com>
---
gdb/inferior.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
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", "*");
@@ -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", "*");