🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ron Guilmette Sun, 19 Feb 1989 19:39
BUG in GDB 3.0 - can't evaluate (ptr - &array)
#710
Author: Ron Guilmette
Date: Sun, 19 Feb 1989 19:39
20 lines
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
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