gdborig.exe 已停止尝试从 eclipse 连接到 Javaw
gdborig.exe has stopped working trying to attach to Javaw from eclipse
我想使用 eclipse 来调试我正在编写的 JNI 应用程序的 C 代码。我遵循了一些教程并完成了以下操作:
- 在调试模式下启动 Java 程序
- 在调用 loadLibrary() 之前到达 Java 代码中的断点
- 运行 Eclipse 中的 "C/C++ attach to application" 调试配置,方法是将 javaw.exe 作为程序附加到
此时我得到一个错误 window "gdborig.exe has stopped working" 并且控制台输出如下:
GNU gdb (GDB) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
我有点卡住了,因为我看不到错误消息。
解决方法如下:
Debug Configurations>Select my configuration>Debug>"Select Other..." 在底部到 select “Use legacy Attach to process launcher
然后在调试器中,selected MinGW gdb
我想使用 eclipse 来调试我正在编写的 JNI 应用程序的 C 代码。我遵循了一些教程并完成了以下操作:
- 在调试模式下启动 Java 程序
- 在调用 loadLibrary() 之前到达 Java 代码中的断点
- 运行 Eclipse 中的 "C/C++ attach to application" 调试配置,方法是将 javaw.exe 作为程序附加到
此时我得到一个错误 window "gdborig.exe has stopped working" 并且控制台输出如下:
GNU gdb (GDB) 7.9.1
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
我有点卡住了,因为我看不到错误消息。
解决方法如下: Debug Configurations>Select my configuration>Debug>"Select Other..." 在底部到 select “Use legacy Attach to process launcher 然后在调试器中,selected MinGW gdb