I would like to attach to a remote gdb-server which is running under linux. Actually it is an ARM process which is running in a QEMU under a linux host.
And I use Visual studio code for the debugging under windows.
Is it generally possible to do…
Currently I'm debugging my stm32 via st-linkv2 with st-util and arm-none-eabi-gdb tools.
I launch st-util as server for gdb on port 4242.
I lanch arm-none-eabi-gdb as client on the same port.
This work well and I can debug with the classic gdb…
I understand that QEMU built-in gdbserver can be used to debug kernel or bare-metal program. But I am curious that if it is possible to use QEMU built-in gdbserver to debug a program running in guest os in QEMU.
I have a C application running on embedded ARM M4; it works correctly.
I use Kinetis Design Studio, which uses gdb, as my debugger on Windows.
For most of my .obj, I can single-step the C source. However, for a few files, although I can use…
I have been trying to remotely debug an application which can only be run on a specific server because of hardware limitations. To normally run the program I would login to an ssh shell with X.11 forwarding enabled (-X option of ssh) and its QT…
I am using this script to compile my program and to debug it on my embedded board:
#!/bin/bash
# Recompile:
make clean
make
# Erase memmory and upload the program:
{ echo 'connect';
echo '';
echo '';
echo '';
echo '';
echo 'erase';
…
During usage of ConqueGDB I noticed that it sends following commands:
server backtrace
server break
server
I'm wondering what is the purpose of the server keyword here. Alone it returns:
Undefined command: "server". Try "help".
With…
I cross compiled a linux targeted app on a cygwin host. The program runs ok on the target and also with gdbserver. However, when I try to step through the program it crashes whenever I step into a shared library function. The backtrace gdb prints…
I'm trying to cross compile a version of GDB server from source for the MIPS32 architecture. I'm using an x86_64 machine.
I'm using the Buildroot uClibc compiler for MIPS (mips-buildroot-linux-uclibc-gcc).
From the GDB server directory I run the…
I have been trying to debug my xv6 locally (It is a 32-bit code). But I am working on a 64 bit machine and my gdb is 64 bit. Whenever I type
make gdb
I encountered the following error
+ target remote localhost:26000
.gdbinit:23: Error in sourced…
I'm trying to get the remote debugging to work on Visual Studio 2017 in Windows. I'm using the gdbserver option in Visual Studio project properties. The project is a make file project created in Visual Studio 2017. I'm getting following error in the…
I have a sample c++ application which builds and runs fine in a Red Hat installation.
I wanted to have the source code of this application in my windows machine so I can create a Visual Studio project and use Visual Studio 2017's new features which…
I am trying hard how in gdb we can trace functions call but not able to achieve so - is there a way in GDB that when I run the executable I can print/trace functions name currently executing?
I wonder if it's possible to debug jni library from CLION
My setup:
I have remote server with running java application which internaly calls native library.
On the server I started gdbserver instance attaching to existing process:
gdbserver --attach…
I have a console application written in C++ which I develop inside Qt Creator. I'm using toolchain and I've set in cmake CMAKE_SYSROOT, CMAKE_CXX_COMPILER to point to those from that toolchain. Also, I've added -g and -O0 to gcc. Then, I've made a…