Questions tagged [gdbserver]

GDB remote application debugging through gdbserver

GDB remote application debugging through gdbserver

415 questions
0
votes
1 answer

Eclipse: gdbserver doesn't find source files

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…
Joster
  • 359
  • 1
  • 4
  • 19
0
votes
1 answer

How to automate gdb core dumping when receiving signal

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…
jjimenezg93
  • 162
  • 4
  • 16
0
votes
1 answer

gdbserver doesn't step correctly ( arm cortex a9 ) in Eclipse

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…
patrick
  • 95
  • 2
  • 8
0
votes
1 answer

Missing gdbserver binary in OpenWRT/LEDE

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) →…
P. Pedrycz
  • 41
  • 1
  • 9
0
votes
0 answers

Analyze core dump from CentOS using convenient IDE like QtCreator or Eclipse

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…
Viktor
  • 392
  • 2
  • 8
0
votes
0 answers

gdbserver on arm7hf gdb-multiarch on ubuntu with stripped symbol file

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…
Erock 634
  • 591
  • 3
  • 18
0
votes
0 answers

gdb No such file or directory error

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…
Alaa M.
  • 4,961
  • 10
  • 54
  • 95
0
votes
1 answer

Using gdbserver on remote device w/ a single serial connection?

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…
laughingcoyote
  • 259
  • 2
  • 9
0
votes
0 answers

Segmentation fault - GDB Debugging

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…
Chinna
  • 156
  • 1
  • 1
  • 11
0
votes
1 answer

error for gdbserver

Anybody knows the error message? gdbserver[949] segfault at 81c ip 0000081c sp bfeef918 error 4 in gdbserver [8048000+1c0000] segmentation fault Thanks,
user448410
  • 15
  • 1
  • 4
0
votes
2 answers

Android: No debugging symbols found in gdbserver

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…
user3763113
0
votes
1 answer

Remote gdb stops at every event

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,…
Libor Tomsik
  • 668
  • 7
  • 24
0
votes
0 answers

How to set breakpoint in a specific program when they are many loaded at the same address?

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…
Mahouk
  • 902
  • 9
  • 28
0
votes
1 answer

loading shared library into gdb does not work

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…
user3326293
  • 817
  • 1
  • 14
  • 37
0
votes
1 answer

Anyway for my c++ application to communicate with GDB?

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…
John Doyle
  • 898
  • 2
  • 9
  • 22