comp.lang.ada
 help / color / mirror / Atom feed
From: awdorrin <awdorrin@gmail.com>
Subject: Re: Memory Access
Date: Tue, 8 Nov 2011 08:10:01 -0800 (PST)
Date: 2011-11-08T08:10:01-08:00	[thread overview]
Message-ID: <c1d7b8a8-389e-4646-9633-9c811cc225ed@l19g2000yqc.googlegroups.com> (raw)
In-Reply-To: 35c7e403-6503-4e26-8764-9783caf84871@e2g2000vbb.googlegroups.com

I think I have myself rather confused at the moment with all of
this...

Reviewing the code more - I now have a different understanding of what
Dev_Table is meant to be.

I think that Dev_Table is supposed to be an array of
Dev_Table_Ptr_Type (an array of pointer addresses) that point to the
Dev_Table_Type array of Config_Type records.

Stepping through the code with GDB has shed some light, although not a
solution to my problem, quite yet.

The problem I'm running into is a SegFault when the code tries to
assign a value read from the data file.

  Dev_Table(Dev_Num).Dev_Name := Current_Dev_Name;

GDB cannot resolve what Dev_Table(Dev_Num) is - I'm thinking because
it and Ada isn't seeing Dev_Table as an array of pointers.

Showing my ignorance/lack of familiarity with the Ada language here I
think... :)




  parent reply	other threads:[~2011-11-08 16:11 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-07 20:09 Memory Access awdorrin
2011-11-07 21:26 ` Simon Wright
2011-11-07 22:03 ` anon
2011-11-07 22:21 ` Adam Beneschan
2011-11-07 22:42   ` Adam Beneschan
2011-11-07 23:13   ` Simon Wright
2011-11-07 23:32     ` Adam Beneschan
2011-11-08 12:22       ` awdorrin
2011-11-08 16:00         ` Adam Beneschan
2011-11-08 17:46           ` awdorrin
2011-11-08 20:11             ` Adam Beneschan
2011-11-08 20:24               ` awdorrin
2011-11-09 14:42                 ` awdorrin
2011-11-08 16:10         ` awdorrin [this message]
2011-11-08 18:33           ` Simon Wright
2011-11-08 18:34             ` Simon Wright
2011-11-08 20:18             ` awdorrin
2011-11-08 12:44       ` Simon Wright
2011-11-07 22:26 ` Niklas Holsti
2011-11-07 22:53   ` Adam Beneschan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox