Article View: gnu.gdb.bug
Article #710BUG in GDB 3.0 - can't evaluate (ptr - &array)
From: Ron Guilmette
Date: Sun, 19 Feb 1989 19:39
Date: Sun, 19 Feb 1989 19:39
20 lines
960 bytes
960 bytes
In GDB 3.0 (on a Sun 3) you are allowed to:
print pointer_variable - array_variable
but if you try to:
print pointer_variable - &array_variable
you get the message:
Argument to arithmetic operation not a number.
Shouldn't these two expressions evaluate to the same thing (and in
the same way)?
// Ron Guilmette - MCC - Experimental (parallel) Systems Kit Project
// 3500 West Balcones Center Drive, Austin, TX 78759 - (512)338-3740
// ARPA: rfg@mcc.com
// UUCP: {rutgers,uunet,gatech,ames,pyramid}!cs.utexas.edu!pp!rfg
Technical Details
Message-ID:
<8902191939.AA07041@riunite.aca.mcc.com>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfg From: rfg@MCC.COM (Ron Guilmette) Newsgroups: gnu.gdb.bug Subject: BUG in GDB 3.0 - can't evaluate (ptr - &array) Message-ID: <8902191939.AA07041@riunite.aca.mcc.com> Date: 19 Feb 89 19:39:37 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 20