🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by jkh Mon, 08 May 1989 14:17
Possible bug in gdb 3.1
#774
Author: 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!
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads