comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <mcondic.auntie.spam@acm.org>
Subject: Re: Getting a symbol table from Gnat 3.15p on Windows
Date: Tue, 25 Feb 2003 07:56:47 -0500
Date: 2003-02-25T12:57:40+00:00	[thread overview]
Message-ID: <b3fp84$urs$1@slb6.atl.mindspring.net> (raw)
In-Reply-To: x7vof51r0om.fsf@smaug.pushface.org

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 <simon@pushface.org> 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.





  reply	other threads:[~2003-02-25 12:56 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-20 13:24 Getting a symbol table from Gnat 3.15p on Windows Marin David Condic
2003-02-20 15:15 ` David C. Hoos, Sr.
2003-02-21  2:16   ` Marin David Condic
2003-02-20 18:30 ` Stephen Leake
2003-02-21  3:24   ` Marin David Condic
2003-02-21 16:01     ` Stephen Leake
2003-02-21 16:14       ` Preben Randhol
2003-02-21  6:37 ` sk
2003-02-21 12:38   ` Marin David Condic
2003-02-21 20:02     ` Randy Brukardt
2003-02-21 21:33       ` Stephen Leake
2003-02-22 15:01       ` Marin David Condic
2003-02-22  5:46     ` sk
2003-02-22 15:23       ` Marin David Condic
2003-02-22 18:05         ` Jeffrey Creem
2003-02-23 15:06           ` Marin David Condic
2003-02-24 18:30             ` Simon Wright
2003-02-25 12:56               ` Marin David Condic [this message]
2003-02-26  1:26                 ` Randy Brukardt
2003-02-26 13:27                   ` Marin David Condic
2003-02-26 18:10                     ` tmoran
2003-02-27 13:11                       ` Marin David Condic
2003-02-27 18:01                         ` tmoran
2003-02-28 12:08                           ` Marin David Condic
2003-02-28 18:18                             ` tmoran
2003-02-28 20:24                             ` tmoran
2003-03-01 18:25                               ` John R. Strohm
2003-02-26 18:54                 ` Stephen Leake
2003-02-27 13:22                   ` Marin David Condic
2003-02-27 17:14                     ` Stephen Leake
  -- strict thread matches above, loose matches on Subject: below --
2003-02-21  3:24 David C. Hoos, Sr.
2003-02-21  4:00 ` Marin David Condic
replies disabled

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