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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6403691d6db186c8 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-20 07:13:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!fr.usenet-edu.net!usenet-edu.net!enst.fr!not-for-mail From: "David C. Hoos, Sr." Newsgroups: comp.lang.ada Subject: Re: Getting a symbol table from Gnat 3.15p on Windows Date: Thu, 20 Feb 2003 09:15:09 -0600 Organization: ENST, France Message-ID: References: Reply-To: "comp.lang.ada mail to news gateway" NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1045754030 11085 137.194.161.2 (20 Feb 2003 15:13:50 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Thu, 20 Feb 2003 15:13:50 +0000 (UTC) To: "comp.lang.ada mail to news gateway" Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.1 Precedence: list List-Id: comp.lang.ada mail to news gateway List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:34277 Date: 2003-02-20T09:15:09-06:00 ----- Original Message ----- From: "Marin David Condic" Newsgroups: comp.lang.ada To: Sent: February 20, 2003 7:24 AM Subject: Getting a symbol table from Gnat 3.15p on Windows > I've got an application I'm investigating that looks something like a > debugger. What I think I need is some means of getting the addresses of data > items from a linked image such that I can interrogate the image for data > values and set the contents of variables as needed. Basically one app will > communicate with the other, knowing the other apps symbol table. Here's the > question(s): > > Is there a means of getting a symbol table for an app that is compiled & > linked with Gnat 3.15p on Windows? What switches or secret handshakes are > needed to get that to happen? (We can worry about formats, etc. at a later > point - right now I need to know if it is possible and how to make it happen > to demonstrate proof of concept.) Have you tried the "secret handshake" given in Section 5.1 of the GNAT User's Guide? Also, would there be any obvious problems > with passing an address into an app and having it interrogate its own memory > using a variable of type Address? (Such as different address formats from > the data in the symbol table or OS related memory restrictions.) I don't see any problem if all you want to do is "interrogate." Attempting to write, however, is another matter, as some of the app's memory is sure to be "read only." > > If this doesn't happen readily with Gnat/Windows, I can consider other > environments such as a different compiler or platform so long as it doesn't > get too far afield from a workstation & easily obtainable software. I've > already got something like this using an old XD-Ada compiler targeting an > embedded processor & I want to build something similar to run the embedded > code on a workstation. Any ideas or help would be appreciated. > > MDC > -- > ====================================================================== > Marin David Condic > I work for: http://www.belcan.com/ > My project is: http://www.jsf.mil/ > > Send Replies To: m c o n d i c @ a c m . o r g > > "Going cold turkey isn't as delicious as it sounds." > -- H. Simpson > ====================================================================== > > > _______________________________________________ > comp.lang.ada mailing list > comp.lang.ada@ada.eu.org > http://ada.eu.org/mailman/listinfo/comp.lang.ada > >