This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Can gdb debug win32 native program?



> > 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]