День добрый... столкнулся вот с такой проблемой при отладке dll
$ gdb ghda.dll
GNU gdb 6.8.0.20080328-cvs (cygwin-special)
This GDB was configured as "i686-pc-cygwin"...
(gdb) exec-file test.exe
(gdb) b 8
Breakpoint 1 at 0x61f01186: file ghda.cpp, line 8.
(gdb) r
Starting program: /cygdrive/d/Documents/gccprg/test.exe
[New thread 2156.0xbbc]
Warning:
Cannot insert breakpoint 1.
Error accessing memory address 0x61f01186: Input/Output error.
$ g++ -v
Reading specs from c:/mingw/bin/../lib/gcc/mingw32/3.4.5/specs
Configured with: ../gcc-3.4.5/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw special)
винда ХП, процессор интел. собирал вот так g++ -shared ghda.cpp -o ghda.dll -g
dll и exe типа хеловорд, с одной функцией
либу грузил через LoadLibrary (при статической линковке все работает)
как быть? или нельзя гдб под виндой в таких целях использовать?