🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #774

Possible bug in gdb 3.1

#774
From: jkh
Date: Mon, 08 May 1989 14:17
44 lines
1769 bytes
While working under xgdb (mine, not the version that comes with GNU),
I noticed the following problem:

xgdb tracks the current stack level and function name by parsing messages of
the form:  #\([0-9]*\)  \([a-zA-Z_]*\) .* (.* line [0-9]*)\n

These are generated with "up", "frame" and "down", as one would expect.
However, should one be "up" a few frames and then do a "step", an IMPLICIT
"down" is done, without printing the change in stack level. To wit:

(gdb) step
^Z^Z/usr/ben/jkh/src/xgdb/queue.c:37:797:beg
(gdb) up
#1  0x30ee in launchProcess (name=(char *) 0x102446 "gdb", args=(char **) 0x1163
2c, term=(void (*)()) 0x1d6) (process.c line 181)
^Z^Z/usr/ben/jkh/src/xgdb/process.c:181:3994:beg
(gdb) up
#2  0x18a4 in main (ac=1, av=(char **) 0x3f7fed56, 1065348446) (main.c line 139)
^Z^Z/usr/ben/jkh/src/xgdb/main.c:139:3975:beg
(gdb) step
^Z^Z/usr/ben/jkh/src/xgdb/queue.c:44:947:beg
		^^^^^ Arrrrgghhh!

As you can see, the step causes the frame number to be set back to
the bottom, but it doesn't announce this fact. This causes xgdb to
have the wrong line and function name information.

Fix?

(We'll fix it locally, but..)

					Jordan



-- 
--------
				Jordan Hubbard
				PCS Computer Systeme GmbH
				West Germany
	UUCP:			{uunet,decwrl}!pyramid!pcsbst!jkh
	ARPA:			jkh@violet.berkeley.edu

Hey! Leave that alone!
Technical Details
Message-ID: <817@pcsbst.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!mcvax!unido!pcsbst!jkh

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!mcvax!unido!pcsbst!jkh
From: jkh@pcsbst.UUCP (jkh)
Newsgroups: gnu.gdb.bug
Subject: Possible bug in gdb 3.1
Message-ID: <817@pcsbst.UUCP>
Date: 8 May 89 14:17:43 GMT
Reply-To: meepmeep!jkh@pcsbst.UUCP ( Jordan K. Hubbard )
Organization: PCS GmbH, Pfaelzer-Wald-Str. 36, 8000 Muenchen; West-Germany
Lines: 44