Re: [PATCH 2/6] gdb/testsuite/dwarf: convert _section proc to use parse_options

Tom Tromey
2025-11-19T21:04:43Z

>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:

Simon> It's true that if one was to call the proc with $name == ".debug_str"
Simon> and some flags, the resulting assembler directive would be malformed. I
Simon> can change it to

Simon> if { $name == ".debug_str" } {
Simon> # Hard-code this because it's always desirable.
Simon> _emit " .section .debug_str, \"MS\", %progbits, 1"
Simon> return
Simon> }

Simon> I think that would make it clear again that this is a special case,
Simon> disconnected from the rest.

Seems fine to me. Thanks.

Tom