Questions tagged [gdbserver]

GDB remote application debugging through gdbserver

GDB remote application debugging through gdbserver

415 questions
9
votes
0 answers

How to pause gdb connected to remote target gdbserver

After connecting to a remote gdbserver via: target remote server:8888 or target extended-remote server:8888 it is not possible to pause the debugger after a continue using CTRL+c. Doing the same within a local gdb session on the same PID it…
msssm
  • 351
  • 1
  • 2
  • 10
9
votes
1 answer

Using gdb and gdbserver with a 32 bit binary on a 64 bit machine with Centos 5 complains about memory access or badly formatted data

I have two identical 64 bit Centos 5 machines, that are networked, and share their /home mount. I compile a simple Hello World program on one, and then I have figured out how to use gdb on one machine to remotely debug it running on the other…
Jerry Asher
  • 836
  • 2
  • 10
  • 23
9
votes
3 answers

NDK debugging with r9 works on W7/64 but gives me issues in XP

I've recently loaded the new Android dev tools, SDK 20130717 and NDK r9. Up to now I had the previous versions, working and debugging from within Eclipse just fine on both of my systems, a XP and a W7/64. Now, the W7/64 with the new tools does work…
9
votes
1 answer

Starting ddd with remote gdbserver

I'm debugging a program that runs on a remote target using ddd ( the remote gdbserver is running on localhost over port 1234 for example, but still acts as remote). I know you can connect to the gdbserver by opening ddd, then calling target remote…
Niv
  • 2,294
  • 5
  • 29
  • 41
8
votes
2 answers

Debugging native code in Android on the *device* (not emulator)

I followed this description for debugging native code in an Android app and it works when debugging on the emulator. When I want to debug on the actual device, at the point where I switch to the C/C++ debug configuration, Eclipse reports "Remote…
Dabbler
  • 9,733
  • 5
  • 41
  • 64
8
votes
1 answer

A way to have GDB load libraries from local sysroot and remote gdbserver

When remote debugging using gdbserver, I'd like to get gdb to load some shared libraries of the programm being debugging from the local sysroot, but also allow download feature from gdbserver to load others, which are not present in the sysroot. It…
TrentP
  • 4,240
  • 24
  • 35
8
votes
3 answers

Android NDK Debugging

The Android NDK documentation doesn't seem all that clear to me as to what sequence of commands you run to get debugging information into, and out of the ndk-gdb executable which is provided. If there is a format for what lines to break on, and in…
Kalen
  • 3,106
  • 8
  • 29
  • 42
8
votes
3 answers

How to observe aarch64 system registers in QEMU?

I have some baremetal AARCH64 software running in QEMU. I connect GDB to it as a remote target. GDB multi-arch shows general purpose registers from x0 to x30, the SP, and PC. However, I can't find a way to access the system registers to inspect…
Jon Bovi
  • 91
  • 1
  • 4
8
votes
2 answers

Print value of variable in GDB while debugging msp430

I am using GDB to debug my msp430. I connect the target and then load the binary of program and then "continue". My program is working fine however I want to see certain values of variables in real time. Actually I want to check the time stamp of my…
Hassan
  • 113
  • 1
  • 1
  • 8
8
votes
1 answer

Remote debugging using gdbserver over ssh

I want to debug a process running on a remote box from my host box (I built the code on the host machine). Both have linux type operating systems. I seems I can only communicate to the remote box from the host box via ssh (I tested using telnet).…
Mulvihic
  • 295
  • 1
  • 2
  • 10
8
votes
3 answers

How to debug an App on Android with GDBSERVER?

I'm trying to debug a native shared library that my App uses through JNI. I can attach to a running app just fine with "gdbserver --attach pid" but i need to actually launch my app when i launch the gdbserver command. There's a million blog hits on…
cjserio
  • 2,857
  • 7
  • 29
  • 29
8
votes
2 answers

gdbserver loading symbol table from remote file

I am trying to use gdbserver... I have an application with binary path /user/bin/foo running with pid 19767. Started the gdbserver on remote: gdbserver --remote-debug --multi 0:12347 Started gdb on client and connected it to remove…
Vivek Goel
  • 22,942
  • 29
  • 114
  • 186
7
votes
2 answers

How to use cross gdb to examine core file from crosstarget machine

I have a core file from embedded SH3 linux device, and gdb of the cross compiler environment (sh3-linux-gdb) in my host linux. But I have problems loading the core file with gdb: $ sh3-linux-gdb ./myprogram ./core GNU gdb 6.3 Copyright 2004 Free…
SKi
  • 8,007
  • 2
  • 26
  • 57
7
votes
2 answers

GDB Monitor commands in CLion

I'm trying to debug an embedded project using remote GDB. My system: Target: ARM Cortex M0. SEGGER J-Link GDB Server V6.10 Command Line Version arm-none-eabi-gdb 7.10.1.20160616-cvs CLion 2016.2.2, Build #CL-162.1967.7 Ubuntu 16.04 I have the…
bad_coffee
  • 147
  • 3
  • 8
7
votes
1 answer

How to return to gdb prompt after continuing and gdb have not hit the breakpoint

(gdb) target remote machine-XYZ:5001 (gdb) b some_function_name (gdb) c Continuing. Now here the remote process have not hit the function and gdb is still in continuing stage. But if I have to add more break point or if I have to detach how can I do…
1
2
3
27 28