我正在Windows上运行Eclipse,以开发在远程Linux系统上构建和测试的C代码。目前,该代码从未在Windows上编译过。
我能够使用CDT在gdbserver下在Linux目标上开始远程进程,然后从Windows主机附加gdb。但是,gdb立即失败,错误如下:
warning: A handler for the OS ABI "GNU/Linux" is not built into this configuration
of GDB. Attempting to continue with the default i386 settings.
[...]
Re
我正在使用gdbserver从嵌入式设备进行调试:
./gdbserver HOST:5000 /home/test_app
在我的PC中,我以这种方式执行gdb:
arm-none-linux-gnueabi-gdb test_app
一旦应用程序开始执行,我就会收到想要调试的Segfault,但是不可能知道是哪一行产生了它:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 715]
0x31303030 in ?? ()
(gdb) bt
#0 0x31303030 in ?? ()
#1
我已经将gdb和gdbserver安装在一个angstrom linux ARM板上(具有外部访问权限),并且正在尝试在本地计算机上对共享库进行源代码级调试。目前,如果我在设备中使用ssh,我可以运行gdb,并且能够使一切正常工作,包括设置一个断点、命中它和进行回溯。
当我尝试使用gdbserver并在我的主机上运行gdb以完成同样的事情时,我的问题就出现了(最终我想让它在eclipse中工作,但是gdb现在已经足够好了)。
我注意到,当我在服务器上使用gdb并运行“信息共享”时,它正确地加载符号文件(syms read : yes for all),然后我就可以调试这些文件了。我在远程使用“
我正在使用Windows Subsystem for linux使用VS Code来调试'C‘代码。我基本上是想用一个基于linux的编译器来编译“C”代码。我已经在Visual Studio Code中将默认终端设置为'WSL‘。单击调试按钮后,我收到以下错误消息:“Unable to start debubug.the value of miDebuggerPath is invalid”我确认'gdb‘已安装在Windows Subsystem for Linux中,并且它的可执行文件(ELF文件)位于'/usr/bin/gdb’位置
这是m launch
我不擅长英语,对此我很抱歉。现在,有一个关于我何时用GDB调试samba的问题。
# gdb /usr/local/samba/sbin/smbd
GNU gdb Red Hat Linux (5.2.1-4)
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it
我想调试linux内核,它使用gdb运行在qemu上。我使用以下命令在qemu上运行内核。
qemu-system-i386 -kernel ../bzimage -initrd ... / *.image -nographic
--append "console =ttys0 init =/init" -s -S &
now i want to run gdb
gdb vmlinux
(kernel symbols are loaded)
gdb target remote:1234
now i am getting below error
remote:123