From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,81902d8ed23b5f61 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 03 Oct 2005 17:55:31 -0500 Date: Mon, 03 Oct 2005 18:55:47 -0400 From: Jeff Creem User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ada 95 Debugger Script (memory location) References: <1128347602.671381.250000@f14g2000cwb.googlegroups.com> In-Reply-To: <1128347602.671381.250000@f14g2000cwb.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.74.171 X-Trace: sv3-GQvQqHtwwQDUau0m/0U7tDXqoALl4UTQHxvdfqwJNBBtxg5hyMmF+EX+am2HBn+TrUAEF33yhJbWEOG!Bz833qFxCEJGYSz+lBhgy3JWTYA/j7clh5rBC+X5fpGk4qVIBMlZtQJsbAiZ0vzDjViZEtf/i5Va!wAS4A6xKtTU= X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:5364 Date: 2005-10-03T18:55:47-04:00 List-Id: 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.