comp.lang.ada
 help / color / mirror / Atom feed
From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Debugging Ada
Date: Wed, 21 Dec 2011 08:45:43 -0800 (PST)
Date: 2011-12-21T08:45:43-08:00	[thread overview]
Message-ID: <5567da15-bd12-4dee-be27-b98525ea1323@x19g2000yqf.googlegroups.com> (raw)
In-Reply-To: 4b7ed906-dfbb-4f73-826e-f1c94ec320e7@k10g2000yqk.googlegroups.com

awdorrin wrote on comp.lang.ada:
> During elaboration, the Ada code is setting a constant string that it
> retrieves from another package:
>
> LAN_CFG_FILE : constant String := SysConfig.Cfg_Filename( LAN_CFG );
[...]
> When I try to get the address of LAN_CFG_FILE in GDB, so I can set a
> watch, I get the response:
>
> "Attempt to take address of value not located in memory."

It looks like the value of LAN_CFG_FILE is preelaborated, i.e.
determined at compile time and hardcoded into the object file. In this
case, something must be overwriting it later but still at link time,
before your program runs.

--
Ludovic Brenta.



  reply	other threads:[~2011-12-21 16:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-21 15:14 Debugging Ada awdorrin
2011-12-21 16:45 ` Ludovic Brenta [this message]
2011-12-21 16:51   ` awdorrin
2011-12-21 17:18     ` Ludovic Brenta
2011-12-21 17:36       ` awdorrin
2011-12-21 18:06         ` Simon Wright
2011-12-21 18:43           ` awdorrin
2011-12-21 19:46         ` Ludovic Brenta
2011-12-22  7:21           ` Adam Beneschan
2011-12-22  8:39             ` Ludovic Brenta
2011-12-22 12:20             ` awdorrin
2011-12-22 10:28 ` Gautier write-only
replies disabled

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