Can gdb debug win32 native program?

DJ Delorie dj@delorie.com
Fri Jun 30 14:57:00 GMT 2000


> > bash-2.04$ objdump -p //E/WINNT/SYSTEM32/calc.exe
> > objdump: //E/WINNT/SYSTEM32/calc.exe: File format not recognized
> 
> OK, I debugged it and I know why it's failing, but I don't have a fix.

I just checked in a fix.  There was a spot where we assumed that the
PE header was at offset 0x80 in the file, but obviously we can't do
that.  I also commented the structure for the headers to remind people
that the offsets are dynamic.


More information about the Binutils mailing list