Re: Extracting Debug (meta data) from executable images?

2005-12-08 Thread Brian Dessent
Siegfried Heintze wrote: I looked in c:\cygwin\usr\doc\ELFIO and there is a nice PDF file that refers to the examples directory. Where is this examples directory? What is the relationship between stabs and ELF? ELF is a file format for objects and executables that is used on linux and other

Re: Extracting Debug (meta data) from executable images?

2005-12-08 Thread Brian Dessent
Siegfried Heintze wrote: Neither nm, readelf or objdump enumerate the fields of a struct. It looks like dwarfdump would, but libdwarf does not compile with cygwin/gcc 3.4 or RedHat8/gcc 3.2. Did you actually try objdump -g like I said? Because as far as I can tell it basically dumps

Extracting Debug (meta data) from executable images?

2005-12-07 Thread Siegfried Heintze
I hope Igor will be pleased that I first posted in a g++ forum about reading executable images. I was referred to STABS, DWARF, DWARFv2 and v3 and http://www.eagercon.com/dwarf/dwarf3std.htm and http://reality.sgi.com/davea/dwarf.html. What is the relationship between cygwin, windows and these

Re: Extracting Debug (meta data) from executable images?

2005-12-07 Thread Brian Dessent
Siegfried Heintze wrote: What is the relationship between cygwin, windows and these formats and libraries? Can I use these linux libraries to read debug information in images created with g++ on cygwin? If not, how do I read the debug information in images created with g++ on cygwin? The

Re: Extracting Debug (meta data) from executable images?

2005-12-07 Thread Christopher Faylor
On Wed, Dec 07, 2005 at 01:18:17PM -0800, Brian Dessent wrote: Siegfried Heintze wrote: What is the relationship between cygwin, windows and these formats and libraries? Can I use these linux libraries to read debug information in images created with g++ on cygwin? If not, how do I read the

RE: Extracting Debug (meta data) from executable images?

2005-12-07 Thread Siegfried Heintze
But extracting debug info is way too vague of a term to offer any meaningful help. You'd have to state exactly what you're trying to do. Try man objdump or objdump -g file, or read the binutils/bfd internals manuals. I basically want to implement reflection for C++ by extracting all the

RE: Extracting Debug (meta data) from executable images?

2005-12-07 Thread Siegfried Heintze
How does ELFDump.exe work? I did a chmod 777 hello.* and still ELFDump hello.o And ELFDump hello.exe Still produce the Can't openinput file Hello.exe Thanks, Siegfried -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: