From mboxrd@z Thu Jan 1 00:00:00 1970 From: DJ Delorie To: binutils@sourceware.cygnus.com Cc: cgf@cygnus.com, Motohiko.Nagano@jp.sony.com Subject: Re: Can gdb debug win32 native program? Date: Fri, 30 Jun 2000 14:57:00 -0000 Message-id: <200006302157.RAA22586@envy.delorie.com> X-SW-Source: 2000-06/msg00601.html > > 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.