[Bug gdb/24032] GDB prints wrong value at -O1

aoliva at redhat dot com sourceware-bugzilla@sourceware.org
Wed Jan 16 06:40:00 GMT 2019


https://sourceware.org/bugzilla/show_bug.cgi?id=24032

--- Comment #4 from Alex Oliva <aoliva at redhat dot com> ---
> It incorrectly prints "l = 0" at -O1.

Thanks for the report.  The ccp1 pass is removing the dead assignment to
l, and then removing the empty (save for debug stmts) basic block that
held the debug bind.  This is a problem in GCC, not in GDB, so would you
please file a bug report at gcc.gnu.org, and copy me
(aoliva@gcc.gnu.org) in it?

This GDB bug may then be retained, cross-linked to the GCC bug or not,
to elicit investigation of the breakpoint issue you brought up.  AFAICT
current line number tables should allow GDB to set up breakpoints at
both locations you indicate.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Gdb-prs mailing list