Questions tagged [gdbserver]

GDB remote application debugging through gdbserver

GDB remote application debugging through gdbserver

415 questions
0
votes
0 answers

How to access target system (32 bit Linux) which is connected to my PC via USB Cable?

I want to run gdbserver on the target board. But I am unable to connect the target system from my VM Box (x86_64 bit). Can you please help me? In the target board, I am connecting gdbserver by localhost:5039 and it's listening on that port. How to…
0
votes
1 answer

Eclipse/CDT Pretty Printing With Remote Debugging

I'm trying to add pretty printing for STL objects in my Eclipse/CDT (Mars release) to remote debug application running in an ARM board. I can succesfully debug my application using Eclipse and gdbserver. For this purpose I use the following gdbinit…
bbouzan
  • 31
  • 8
0
votes
1 answer

Remote GDB debugging - can't acces source file but no errors printed

I'm trying to remotely debug an application using GDB command line. Path in which gdb is run on the PC is the build path of the application. It contains the amixer executable and amixer.c. The code is compiled with -g -O2 parameters. The debug…
TheMeaningfulEngineer
  • 15,679
  • 27
  • 85
  • 143
0
votes
2 answers

LD_LIBRARY_PATH with GDB on Xeon Phi

I am currently trying to debug a native application for the Xeon Phi using the GDB version provided by Intel (gdb-mic). When I run the program while logged in onto the Phi, it works provided I set LD_LIBRARY_PATH=/tmp (where I previously transferred…
nadeaud
  • 61
  • 5
0
votes
0 answers

Unable to find dynamic linker breakpoint function

I am using eclipse and arm-linux-gnueabihf to compile, deploy and debug remote c++ applications on BeagleBone Black. When debbuging, I am getting following error: warning: Unable to find dynamic linker breakpoint function. GDB will be unable to…
Łukasz Przeniosło
  • 2,725
  • 5
  • 38
  • 74
0
votes
1 answer

Print in program works but gdb says "Cannot access memory at address ..."

I have the following code: struct A { int fieldA; int fieldB; }; A *a = (A *) ptr; cout << a->fieldA; // Works fine cout << a->fieldB; // Works fine ptr is a char * object that points to somewhere in memory. The object that is stored in…
user2233706
  • 6,148
  • 5
  • 44
  • 86
0
votes
1 answer

How are SW breakpoints handled by gdb-stub/server

How are SW breakpoints handled (conceptually) by gdb stub or server (I assume client stub and server handle them in pretty much same way)? I'm interested in a 'bare metal' target where the gdb stub/server runs, and both breakpoints and single…
turboscrew
  • 676
  • 4
  • 13
0
votes
1 answer

How to get the latest version of gdb in android-ndk?

I have the weird issue when debugging with ndk-gdb (v7.6) which partially described here, and one of my ideas to resolve it was to update to the latest gdb version that is currently 7.9. I've downloaded the latest Android-ndk (which is currently…
Viktor Malyi
  • 2,298
  • 2
  • 23
  • 40
0
votes
1 answer

gdbserver 7.9 missing from http://ftp.gnu.org/gnu/gdb/gdb-7.9.tar.gz

I downloaded the gdb-7.9 tarbell from : http://ftp.gnu.org/gnu/gdb/gdb-7.9.tar.gz After running running configure/make/make install , I notice that the gdbserver binary is missing : [root@machine bin]# ls gcore gdb Whereas if i download the 7.8…
user1146952
  • 31
  • 1
  • 2
0
votes
2 answers

how to make gdbserver accept more than one connection?

I'm debugging an operating system (kernel + one user space application) within qemu, using gdb connected to gdbserver. Since i'm in presence of two binaries, i would like to connect to gdbserver firstly with the kernel binary, and secondly with the…
Mahouk
  • 902
  • 9
  • 28
0
votes
1 answer

How to complie a static gdbserver

I've make some changes to the source code of GDB, so I'd like to compile a new executable. I've successfully compiled a new GDB, but when it comes to compile gdb-server, it fails, I need to make LDFLAGS = -static in Makefile because Android does not…
fding
  • 424
  • 1
  • 5
  • 18
0
votes
1 answer

Debug gdb setup

I have a situation in which I'm remotely debugging an application which uses a static library. Both the static library and the application are built with the -g flag, and there are debug entries shown on objdump -t lib.a | grep debug. However, the…
TheMeaningfulEngineer
  • 15,679
  • 27
  • 85
  • 143
0
votes
1 answer

GDB on subtle lines when next or step

I use GDB to debug an embedded linux target board. On target board gdbserver is running the stripped binary application. On PC side I run application which has debug symbols attached. From PC via ethernet connection I do "target remote ip:port" and…
zenprogrammer
  • 623
  • 1
  • 7
  • 20
0
votes
1 answer

ST-UTIL & STM32F0DISCOVERY: Failed to find an stlink v1 by VID:PID

Apologies for a stupid question, I am fairly new to this field and I am not yet comfortable with all this. I am trying to use GDB server ST-UTIL tool and GNU ARM compiler with STM32DISCOVERY board (link), and, so far, I'm having a miserable…
Lyn
  • 23
  • 1
  • 8
0
votes
1 answer

Why gdb needs a memory map of ram and rom of the target for debugging

please can some one guide me why gdb needs a memory map of RAM and ROM of the target for debugging. If we enable verbose console in gdb then we can see some traces clearly showing: and also fro the ROM. Is this memory used for code placement or…
sbunny
  • 433
  • 6
  • 25