This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Can gdb debug win32 native program?
- To: binutils at sourceware dot cygnus dot com
- Subject: Re: Can gdb debug win32 native program?
- From: DJ Delorie <dj at delorie dot com>
- Date: Fri, 30 Jun 2000 17:57:09 -0400
- CC: cgf at cygnus dot com, Motohiko dot Nagano at jp dot sony dot com
> > 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.