Hello, all: I have compiled qemu in cygwin with mingw according to the qemu wiki. When I debug it with GDB, I get the error below:
......... Type "apropos word" to search for commands related to "word"... Reading symbols from qemu-system-x86_64.exe...done. (gdb) r -cdrom /t.iso -boot d -display sdl Starting program: /cygdrive/c/emulator/mqemu/bin/debug/i686-w64-mingw32/x86_64-softmmu/qemu-system-x86_64.exe -cdrom /t.iso -boot d -display sdl [New Thread 11372.0x26c8] warning: `/cygdrive/c/windows/SYSTEM32/ntdll.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386. warning: `/cygdrive/c/windows/System32/wow64.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386. warning: `/cygdrive/c/windows/System32/wow64win.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386. warning: dll path for "WOW64_IMAGE_SECTION" can not be evaluated warning: Could not load shared library symbols for WOW64_IMAGE_SECTION. Do you need "set solib-search-path" or "set sysroot"? warning: dll path for "WOW64_IMAGE_SECTION" can not be evaluated warning: Could not load shared library symbols for WOW64_IMAGE_SECTION. Do you need "set solib-search-path" or "set sysroot"? warning: dll path for "NOT_AN_IMAGE" can not be evaluated warning: Could not load shared library symbols for NOT_AN_IMAGE. Do you need "set solib-search-path" or "set sysroot"? warning: dll path for "NOT_AN_IMAGE" can not be evaluated warning: Could not load shared library symbols for NOT_AN_IMAGE. Do you need "set solib-search-path" or "set sysroot"? warning: `/cygdrive/c/windows/System32/wow64cpu.dll': Shared library architecture i386:x86-64 is not compatible with target architecture i386. [New Thread 11372.0x4110] [New Thread 11372.0x1b84] [New Thread 11372.0x1064] [Thread 11372.0x1064 exited with code 3221225781] [Thread 11372.0x1b84 exited with code 3221225781] [Inferior 1 (process 11372) exited with code 030000000465] Somebody can help me? thanks. ps. My build shell script is: PWD="/emulator/qemu-2.9.0" # Don't build in the QEMU source directory. Using a subdirectory is better. # Here is an example of a debug build. SRC_PATH=$PWD BUILD_DIR="$PWD/bin/debug/i686-w64-mingw32" mkdir -p $BUILD_DIR cd $BUILD_DIR echo -n "s1) Build folder has been created. Enter " pwd CMD="$SRC_PATH/configure \ --enable-debug \ --cross-prefix=i686-w64-mingw32- \ --host-cc=i686-w64-mingw32-gcc \ --enable-trace-backend=simple \ " echo -e "s2) $CMD\n......" $CMD echo "s3) Make......" make best Dong Hao Sent from YoMail for Gmail