Article View: gnu.gdb.bug
Article #10069gdb return short bugs
From: Paul English x3168
Date: Mon, 09 Jul 1990 22:47
Date: Mon, 09 Jul 1990 22:47
37 lines
1449 bytes
1449 bytes
I sent in a description of this bug while ago, and never heard
anything. (It could be the sucky interleaf mailers never sent my
earlier mail.)
Is this a bug? Is it known? Any plans for a fix?
Date: Mon, 9 Jul 90 17:36:56 EDT
From: kimbo@puppy (Kimbo Mundy x5550)
To: pme@speed
Subject: gdb return short bugs
Put this into /tmp/foo.c:
/* BEGIN foo.c */
short a()
{
return ( 1 );
}
main()
{
a();
}
/* END foo.c */
Compile foo.c with gcc:
cd /tmp
gcc -g foo.c -o foo
Debug foo and use finish to get the return value from a():
gdb foo
b a
r
fin
The return value is printed is "$1 = 0" it should be "$1 = 1".
There used to be other problems with short parameters and local, but
those may all be fixed now, I'm not sure.
Technical Details
Message-ID:
<9007092247.AA04742@speed.io.uucp>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!snorkelwacker!tut.cis.ohio-state.edu!speed.eng.ileaf.com!pmeShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f5053,db7f457879c3d2ca,start X-Google-Attributes: gidf5053,public X-Google-ArrivalTime: 1990-07-09 15:47:50 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!snorkelwacker!tut.cis.ohio-state.edu!speed.eng.ileaf.com!pme From: pme@speed.eng.ileaf.com (Paul English x3168) Newsgroups: gnu.gdb.bug Subject: gdb return short bugs Message-ID: <9007092247.AA04742@speed.io.uucp> Date: 9 Jul 90 22:47:50 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 37 Posted: Mon Jul 9 23:47:50 1990