Article View: gnu.gdb.bug
Article #9985Performance Problems
From: Steve Madere
Date: Mon, 17 Sep 1990 19:11
Date: Mon, 17 Sep 1990 19:11
38 lines
1961 bytes
1961 bytes
gdb seems to be taking an inordinate amount of time to load symbols for c++ programs. I am debugging an InterViews program with executable code size of 3244205 bytes. I start gdb and type: list View::HandleIO. view.cc contains the source code for HandleIO and its size is 2329 bytes. After I type the list command, gdb responds with: Reading in symbols for limsgs.cc...done. Reading in symbols for view.cc...done. (size of limsgs.cc is 3312 bytes) While these messages are being displayed, the machine scrubs the disk furiously. I am assuming that some of that is swapping as I only have 8Megs of RAM. Anyway, it sounds as if I have run a "du /" or "find / -print". It seems to be a HUGE amount of I/O to load the symbols for two files whose combined source is less than 10K. During this time my machine is fully occupied with loading those symbols (my X windows won't even update as I move the mouse from one to the other) and it takes it about a minute. This is a freaking sparcstation! What am I doing wrong? Did I not tell gdb enough about where to find the source files? Is it searching my entire directory structure to find them? My .gdbinit contains the following: directory ~/src/iv/SUN4 directory ~/src/lg/SUN4 directory /net/gnu/libg++/src directory /net/gnu/libg++/g++-include Any ideas? Steve Madere
Technical Details
Message-ID:
<1990Sep17.141135@Pkg.Mcc.COM>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!uupsi!rpi!zaphod.mps.ohio-state.edu!samsung!cs.utexas.edu!milano!cadillac!Pkg.Mcc.COM!steveShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,1434ad16746f222,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 1990-09-17 12:11:35 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!sunic!uupsi!rpi!zaphod.mps.ohio-state.edu!samsung!cs.utexas.edu!milano!cadillac!Pkg.Mcc.COM!steve From: steve@Pkg.Mcc.COM (Steve Madere) Newsgroups: gnu.gdb.bug Subject: Performance Problems Message-ID: <1990Sep17.141135@Pkg.Mcc.COM> Date: 17 Sep 90 19:11:35 GMT Sender: news@cadillac.CAD.MCC.COM Reply-To: steve@Pkg.Mcc.COM (Steve Madere) Lines: 38 Posted: Mon Sep 17 20:11:35 1990