brechtsanders / winlibs_mingw

winlibs standalone build of GCC compiler and MinGW-w64
939 stars 44 forks source link

gdb -tui mode does not work properly #131

Closed ghost closed 1 year ago

ghost commented 1 year ago

When I verified a samle c program with gdb -tui mode, I found that it does not work properly. The error code is 0xc0000142. The screen gif for reference. error.gif The error info. for reference. error-2.jpg

gdb version info. for reference.

(gdb) show configuration This GDB was configured as follows: configure --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-auto-load-dir=$debugdir:$datadir/auto-load --with-auto-load-safe-path=$debugdir:$datadir/auto-load --with-expat --with-gdb-datadir=/R/winlibs64ucrt_stage/inst_gdb-11.2/share/gdb/share/gdb (relocatable) --with-jit-reader-dir=/R/winlibs64ucrt_stage/inst_gdb-11.2/share/gdb/lib/gdb (relocatable) --without-libunwind-ia64 --with-lzma --without-babeltrace --without-intel-pt --with-mpfr --with-xxhash --with-python=D:/Prog/winlibs64ucrt_stage/custombuilt/share/python --with-python-libdir=/d/Prog/winlibs64ucrt_stage/custombuilt/share/python/lib --without-debuginfod --without-guile --enable-source-highlight --with-separate-debug-dir=/R/winlibs64ucrt_stage/inst_gdb-11.2/share/gdb/lib/debug (relocatable) --with-system-gdbinit=/R/winlibs64ucrt_stage/inst_gdb-11.2/share/gdb/share/gdb/gdbinit (relocatable)

("Relocatable" means the directory can be moved with the GDB installation tree, and GDB will still find it.) (gdb)

brechtsanders commented 1 year ago

Any chance you can get the error popup in English?

I also found https://github.com/msys2/MINGW-packages/issues/10434 which mentions the same error + a workaround. Can you try that?

Biswa96 commented 1 year ago

This gdb issue has been fixed with the ncurses update. See the linked issue in above comment.

ghost commented 1 year ago

The provided command cannot be implemented the“ gdb - ui” under the new command windows. The “gbd -ui” can only be run in the old command window mode or the third-party command. We look forward to new updates to solve this problem. Thank you。