[pushed] Pass 'true' to set_is_argument

Message ID 20260402174430.3425584-1-tromey@adacore.com
State New
Headers
Series [pushed] Pass 'true' to set_is_argument |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gdb_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_gdb_build--master-aarch64 fail Patch failed to apply

Commit Message

Tom Tromey April 2, 2026, 5:44 p.m. UTC
  I noticed that set_is_argument accepts a bool but the one caller of it
passes the constant '1'.  This patch changes it to use 'true' instead.
---
 gdb/dwarf2/read.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: 774c54454b1f7bf0bf2303bcb1370e4333300424
  

Patch

diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 8b87d58dd9c..4d2f052debf 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -15762,7 +15762,7 @@  new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu,
 	    struct context_stack *curr
 	      = cu->get_builder ()->get_current_context_stack ();
 	    if (curr != nullptr && curr->name != nullptr)
-	      sym->set_is_argument (1);
+	      sym->set_is_argument (true);
 	    attr = dwarf2_attr (die, DW_AT_location, cu);
 	    if (attr != nullptr)
 	      {