comp.lang.ada
 help / color / mirror / Atom feed
From: Jeff Creem <jcreem@yahoo.com>
Subject: Re: Ada 95 Debugger Script (memory location)
Date: Mon, 03 Oct 2005 18:55:47 -0400
Date: 2005-10-03T18:55:47-04:00	[thread overview]
Message-ID: <hJSdnYznLOx-K9zenZ2dnUVZ_smdnZ2d@comcast.com> (raw)
In-Reply-To: <1128347602.671381.250000@f14g2000cwb.googlegroups.com>

dylan@skitsanddicks.com wrote:
> Hi all,
> 
> I'm trying to write a script for the debugger which obtains data and
> dumps it into a specified file.
> 
> The problem is that I have to find the memory address of a specified
> variable.  The memory address is what I will use for the "memdump"
> command to put the data into the file.  I cannot just hardcode the
> address location because it changes.
> 
> I'm not sure how to store the memory address location using the command
> prompt, and I have searched somewhat thoroughly through the debugger
> help manual.
> 
> Thanks for your help!
> 

Which debugger?

gdb, IBM Ada Developer, Greenhills, etc ?

Perhaps you can just write a an Ada procedure that does the write to a 
file via the 'address of the variable and call the procedure from 
whatever debugger script you are using.




  reply	other threads:[~2005-10-03 22:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-03 13:53 Ada 95 Debugger Script (memory location) dylan
2005-10-03 22:55 ` Jeff Creem [this message]
2005-10-04 13:44   ` dylan
replies disabled

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