]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/dwarf: add doc for cutu_reader::is_dummy
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 8 Mar 2025 03:02:40 +0000 (22:02 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 10 Mar 2025 15:28:10 +0000 (11:28 -0400)
Change-Id: Ifb80557187c12822bdea7ad400c32c3dce968a7f
Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/read.h

index b6ff433978c3bd18a23e94152ad77b6a8cfcf9a8..d6d119e038dc2532c43d9ff0cd0a306943e202af 100644 (file)
@@ -945,6 +945,11 @@ public:
 
   cutu_reader (cutu_reader &&) = default;
 
+  /* Return true if either:
+
+      - the unit is empty (just a header without any DIE)
+      - the unit is a partial unit and this cutu_reader was built with SKIP
+       PARTIAL true.  */
   bool is_dummy () const { return m_dummy_p; }
 
   dwarf2_cu *cu () const { return m_cu; }