public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* gdb (CVS) plus breakpoint at main oddity
@ 2003-02-21 16:54 Jeroen Ruigrok/asmodai
  0 siblings, 0 replies; only message in thread
From: Jeroen Ruigrok/asmodai @ 2003-02-21 16:54 UTC (permalink / raw)
  To: gdb

I got the gdb binary compiled (finally) and am now trying to debug some
stuff, but I find something odd:

$ gdb bin/bmake
GNU gdb 2003-02-21-cvs
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "alphaev68-dec-osf5.1"...
(gdb) break getopt
Breakpoint 1 at 0x3ff800e9c50

Works like a charm.

Now this:

(gdb) break main
Terminated

The terminated is from my kill on another session.  Why?  Check this:

   PID USERNAME PRI NICE  SIZE   RES STATE   TIME    CPU COMMAND
403578 bentss    50    0 7184K 2039K run     0:27 99.90% gdb

The thing just hits the total CPU capacity for setting a breakpoint at
main.  Kind of odd, right?

Weird is that this also fails:

$ gdb -p 405522
GNU gdb 2003-02-21-cvs
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "alphaev68-dec-osf5.1".
Attaching to process 405522
Retry #1:
Retry #2:
Retry #3:
Retry #4:
[New Process 405522]
Reading symbols from /usr/users/bentss/asmodai/bin/gdb...done.

And also hangs and takes full CPU.

-- 
Jeroen Ruigrok van der Werven <asmodai(at)wxs.nl> / asmodai / a capoeirista
PGP fingerprint: 2D92 980E 45FE 2C28 9DB7  9D88 97E6 839B 2EAC 625B
http://www.tendra.org/   | http://www.in-nomine.org/~asmodai/diary/
Confutatis maledictis, flammis acribus addictis...

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-02-21 16:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-21 16:54 gdb (CVS) plus breakpoint at main oddity Jeroen Ruigrok/asmodai

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).