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=-0.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, XPRIO autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6403691d6db186c8,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-02-20 05:25:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!newsfeed.mathworks.com!cyclone.swbell.net!newsfeed1.easynews.com!easynews.com!easynews!newsfeed1.earthlink.net!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Getting a symbol table from Gnat 3.15p on Windows Date: Thu, 20 Feb 2003 08:24:02 -0500 Organization: MindSpring Enterprises Message-ID: NNTP-Posting-Host: d1.56.b3.ad X-Server-Date: 20 Feb 2003 13:25:16 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Xref: archiver1.google.com comp.lang.ada:34272 Date: 2003-02-20T13:25:16+00:00 List-Id: 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.) 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.) 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 ======================================================================