public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug symtab/13511] New: 'info variable' and 'info functions' very slow and memory cosuming
@ 2011-12-16 17:11 andre.poenitz at nokia dot com
  2012-01-11 20:26 ` [Bug symtab/13511] " dje at google dot com
  2023-03-06 23:50 ` tromey at sourceware dot org
  0 siblings, 2 replies; 3+ messages in thread
From: andre.poenitz at nokia dot com @ 2011-12-16 17:11 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13511

             Bug #: 13511
           Summary: 'info variable' and 'info functions' very slow and
                    memory cosuming
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: symtab
        AssignedTo: unassigned@sourceware.org
        ReportedBy: andre.poenitz@nokia.com
    Classification: Unclassified


When starting a "system" libreoffice from ubuntu 11.04, and attaching gdb,
'info variables' takes more then a minute to start producing output. 

When doing the same with a debug build of the a Qt based application (I am use
Qt Creator itself as test case), gdb starts eating all available memory at a
rate of several gigabytes per minute.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug symtab/13511] 'info variable' and 'info functions' very slow and memory cosuming
  2011-12-16 17:11 [Bug symtab/13511] New: 'info variable' and 'info functions' very slow and memory cosuming andre.poenitz at nokia dot com
@ 2012-01-11 20:26 ` dje at google dot com
  2023-03-06 23:50 ` tromey at sourceware dot org
  1 sibling, 0 replies; 3+ messages in thread
From: dje at google dot com @ 2012-01-11 20:26 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13511

dje at google dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ccoutant at google dot com,
                   |                            |dje at google dot com

--- Comment #1 from dje at google dot com 2012-01-11 20:25:51 UTC ---
gdb does full symtab expansion here which will use a lot of debug info.

One thought is to have enough information to be able to avoid that.
E.g., could .gdb_index include enough info to avoid having to do full symtab
expansion? [that also has problems, but "info var|fun|type" is common enough
that triggering an explosion of debug info reading is annoying and worth
avoiding]
[and similarly for psymtabs, as well as maybe enhancing pubnames/pubtypes]

Another thought is to be more selective with debug info reading.
Is it possible to read only the parts of the CU (dwarf-speak) that we need?

Another thought is to throw out the info as we're finished using it, perhaps
guided by various parameters.
[we'll have to read it again, but that's preferable to bringing a machine to a
crawl]

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug symtab/13511] 'info variable' and 'info functions' very slow and memory cosuming
  2011-12-16 17:11 [Bug symtab/13511] New: 'info variable' and 'info functions' very slow and memory cosuming andre.poenitz at nokia dot com
  2012-01-11 20:26 ` [Bug symtab/13511] " dje at google dot com
@ 2023-03-06 23:50 ` tromey at sourceware dot org
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2023-03-06 23:50 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
Maybe this would be more bearable with lazy expansion, see bug #29398

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-06 23:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-16 17:11 [Bug symtab/13511] New: 'info variable' and 'info functions' very slow and memory cosuming andre.poenitz at nokia dot com
2012-01-11 20:26 ` [Bug symtab/13511] " dje at google dot com
2023-03-06 23:50 ` tromey at sourceware dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).