I came across .debug_aranges sections in .dwz files. Fix this by skipping
dummy CU generation in .dwz files.
Approved-By: Tom Tromey <tom@tromey.com>
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=34157
proc write_dwarf_file {filename buildid {value 99}} {
set asm_file [standard_output_file $filename]
- Dwarf::assemble $asm_file {
+ Dwarf::assemble [list filename $asm_file add_dummy_cus 0] {
declare_labels int_label int_label2
upvar buildid buildid
# Make some DWARF for the dwz file.
set asm_file [standard_output_file $srcfile2]
-Dwarf::assemble $asm_file {
+Dwarf::assemble [list filename $asm_file add_dummy_cus 0] {
build_id $::build_id
tu {} 0x0000000000000001 the_type_i {