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 autolearn=no 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-25 04:57:43 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!207.217.77.43.MISMATCH!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: Re: Getting a symbol table from Gnat 3.15p on Windows Date: Tue, 25 Feb 2003 07:56:47 -0500 Organization: MindSpring Enterprises Message-ID: References: <8_O5a.198854$iG3.23506@sccrnsc02> NNTP-Posting-Host: d1.56.ba.2d X-Server-Date: 25 Feb 2003 12:57:40 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:34557 Date: 2003-02-25T12:57:40+00:00 List-Id: Found it and tried it out. You're right about the lack of type info. I didn't look closely enough to determine if nm would tell you how big something was. That would at least allow you to find it in memory and extract or write to it. But without the type info, the game is basically over. You've got to know how to interpret the data, not just read and write to it. A look at the names suggests that one might be able to parse them backwards into Ada-ish names without too much trouble, but one would worry about finding exceptions or things that otherwise won't go backwards easily. Too bad Gnat doesn't seem to dump its symbol tables in a readily accessible manner. I suppose one might be able to cobble something together with nm, objdump, ASIS and several yards of glue code, but its suggesting that one would spend all of one's time re-developing a compiler/linker rather than the app of interest. Maybe there's another route. I'll have to keep investigating... 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 ====================================================================== Simon Wright wrote in message news:x7vof51r0om.fsf@smaug.pushface.org... > > nm will give you the address corresponding to a (linker) symbol. > Relating that to an Ada name can be problematic. You won't get > type info.