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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…
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…