"readelf" Equivalent?
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
POPULAR GROUPS

more...

comp.os ... win32 Profile…
 Up
"readelf" Equivalent?         


Author: gamename
Date: May 9, 2008 08:32

Hi,

In the *nix world, there is the command 'readelf' to figure out if an
executable contains debug symbols. Is there an equivalent command in
win32??

Tks.
-T
2 Comments
Re: "readelf" Equivalent?         


Author: Nathan Mates
Date: May 9, 2008 10:02

In article q24g2000prf.googlegroups.com>,
gamename yahoo.com> wrote:
>In the *nix world, there is the command 'readelf' to figure out if
>an executable contains debug symbols. Is there an equivalent
>command in win32??

In the win32 world, debug symbols are typically contained in a
separate file from the .exe. MS's compiler puts them in a .pdb
(Program DataBase) file, with the same name as the exe -- e.g.
myapp.exe can have a myapp.pdb file. It's then trivial to distribute
only the .exe to end users and now give away the farm.

Nathan Mates

--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
no comments
Re: "readelf" Equivalent?         


Author: Jerry Coffin
Date: May 11, 2008 08:49

In article 08b6efc40cbf@q24g2000prf.googlegroups.com>, namesagame-usenet@yahoo.com
says...
> Hi,
>
> In the *nix world, there is the command 'readelf' to figure out if an
> executable contains debug symbols. Is there an equivalent command in
> win32??

Looking up SymInitialize should get you started in the right direction.
IIRC, in Win32, some symbol lookup can/will work even without debug
symbols as such -- some symbols like names of exported functions are
normally present anyway (though the names are sometimes pretty
useless).

--
Later,
Jerry.

The universe is a figment of its own imagination.
no comments