[binutils-gdb] gdb/dwarf: change unavailable_retaddr and undefined_retaddr to bool
Simon Marchi via Gdb-cvs <[email protected]>
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6bba52c83bf6d65e77ce91f09d9dbe11f5ea05f5 commit 6bba52c83bf6d65e77ce91f09d9dbe11f5ea05f5 Author: Simon Marchi <[email protected]> Date: Wed Mar 11 14:05:36 2026 -0400 gdb/dwarf: change unavailable_retaddr and undefined_retaddr to bool Change-Id: I928e9244aee156501e0c2318f2a58b26ed00add7 Approved-By: Tom Tromey <[email protected]> Diff: --- gdb/dwarf2/frame.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdb/dwarf2/frame.c b/gdb/dwarf2/frame.c index 8c8e1040237..c8db0c3b19a 100644 --- a/gdb/dwarf2/frame.c +++ b/gdb/dwarf2/frame.c @@ -853,10 +853,10 @@ struct dwarf2_frame_cache /* Set if the return address column was marked as unavailable (required non-collected memory or registers to compute). */ - int unavailable_retaddr; + bool unavailable_retaddr; /* Set if the return address column was marked as undefined. */ - int undefined_retaddr; + bool undefined_retaddr; /* Saved registers, indexed by GDB register number, not by DWARF register number. */ @@ -997,7 +997,7 @@ dwarf2_frame_cache (const frame_info_ptr &this_frame, void **this_cache) { if (ex.error == NOT_AVAILABLE_ERROR) { - cache->unavailable_retaddr = 1; + cache->unavailable_retaddr = true; return cache; } @@ -1088,7 +1088,7 @@ incomplete CFI data; unspecified registers (e.g., %s) at %s"), if (fs.retaddr_column < fs.regs.reg.size () && fs.regs.reg[fs.retaddr_column].how == DWARF2_FRAME_REG_UNDEFINED) - cache->undefined_retaddr = 1; + cache->undefined_retaddr = true; dwarf2_tailcall_sniffer_first (this_frame, &cache->tailcall_cache, (entry_cfa_sp_offset_p