[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/28149] debug info with wrong file association
From: |
cvs-commit at gcc dot gnu.org |
Subject: |
[Bug gas/28149] debug info with wrong file association |
Date: |
Fri, 17 Sep 2021 22:58:42 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28149
--- Comment #8 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot
gnu.org> ---
The master branch has been updated by Alan Modra <amodra@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=ef9768e37e34bec50aa8cbb0ce25708b06f09255
commit ef9768e37e34bec50aa8cbb0ce25708b06f09255
Author: Alan Modra <amodra@gmail.com>
Date: Fri Sep 17 09:21:21 2021 +0930
PR28149 part 2, purge generated line info
Mixing compiler generated line info with gas generated line info is
generally just confusing. Also .loc directives with non-zero view
fields might reference a previous .loc. It becomes a little more
tricky to locate that previous .loc if there might be gas generated
line info present too. Mind you, we turn off gas generation of line
info on seeing compiler generated line info, so any reference back
won't hit gas generated line info. At least, if the view info is
sane. Unfortunately, gas needs to handle mangled source.
PR 28149
* dwarf2dbg.c (purge_generated_debug): New function.
(dwarf2_directive_filename): Call the above.
(out_debug_line): Don't segfault after purging.
* testsuite/gas/i386/dwarf2-line-4.d: Update expected output.
* testsuite/gas/i386/dwarf4-line-1.d: Likewise.
* testsuite/gas/i386/dwarf5-line-1.d: Likewise.
* testsuite/gas/i386/dwarf5-line-2.d: Likewise.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug gas/28149] debug info with wrong file association, amodra at gmail dot com, 2021/09/16
- [Bug gas/28149] debug info with wrong file association, i at maskray dot me, 2021/09/17
- [Bug gas/28149] debug info with wrong file association, bernd.edlinger at hotmail dot de, 2021/09/17
- [Bug gas/28149] debug info with wrong file association, cvs-commit at gcc dot gnu.org, 2021/09/17
- [Bug gas/28149] debug info with wrong file association,
cvs-commit at gcc dot gnu.org <=
- [Bug gas/28149] debug info with wrong file association, amodra at gmail dot com, 2021/09/17
- [Bug gas/28149] debug info with wrong file association, amodra at gmail dot com, 2021/09/17
- [Bug gas/28149] debug info with wrong file association, cvs-commit at gcc dot gnu.org, 2021/09/19