This is the mail archive of the binutils@sources.redhat.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]

Problems creating a Win32 DLL with debug information


I am tying to create a Win32 DLL with debug information. Unfortunately all
Win32 debuggers (including GDB) no dot recognize the debug information.

I compile the object files with a statement like:

gcc -Wall -mno-cygwin -gcoff -I.  -I./include -DBUILDING_DLL -D_DEBUG  -c -o
oggcodec.o oggcodec.c

The DLL is generated with this statement:

dllwrap --target=i386-mingw32 -mno-cygwin --mno-cygwin --add-stdcall-alias -
gcoff --export-all-symbols -Wl,--enable-stdcall-fixup, --def oggcodec.def -o
oggcodec.acm oggcodec.o acmdump.o debug.o handleacm.o handlegen.o oggres.o
rint.o fixup.o -lwinmm -lmsvcrt -L./lib -lvorbis

When I try to get the debug information from the DLL with objdump --debug
this is returned:
	with the latest binutils snapshot:
	      0 [main] objdump 1110 handle_exceptions: Exception:
STATUS_ACCESS_VIOLATION
	      67781 [main] objdump 1110 stackdump: Dumping stack trace to
objdump.exe.stackdump

	with cygnus distributed binutils 2.10 I get something like (I cannot
reproduce this at the moment):
		unexpected and of file

The platform is i586-pc-cygwin. Any idea?

br,
Florian


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