]> git.ipfire.org Git - thirdparty/gcc.git/commit
libbacktrace: use correct directory/filename for DWARF 5
authorIan Lance Taylor <iant@golang.org>
Mon, 18 Jan 2021 22:38:10 +0000 (14:38 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 18 Jan 2021 22:43:00 +0000 (14:43 -0800)
commit325e70b47c6c321710c7b9c792b8fbee95cecd63
tree93309e8e5ab73fd95e1b959e38b6c245d8c662b4
parenta89c5d3539c36f160ca5b997324ebcd3d601d56e
libbacktrace: use correct directory/filename for DWARF 5

PR debug/98716
* dwarf.c (read_v2_paths): Allocate zero entry for dirs and
filenames.
(read_line_program): Remove parameter u, change caller.  Don't
subtract one from dirs and filenames index.
(read_function_entry): Don't subtract one from filenames index.
libbacktrace/dwarf.c