[gdb/testsuite] Factor out _line_finalize_header
authorTom de Vries <tdevries@suse.de>
Mon, 22 Nov 2021 08:14:15 +0000 (09:14 +0100)
committerTom de Vries <tdevries@suse.de>
Mon, 22 Nov 2021 08:14:15 +0000 (09:14 +0100)
commit8d52378514e293504f385ae536ef7dcd4c3088d7
treecf2ab084a5a9b3897db1b24b67253db7499e7898
parent6cb22d4a8e8f7852bc2202543a573ca8d011c421
[gdb/testsuite] Factor out _line_finalize_header

Rather than generate dwarf immediately in procs include_dir and file_name,
postpone generation and store the data in variables.  Then handle the
generation in a new proc _line_finalize_header.

Tested on x86-64-linux.
gdb/testsuite/lib/dwarf.exp