在Linux和Mac中,我可以使用stepi和nexti来调试应用程序,而不需要调试信息。
在Mac上,gdb显示了在库中调用的函数,尽管有时会在每条stepi指令中提前几条汇编指令。
在Linux上,当我步入动态库时,gdb会迷路。例如,对于put(),put()中有三个汇编指令,一旦gdb到达0x080482bf处的跳转,它就会失败,并显示消息"No function contains counter For selected frame“。
0x080482ba in puts@plt ()
(gdb) disassemble
Dump of assembler code for
我正在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
我不擅长英语,对此我很抱歉。现在,有一个关于我何时用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
使用Qt Creator 2.7.1和Qt 4.8.4,我创建了一个Qt库和一个简单的Qt应用程序,可以动态链接到这个库。我正在尝试远程部署和调试我的应用程序,并在调用库函数时单步执行它们。我可以成功地设置断点和远程调试,但不能使用调试器( gdb )单步执行我的库函数。当我第一次在调试模式下使用QtCreator远程启动我的应用程序时,我遇到了以下警告:
Could not load shared library symbols for 7 libraries, e.g. libcustom-stuff.so.1.
Use the "info sharedlibrary" c
我正在尝试调试一个应用程序,该应用程序是使用GDB从多个共享库构建的。
启动全球开发银行:
prompt$ gdb
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6)
Copyright (C) 2010 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 redist
谁可以指导如何使用GDB调试器在Linux上调试JNI代码(如果可能,请建议其他选项)。
-My JNI project when running on Linux is leading to a JVM crash.
-The CPP code has been compiled into .so files.
-I run the project like this : *java xyz.jar -commandline_args_to_project*.
我已经安装了Gdb,但我不知道如何使用它来调试项目。另外,我是否有必要使用-g选项t调试.so文件来编译.
我试图在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
我正在调试一个Linux程序,它链接了两个共享库(liba.so和libb.so)。每个库在同一个文件main.cpp中都有相同的符号Journal。gdb只从其中一个库中查找并打印该符号。如何从另一个库中查找并打印该符号?如何打印特定共享库中的所有符号?
(gdb)info var Journal
File ../main.cpp:
SJournalEntry Journal[64];
(gdb) info address Journal
Symbol "Journal" is static storage at address 0x7ffff7febee0.
(gd