This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
gdb crash
- From: Łukasz Michalski <l dot michalski at ant dot gliwice dot pl>
- To: <gdb at sources dot redhat dot com>
- Date: Tue, 6 May 2003 21:59:51 +0200
- Subject: gdb crash
Hi,
I am developing application using wxWindows for Linux and MS Windows
platforms using wxWindows. Under windows I am using mingw with latest
patches and Dev-Cpp (latest beta)
I have problems using gdb under windows. When I run my application
standalone everything works correct. But when run under gdb app crashes and
gdb crashes just after.
When I try to run app step-by-step by setting breakpoint to first line and
stepping over gdb crashes when accessing first static variable.
It crashes always with the same message:
Access violation in gdb exe. Memory at address 0x0000004 cannot be "read".
I want to generate reasonable bug report, but I have no idea how to do it.
My app with debug info has 45Mb and is linked with wxWindows compiled
with -g flag and some other smaller libraries also compiled with -g flag.
Here are versions of compiler and gdb:
C:\>gdb -v
GNU gdb 5.2.1
Copyright 2002 Free Software Foundation, Inc.
[...]
This GDB was configured as "mingw32".
C:\>gcc -v
Reading specs from P:/DevCpp/bin/../lib/gcc-lib/mingw32/3.2/specs
Configured with:
../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=
mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --en
able
-languages=f77,c++,objc,ada --disable-win32-registry --disable-shared
Thread model: win32
gcc version 3.2 (mingw special 20020817-1)
I can try to strip the code, but cannot make my app independent of wxWindows
and I use slightly modified version than original.
I will be very graceful for any suggestions what to do to make gdb work.
Under Linux everything works fine.
Regards,
Łukasz Michalski