I'm debugging a C project in eclipse CodeSourcery IDE. The project runs in a linux-arm device so I cross-compile and debug it with gdbserver. My project consist of a main program and some shared libraries, which i compile with -g3 tags (tried -g…
I want to avoid the situation in which you forget to generate the core dump file after application got SIGSEGV, you leave gdb and you lost the information about that crash.
What I'm looking for is the analogue to commands (for breakpoints), so I can…
gdb seems to get in a bad state after trying to step a line or two, after hitting a breakpoint. Is there something specific I can do in Eclipse to fix this?
Repro:
Start debug session in Eclipse, attached to remote target
Set a breakpoint in…
I cloned LEDE repository from github and wanted to debug my simple program on router. To do this, I configured LEDE build (like here: https://wiki.openwrt.org/doc/devel/gdb) using menuconfig:
Advanced configuration options (for developers) →…
I have a program written in C++. It's built on my dev machine with Ubuntu, and also on dev CentOS. Then binary from dev CentOS runs on live server. Where it crashed and now I have core dump. I'm able to get the dump on my dev CentOS and examine it…
I have a C++ application running on an embedded platform arm7hf arch. The binary has its symbols stripped by using objcopy (man page steps for objcopy flag --only-keep-debug 3 steps). The stripped symbols are saved in a x.debug file.
I have the…
Update: found a workaround - explained at the bottom
I'm trying to remote debug my program via a serial port.
On the target machine (arm, linux) (connected to host machine (Windows) via serial-to-usb) I connected via Putty and looked for ttyS* in…
I'm debugging an embedded application that runs in a Linux environment on a remote target. The only usable interface to the board is a single serial interface. Right now that's hooked up /bin/sh on init. I'm connecting with minicom, (re-)loading my…
I am working in eclipse plugin development project. The product in which I am working has GDB debugging. using our product users debug there c projects.
Recently we migrated our project from 3.x to 4.0. After this migration GDB debugging is not…
I try to attach a process on my rooted Android and create corefile with GDB but it can't create a gcore file because the symbols could not be found.
on my phone, i open Terminal app and i input
su
to grant root access in Terminal. i input
dumpsys…
I'm having remote ARM Linux box which I need to debug.
The server is started:
gdbserver :12345 ./my_app
The client:
./arm-am3354-linux-gnueabihf-gdb ~/
(gdb) target remote dev_r:12345
(gdb) continue
Then I'm trying to pause the app with Ctrl+C,…
I am debugging a system which consist of a kernel and some user programs and I want to trace one of these user programs. The problem is they are all loaded at the same virtual address; so that when I set a breakpoint at an address; it gets hit when…
I am running into some issues loading shared library files into gdb. I have tried every permutation I can think of. I have also tried the file command suggested online, but I still can not load the libraries...
(gdb) file…
I would like read a core-dump file dumped with gcore.
However, I would like to read a coredump file in my c++ application, not with gdb terminal command.
For instance, I have a executable program 'testEx' and it is killed by some reason then…