This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb (CVS) plus breakpoint at main oddity


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]