我用以下方法为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
我尝试在我的ubuntu14.04 x86架构上安装用于交叉编译的gdb-ARM。我想用ARM架构在我的目标上调试一个程序。我尝试了这个命令:
sudo apt-get install gdb-arm-linux-gnueabi
我得到了这个错误:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package gdb-arm-linux-gnueabi is not available, but is referred to by anoth
我正在尝试从NDK样本运行HelloJni程序。我正在使用eclipse juno。Alos未生成".so“文件。但在ndk构建项目时,我在控制台中收到以下消息:
**** Build of configuration Default for project HelloJni ****
/home/ethics-14/android-ndk/ndk-build all
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 10 in ./AndroidManifest.x
在我的linux机器上,计算一个比FLT_MAX大的浮子会导致无穷大,如下所示:
sacha@sacha-XPS13:~$ gdb
GNU gdb (GDB) 7.6.1-ubuntu
Copyright (C) 2013 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
我使用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
我有一个基于飞思卡尔的iMX6q ARM Cortex A9处理器的ARM开发板。我还有一个要在电路板上调试的应用程序。开发板正在运行LTIB文件系统,其中包含未剥离的运行时库。在主机上,我也下载了一个Linaro工具链(具体来说是soft float 2012.04 ),它只有剥离的库。
我想告诉gdb (在主机上运行)使用一组不同的运行时库(未剥离的运行时库),而不是保存在主机上的LTIB文件系统的映像。
我该怎么做?
请求gdb给我
(gdb) show debug-file-directory
它会返回一些在我的主机文件系统上根本不存在的路径……
The directory where
我尝试将vmlinux加载到gdb中,并使用ARM核心模拟器。
但我不明白为什么我要用Undefined target command: "sim".
下面是shell的输出:
$ arm-eabi-gdb vmlinux
GNU gdb (GDB) 7.3.1-gg2
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software:
尝试使用gdb调试程序时,它无法在OPENSSL_cpuid_setup中报告SIGILL。
对于这个简单的代码,我有相同的行为:
#include <openssl/ssl.h>
int main()
{
SSL_library_init();
}
它编译和运行良好,但从遵循回溯的gdb报告开始。
Program received signal SIGILL, Illegal instruction.
0xb6b2eb40 in ?? () from /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0
(gdb) where