🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #8790

breakpoint => signal?

#8790
From: Karl Berry
Date: Wed, 09 Dec 1992 08:57
47 lines
1627 bytes
Sorry for the long narrative, but I can't explain the bug without all
the preceding junk.

I compile the following program with g++ 2.3.2 -g; I start gdb 4.7 (on a
sun 4 running 4.1.1), and want to set breakpoints at stack::stack and
stack::~stack.

(gdb) b stack::stack

This gets me the menu:

[0] cancel
[1] all
[2] stack::stack(void) at stack.cc:20
[3] stack::~stack(void) at stack.cc:16

Fine.  I type 1 RET:
> 1

and it comes back with:

Breakpoint 1 at 0x231c: file stack.cc, line 20.
Breakpoint 2 at 0x22d0: file stack.cc, line 16.
...
(gdb)

Fine.

Now I start the program:

(gdb) r

And get the following confusion:

Starting program: /u/zapf/karl/misc/src/a.out 
[0] cancel
[1] all
[2] stack::stack(void) at stack.cc:20
[3] stack::~stack(void) at stack.cc:16
> 
[1]+  Stopped (tty output)    gdb a.out
bash$ 

It somehow shows the menu again, then suspends the gdb job and puts me
back at the shell.

karl@cs.umb.edu
Technical Details
Message-ID: <199212091857.AA21049@claude.cs.umb.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!wupost!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!claude.cs.umb.edu!karl

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,1864cf39e9fad990,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1992-12-09 18:26:51 PST
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!wupost!uwm.edu!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!claude.cs.umb.edu!karl
From: karl@claude.cs.umb.edu (Karl Berry)
Subject: breakpoint => signal?
Message-ID: <199212091857.AA21049@claude.cs.umb.edu>
Sender: gnulists@ai.mit.edu
Reply-To: karl@cs.umb.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Wed, 9 Dec 1992 08:57:25 GMT
Approved: bug-gdb@prep.ai.mit.edu
Lines: 48