diff --git a/gdb/testsuite/lib/dwarf.exp b/gdb/testsuite/lib/dwarf.exp index c694375b534..1a97f83f8e6 100644 --- a/gdb/testsuite/lib/dwarf.exp +++ b/gdb/testsuite/lib/dwarf.exp @@ -2999,6 +2999,7 @@ namespace eval Dwarf { proc dummy_cu {} { # Generate a CU with default options and empty body. cu {label dummy_cu} { + compile_unit {} } # Generate an .debug_aranges entry for the dummy CU.