Discussion:
[Bug gdb/23710] New: gdb is slow and memory hungry consuming debug generated with LTO by GCC
rguenth at gcc dot gnu.org
2018-09-25 13:11:35 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23710

Bug ID: 23710
Summary: gdb is slow and memory hungry consuming debug
generated with LTO by GCC
Product: gdb
Version: 8.2.1
Status: NEW
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: rguenth at gcc dot gnu.org
Target Milestone: ---

"Mirror" of https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87432 where we try to
improve the GCC side. Input from gdb folks is needed here.

gdb takes ~10s to process a LTO bootstrapped cc1 binary and another two seconds
when setting the first breakpoint. It also has allocated 1.6GB memory at
that point (compared to ~200MB for a non-LTO binary).
--
You are receiving this mail because:
You are on the CC list for the bug.
rguenth at gcc dot gnu.org
2018-09-25 13:11:48 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23710

Richard Biener <rguenth at gcc dot gnu.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=87432
--
You are receiving this mail because:
You are on the CC list for the bug.
rguenth at gcc dot gnu.org
2018-09-25 13:57:04 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23710

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
There's http://www.suse.de/~rguenther/cc1.xz you can look at. It will
eventually run into PR23712 if you poke enough but it survives plain gdb
startup and 'start' for me.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...