Questions tagged [gdbserver]

GDB remote application debugging through gdbserver

GDB remote application debugging through gdbserver

415 questions
0
votes
1 answer

How to debug an ARM process which is running inside QEMU (with a gdb-server) under linux (remotely) but using the windows host?

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…
HmT
  • 856
  • 8
  • 14
0
votes
0 answers

GDB front-end for stm32 debugging

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…
jota
  • 23
  • 7
0
votes
1 answer

Is it feasible to utilize QEMU built-in gdbserver to debug a program running in the guest OS in QEMU?

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.
Mahler
  • 394
  • 4
  • 14
0
votes
1 answer

cannot single-step source but assembly single-step and breakpoints work ok

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…
Bob
  • 4,576
  • 7
  • 39
  • 107
0
votes
1 answer

Remote debuging with gdbserver for application with X (qt) environment

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

Weird binary signs when using pipe

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'; …
71GA
  • 1,132
  • 6
  • 36
  • 69
0
votes
1 answer

GDB "server" command

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…
woockashek
  • 1,588
  • 10
  • 25
0
votes
2 answers

gdb remote debugging - program crashes when stepping into a shared library

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…
Dvir Yitzchaki
  • 487
  • 4
  • 13
0
votes
1 answer

Buildroot Cross Compiling GDB Server for MIPS32

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…
CS Student
  • 1,613
  • 6
  • 24
  • 40
0
votes
4 answers

Use of target remote localhost:26000

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…
rammanoj
  • 479
  • 8
  • 26
0
votes
0 answers

Error when remote debugging a C++ app running on Linux machine with gdbserver

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…
warunanc
  • 2,221
  • 1
  • 23
  • 40
0
votes
0 answers

Error when Visual Studio Remote Debugging with GDB

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…
warunanc
  • 2,221
  • 1
  • 23
  • 40
0
votes
0 answers

gdb - how to trace functions during execution

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?
Programmer
  • 8,303
  • 23
  • 78
  • 162
0
votes
1 answer

Debug jni library from clion using gdbserver

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…
Ruslan Akhundov
  • 2,178
  • 4
  • 20
  • 38
0
votes
1 answer

GDB remote debugging from Qt Creator(host) on Raspberry Pi 3 (target)

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…