Questions tagged [gdbserver]

GDB remote application debugging through gdbserver

GDB remote application debugging through gdbserver

415 questions
5
votes
2 answers

How to install gdbserver package on Alpine Docker image?

I've been trying to install gdbserver package on Alpine Docker image (https://hub.docker.com/_/alpine/) apk add gdbserver was giving me this: ERROR: unsatisfiable constraints: gdbserver (missing): required by: world[gdbserver] At the same time,…
user3346684
  • 111
  • 1
  • 3
5
votes
1 answer

Remote debugging of pure C program with GDB

I am trying to remotely debug a pure C program on an Android device. The Android device (target) is connected via USB to a host machine. What I did was: Copied from the target the following files: /system/lib, /vendor/lib, /system/bin/app_process,…
Paschalis
  • 11,929
  • 9
  • 52
  • 82
5
votes
2 answers

What is the right way to deploy files for a remote debug launch in Eclipse CDT?

My situation: I'm currently trying to use Eclipse CDT as a replacement for a proprietary IDE. I have an enterprise application, which consists of an executable and a lot (30+) of shared library modules. The application is targeted for an embedded…
5
votes
1 answer

How to do a remote debug using GDB from Qt Creator?

I'm working on a Embedded Linux application and I would like to use GDB to debug it. The problem is that, although the Kit configuration seems fine (the Debugger option is correctly pointed to the GDB correspondent to the device's GCC - device is a…
Momergil
  • 2,213
  • 5
  • 29
  • 59
5
votes
2 answers

How to load shared libraries symbols for remote source level debugging with gdb and gdbserver?

I've installed gdb and gdbserver on an angstrom linux ARM board (with external access), and am trying to get source level debugging of a shared library working from my local machine. Currently, if I ssh into the device, I can run gdb and I am able…
Joe
  • 163
  • 2
  • 13
5
votes
1 answer

Qt Creator 2.7.1 and Qt 4.8.4 Cannot Remotely Debug Library

Using Qt Creator 2.7.1 and Qt 4.8.4, I made a Qt library and a simple Qt app that dynamically links against this library. I am attempting to remotely deploy and debug my App and step into my library functions when I call them. I can successfully set…
PhilBot
  • 748
  • 18
  • 85
  • 173
4
votes
0 answers

Remote debug slow, how i can filter what libraries are loaded

I am trying to debug our code on remote server. Our code base is large and the bandwidth to the server from our office is quite slow. It is impossible to debug (each step takes from 10 seconds to few minutes). The project is based on cpp, with CMake…
Ilia
  • 534
  • 3
  • 21
4
votes
2 answers

gdb fails to run 'elf64-x86-64' format on gdbserver (Rust x64)

I'm trying remote debug a Rust executable using gdbserver on the remote machine and gdb on the local machine. I set up a Vagrant VM (bento/ubuntu-18.04) and start a gdbserver: $ vagrant ssh $ uname -a Linux dev 4.15.0-121-generic #123-Ubuntu SMP…
Dentrax
  • 574
  • 8
  • 22
4
votes
2 answers

How to use DDD for kernel debugging of a local Qemu virtual machine?

I want to use GNU DDD (gdb graphic shell) to debug Linux kernel, that is running (in some distro) inside qemu. I have vmlinux image outside of Qemu, and launch Qemu with -s -S, so it acts like gdbserver (stops at start and waits for debuging…
kagali-san
  • 2,964
  • 7
  • 48
  • 87
4
votes
1 answer

How to debug an Dalvik executable on Android with GDB?

I want to debug an android application using GDB, I do not have the source code and I am used to GDB. Would anyone know how to do that? It seems I would need to attach to the process of the application and use gdbserver but I have not really found a…
Bookix
  • 115
  • 1
  • 8
4
votes
0 answers

Eclipse debug problem - no source available

I have problem in Eclipse c/c++ with debugging. On some, not all, functions when I put break point it shows me no sorce available for that function ( example no source available for test() ). That function is static and I have source of that file in…
Damir
  • 54,277
  • 94
  • 246
  • 365
4
votes
1 answer

SysTick interrupt does not fire if GDB attached before it is enabled

I have an ATSAMD21E18A micro that I am using with semi-hosting. In order for the semi-hosting to work, GDB needs to be "attached" before the first bkpt instruction. On the other hand, I have inexplicably found that the SysTick interrupt will not…
Akh
  • 632
  • 1
  • 6
  • 15
4
votes
1 answer

How do I perform a remote gdb session on a PC for ARM gdbserver WITH GDB GUI frontend?

I am using Ubuntu 16.04 on x86_64 workstation, and I'm cross-compiling a small demo program in C++, and deploying it to an embedded linux target running ARM architecture (environment-setup-cortexa9hf-neon-poky-linux-gnueabi,…
adowdy
  • 329
  • 2
  • 16
4
votes
0 answers

Cross arch remote debugging with gdbserver

I am trying to remotely debug a Hello World program that was cross-compiled for mipsel but I am being unsuccessful in using gdb/gdbserver. My target architecture is: Linux debian-mipsel 2.6.32-5-4kc-malta #1 Tue Sep 24 01:20:35 UTC 2013 mips…
Patrick
  • 140
  • 6
4
votes
2 answers

Visual Studio 2017 Linux remote debugging (gdbserver)

After I installed gdbserver on my remote machine (Ubuntu 16.04.4 LTS), I tested the following c++ code by making a "cross-platform console application (linux)" project in Visual Studio 2017: #include int main() { printf("hello from…
Simon
  • 41
  • 1
  • 4