]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: move debug output inside block in dwarf_record_line_1
authorAndrew Burgess <aburgess@redhat.com>
Sat, 25 Jan 2025 13:05:46 +0000 (13:05 +0000)
committerAndrew Burgess <aburgess@redhat.com>
Wed, 29 Jan 2025 09:21:42 +0000 (09:21 +0000)
commite5e7d55dcb225be1a488e01d43cbce5fdec83a0f
tree31f76c484597a43945da8422785dedbf60727443
parentd1b55b91df48f26a8541646bb88231ad5b9a0832
gdb: move debug output inside block in dwarf_record_line_1

The debug output that says a line has been recorded is currently
outside the `if` block which decides if the line should be recorded or
not.  This means the debug output will claim the line was recorded,
when actually it wasn't!

Fixed by moving the debug output inside the `if` block.

Should be no user visible changes after this commit (except if debug
output is turned on).

Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/read.c