🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #22

Can't read(0,buf,1) in gdb-4.7

#22
From: Richard W. Kreutzer Consultant
Date: Wed, 28 Oct 1992 22:29
26 lines
1052 bytes
When I do the following:

main() {
  char a[1];
  read(0, a, 1);
  }

gcc -o main main.c
gdb main
> r
Program received signal 21, Stopped (tty input)
0xf77371c4 in read ()

I get the above error message.  This worked for me in 4.5 and 4.6.  I am using
gcc-2.2.2 but the problem occurs with cc as well (with or without -g).  I am
running SunOS 4.1.1 on a SPARCstation 1+.

Is this a bug of have I compiled gdb wrong?

Also, I am unable to get "cfront" name demangling to work with Sun CC v2.1.
Do you believe it works with cfront-2.1 on a Sun?


Thanks,

Dick
Technical Details
Message-ID: <9210282229.AA17041@quark.sbi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!quark.sbi.com!rwk

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!quark.sbi.com!rwk
From: rwk@quark.sbi.com (Richard W. Kreutzer Consultant)
Newsgroups: gnu.gdb.bug
Subject: Can't read(0,buf,1) in gdb-4.7
Message-ID: <9210282229.AA17041@quark.sbi.com>
Date: 28 Oct 92 22:29:10 GMT
Article-I.D.: quark.9210282229.AA17041
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 26
Approved: bug-gdb@prep.ai.mit.edu