Questions tagged [gdbserver]

GDB remote application debugging through gdbserver

GDB remote application debugging through gdbserver

415 questions
7
votes
2 answers

Remote gdb debugging does not stop at breakpoints

I'm having problems with debugging my modified Linux-3.11.0 kernel. For debugging the code, I use: GDB 7.6 QEMU 1.6.5 Linux kernel 3.11.0 My system has Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz running Ubuntu 12.10 I compiled the modified kernel…
Noamiko
  • 729
  • 11
  • 19
6
votes
1 answer

Unable to debug with gdb under Android and NDK, starting Gdb crashes App

I'm having problems trying to debug native code with the Android NDK. While the App is running I launch ndk-gdb, and the result is that gdb loses the connection with the device and the app on the device crashes. The very same thing happens with both…
tracker74
  • 61
  • 1
  • 4
6
votes
1 answer

VS Code start gdbserver

I am trying to write a launch configuration for VS Code that can start gdbserver as a preLaunchTask. When I start debugging, everything just stalls when gdbserver says "Listening on port XXXX" I found many examples online of methods for other…
mwso
  • 93
  • 7
6
votes
1 answer

Using Visual Studion Code to connect to the gdb-server of the OP-TEE which is running in the QEMU

I am setting up the op-tee in ARM-64. and I'm wondering if it is possible to debug it using visual studio code running under ubuntu 18.04. So far I was able to compile and run the op-tee in QEMU. and also being able to connect the gdb-server using…
HmT
  • 856
  • 8
  • 14
6
votes
2 answers

gdb remote debug cache remote target

I'm using CLion in order to connect to remote gdbserver which is run on remote machine (via ssh port forwarding). I't works quite well except one thing, it downloads all linked dependencies every time I connect to gdbserver: So, I could not find…
Ivan Talalaev
  • 6,014
  • 9
  • 40
  • 49
6
votes
2 answers

how to close gdb connection without stopping running program

Is there a way to exit from gdb connnection without stopping / exiting running program ? I need that running program continues after gdb connection closed.
RedArrow
  • 588
  • 8
  • 18
6
votes
1 answer

gdb remote debugging. Implement a fake gdbserver stub. After several requests and response, got a warning:invalid remote reply

For the needs of project, I wrote a simple java socket program to implement a "fake" gdbserver stub. Thus, support the minimum number of gdb RSP commands:g,G,m,M,c and s. For other commands, just response with "$#00". According to the manual of gdb,…
Daniel
  • 61
  • 3
6
votes
1 answer

Using Eclipse to remotely debug with gdbserver

Does anyone know why I can't use Eclipse CDT to remotely debug a device when I manage it on the command-line with gdb using target remote command? I do get a warning when connecting, but other than that it seems to work fine. With Eclipse I should…
Makis
  • 12,468
  • 10
  • 62
  • 71
5
votes
3 answers

GDB with ECLIPSE GUI over remote server?

I would love to debug my software with ECLIPSE as front end to GDB. Our build set up as follows. Linux server with code base Windows accessing code base via Samba (Eclipse IDE) Software is built on Linux server with makefiles (No ECLIPSE…
Kamath
  • 4,461
  • 5
  • 33
  • 60
5
votes
0 answers

howto redirect tty in a gdb/gdbserver setup

I have a remote debugging setup with gdb (on a host machine) and a gdbserver (on a target machine). The gdb command I am using is something like target remote | ssh -T user@192.168.222.111 gdbserver - app_to_debug arg1 arg2 arg3 This works fine and…
feddischson
  • 136
  • 1
  • 8
5
votes
1 answer

GDBServer not starting or listening on port when run inside of Docker

I am trying to compile a "hello world" Rust program inside a Docker container and then remotely debug it using GDBServer and CLion, but I don't think gdbserver is starting correctly. When I start it, I don't get the "process started" and "listening…
Apollo
  • 945
  • 2
  • 9
  • 24
5
votes
0 answers

gdbserver - glob could not process pattern '(null)'

gdbserver localhost:2159 test_app.exe Whenever I type this kind of command I got this kind of message: glob could not process pattern '(null)'. Also, it doesn't matter which kind of terminal/CLI I use on my Windows machine - the result is always…
user9937314
5
votes
2 answers

Stall when debugging with gdbserver in VSCode - "The preLaunchTask 'docker gdb' cannot be tracked."

Summary I'm trying to debug a C++ program within a docker image (Ubuntu), while using VSCode as an IDE on my host system (OS X). After various tinkering with gdbserver and VSCode tasks, I'm now able to successfully run the debugger, but each time I…
5
votes
1 answer

Install GDBserver in OSX

I can use brew to install GBD or download and compile GDB from source but either way GDBserver does not get installed. How can I get GDBserver running in OSX? Cheers
user1618465
  • 1,813
  • 2
  • 32
  • 58
5
votes
0 answers

Android remote gdb output is painfully slow

I am debugging C++ library for Android with GDB (gdbserver + gdb on host), and I've noticed that gdb output is very very slow. E.g. application has about 15 threads, and when I type thread apply all bt it takes 15-20 seconds to output all…
Aleksei Petrenko
  • 6,698
  • 10
  • 53
  • 87
1 2
3
27 28