- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Greetings:
I find myself needing to know what subroutine ( only names not versions ) are used in a given exe.
Now I already to know how to do this with library and object files, I use dumpbin /symbols name.obj and do OK.
I also know that if I use SCCS ids or CVS IDENT strings I could use the what or ident command... but that means updating the source.
De-buggers have to be able to do this, so the data is there ..... any idea on how to get at the data?
Regards
Carl
I find myself needing to know what subroutine ( only names not versions ) are used in a given exe.
Now I already to know how to do this with library and object files, I use dumpbin /symbols name.obj and do OK.
I also know that if I use SCCS ids or CVS IDENT strings I could use the what or ident command... but that means updating the source.
De-buggers have to be able to do this, so the data is there ..... any idea on how to get at the data?
Regards
Carl
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The data is not there, unless you have linked a debug executable and then the symbols will be in a separate PDB file. If you ask the linker to create a link map, you can find names in it, but there isn't a way to take some random EXE and extract routine names from it.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The data is not there, unless you have linked a debug executable and then the symbols will be in a separate PDB file. If you ask the linker to create a link map, you can find names in it, but there isn't a way to take some random EXE and extract routine names from it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you tried DLLEXPORT?
I believe you can DLLEXPORT procedure names without linking to a DLL or being a DLL. The names and offsetsshould be visible in the .exe file. Someone probably has a free utility that lists the exported names.
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That does work - but still requires changing the code or writing a .DEF file to define the exports. You can dump them with "dumpbin -exports" from a Fortran command prompt.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page