public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Jeroen Ruigrok/asmodai <asmodai@wxs.nl>
To: gdb@sources.redhat.com
Subject: gdb (CVS) plus breakpoint at main oddity
Date: Fri, 21 Feb 2003 16:54:00 -0000	[thread overview]
Message-ID: <20030221165430.GC367@nexus.ninth-circle.org> (raw)

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

                 reply	other threads:[~2003-02-21 16:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030221165430.GC367@nexus.ninth-circle.org \
    --to=asmodai@wxs.nl \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).