我正在尝试使用gdb调试Linux,我用"compile kernel with debug info“编译了内核。一旦内核编译完成,我正在尝试提供GDB文件vmlinux (运行上面的命令会出现下面的错误)
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Reading symbols from file...(no debugging symbols found)...done.
"/home/Linux/vmlinux" is not a core dump: File format not recognized
我不擅长英语,对此我很抱歉。现在,有一个关于我何时用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应用程序,这是显示一个WebView (基于webkit)。我正在尝试使用gdb来调试它。当我通过gdb运行应用程序时,它几乎立即崩溃。该应用程序在gdb之外运行时不会出现问题。 崩溃的原因是: Thread 1 "myapp" received signal SIGILL, Illegal instruction.
0x4a4d9a88 in ?? () from /usr/lib/libcrypto.so.1.0.2 由于错误是SIGILL,是否有可能是gdb从错误的路径加载lib? 这个应用程序非常简单,只是在特定的URL上显示一个WebView: ui
我正在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
我试图在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终端中,我输入了为什么(这个命令不存在)的命令,并得到了这个响应。
No command 'why'found, did you mean:
....
why: command not found
为了获得退出代码,我输入了以下内容:
$?
并得到了回应:
127: command not found
我假设,当大多数命令运行时,它们会返回代码。现在,对于gdb,在执行下一行正在调试的C程序之后,它是否返回任何代码?如果是这样,我如何获得这些代码(类似于$的命令)?在gdb中?-我还没有在man页面中找到这样一个命令的文档。
*在任何情况下,gdb都应该知道(并可
我在windows上使用eclipse indigo作为IDE来为嵌入式linux环境开发一个应用程序。该工具链位于linux环境中,并且我没有windows的本机版本。我想使用putty连接到远程目标上运行的GDB。我已经将此方法用于远程构建。
在尝试调试时,eclipse要求提供一个可执行文件。它将不接受空行或随机可执行文件,并返回错误"Program is not a recognized executable“。有没有一种方法或调试设置可以让我在没有可执行文件的情况下以这种方式使用GDB/Eclipse?