]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
DWARF-5: Ignore empty range in DWARF-5 line number tables
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 24 Jan 2021 15:00:34 +0000 (07:00 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 24 Jan 2021 15:07:26 +0000 (07:07 -0800)
commit1ae65e19b214068e0fd3389f755d5a4ffffaca83
tree018acb0cc6d2f9d284b5ca281da2e8d97add93b8
parent0da7136ac1a83080996247551286019066fbd0e3
DWARF-5: Ignore empty range in DWARF-5 line number tables

The DWARF5 spec does indeed explicitly say: "A bounded range entry whose
beginning and ending address offsets are equal (including zero) indicates
an empty range and may be ignored."

Since arange_add already ignores empty ranges, remove the whole check
which is equivalent to the check plus explicit continue.

PR binutils/27231
* dwarf2.c (read_rnglists): Ignore empty range when parsing line
number tables.

(cherry picked from commit 940d0202fd472b09d370fb483bf5a8ae99c9c830)
bfd/ChangeLog
bfd/dwarf2.c