🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #8777

Not reading chars correctly

#8777
From: bts1
Date: Sun, 06 Dec 1992 14:19
43 lines
1898 bytes
Version: gdb-4.7
Configuration: decstation

	I'm having a wierd problem with gdb.  When I first compiled
it, gdb didn't read it some characters correctly.  Some it would beep 
at, some it would ignore.  

	For example, q it would beep, l it would ignore, but Q and L were
fine.  It seems to be the same set of characters every time it happens.

	However, it doesn't always seem to be a problem.  When I first
compiled it, it was mis-reading those characters.  However, I tried
it a day later, and it seemed to be working.  So, I installed it into
/usr/local/bin.  Today, I was trying to write an example, and it was
working fine until I tried to use gdb on the included program.  Then 
it started acting up again.

	Any suggestions, hints appreciated.

-Brian Shelden
assistant sysadmin, crux[1-3].cit.cornell.edu
bts1@crux2.cit.cornell.edu

PS 	This program is intended to be a short test of how to
	find seg faults and bus errors.  Please no comments on 
	my C-programing ability. ;)
	I compiled it with gcc-2.2.2 like:
	example% gcc -g gdbtest.c -o myecho

-------------------- Begin Included file --------------------
#include <stdio.h>

int printstuff(char * string)
{
	return printf("%s ", string);
}

int main(int argc, char ** argv)
{
	for (; *argv != NULL; argv++) {
		printstuff(argv);
	}
}
Technical Details
Message-ID: <9212070019.AA02882@crux3.cit.cornell.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!crux2.cit.cornell.edu!bts1

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f5053,b0b987845d673eca,start
X-Google-Attributes: gidf5053,public
X-Google-ArrivalTime: 1992-12-06 21:03:42 PST
Newsgroups: gnu.gdb.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!crux2.cit.cornell.edu!bts1
From: bts1@crux2.cit.cornell.edu
Subject: Not reading chars correctly
Message-ID: <9212070019.AA02882@crux3.cit.cornell.edu>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sun, 6 Dec 1992 14:19:54 GMT
Approved: bug-gdb@prep.ai.mit.edu
Lines: 45