我使用GDBServer在ARM11处理器上进行远程调试。软件断点运行良好,但我们使用"hbreak test.c:5“来设置硬件断点,CPU永远不会停止。
GDB版本: 7.3.1
目标CPU: ARM11
操作:
arm-linux-gdb ./main
(gdb) target remote 192.168.0.1:2345
(gdb) hbreak test.c:5 => HW breakpoint, it doesn't work. but if change to "b test.c:5", it will works
(gdb) c
我正在使用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
我一直试图让内核在QEMU中执行,使用GDB对其进行远程调试,但我无法通过或设置断点。以下是GDB会话:
linux (master *) $ gdb vmlinux
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
[LICENSE TEXT]
The target architecture
我试图在x86_64 suse上远程调试32位应用程序,但是得到了这个“远程注册错误格式化”错误。
我启动gdbserver时侦听端口12345 (:12345 my_prog)
这是一个错误:
$ gdb
GNU gdb 6.6
Copyright (C) 2006 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 under
我正在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
我用以下方法为arm编译了gdbserver 7.6:
cd /gdb-7.6-src/gdb/gdbserver
./configure --target=arm-linux --host=arm-linux
make CC=/path/to/cross-compiler-gcc
然后,我为arm编译了gdb 7.6,并使用:
cd /gdb-7.6-src/
./configure --target=arm-linux --prefix=/opt/gdb-arm/install/
make && make install
我用以下方法编译了我的琐碎应用程序:
/path/t
我将gcc编译器下载到我的linux环境中,并使用ssh进入vscode,在我的windows机器上模拟linux环境。我创建的编译文件和我的教授给我的makefile运行得很好,但是每当我使用我的教授还提供的gdb调试器进行调试时,调试器挂起,不允许我使用断点单步执行代码。我提供了调试器的代码以及cpp属性和任务文件。 调试器代码: {
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For
我得到了
Stopped due to shared library event (no libraries added or removed)
Loaded '/lib64/ld-linux-x86-64.so.2'. Symbols loaded.
Stopped due to shared library event:
Inferior loaded /lib/x86_64-linux-gnu/libc.so.6
Loaded '/lib/x86_64-linux-gnu/libc.so.6'. Symbols loaded.
当尝试在VSCode上调
我正在尝试调试一些应用程序,我想使用下面的命令传递一些数据,但是我得到了错误。
....
....
(gdb) x/20x $esp
Value can't be converted to integer.
(gdb)
我的GDB版本如下:
#gdb -v
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
我不擅长英语,对此我很抱歉。现在,有一个关于我何时用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