Questions tagged [gdbserver]

GDB remote application debugging through gdbserver

GDB remote application debugging through gdbserver

415 questions
90
votes
2 answers

android ndk gdb loaded sharedlibraries missing *.oat

Both gdb 7.7 and gbd 7.11 missed some shared libraries when debugging my device (oppo r7s). I've pulled all libraries to local. Here is a complete list of libraries shown by info shared (gdb) info shared From To Syms Read Shared…
Joey.Z
  • 4,492
  • 4
  • 38
  • 63
25
votes
6 answers

Remotely debugging a Linux process from Windows with gdb and gdbserver: what exactly is needed on the Windows side?

I am running Eclipse CDT on Windows to develop C code that is built & tested on remote Linux systems. Currently, the code is never compiled on Windows. I am able to use CDT to begin the remote process on the Linux target under gdbserver, and then…
rewbs
  • 1,958
  • 4
  • 22
  • 34
25
votes
8 answers

How to terminate gdbserver?

I am trying to debug with gdbserver. after I terminat the gdb client on the host I see that the gdbserver is still listening : Remote side has terminated connection. GDBserver will reopen the connection. Listening on port 5004 I tried to exit…
yehudahs
  • 2,488
  • 8
  • 34
  • 54
24
votes
2 answers

How to start an android app with valgrind

I've been searching for the last week trying to find an answer to this question. How do I start an Android app with valgrind? I know I can start an app with the 'am' command, but it starts the app and exits. I'm writing an app that uses the NDK for…
Scott
  • 5,135
  • 12
  • 57
  • 74
19
votes
3 answers

gdb remote cross debugging fails with "Remote 'g' packet reply is too long"

I have a problem with remote debugging. Host: laptop intel i5 with ubuntu 10.10 x86 Target: Freescale iMX35 (iMX35 PDK) arm 11 Development environment: Qt Creator 2.1RC and Qt4.7.1 libraries. Arm compiler in path:…
user602888
  • 199
  • 1
  • 1
  • 4
19
votes
1 answer

warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time

When loading core dump files into gdb, I am getting the following warning, looks like loading some symbols also fails because of this. warning: Cannot parse .gnu_debugdata section; LZMA support was disabled at compile time Any idea how I can…
PMat
  • 2,039
  • 2
  • 29
  • 46
13
votes
3 answers

STM32CubeIDE can only flash once, no SWD debugging

For a couple of years I have been using the mbed online compiler to create .bin files, and then flash them at the command line like this, using a ST-LINK/V2 USB dongle, and everything works flawlessly: st-flash write 01_blink.NUCLEO_F103RB.bin…
iforce2d
  • 8,194
  • 3
  • 29
  • 40
11
votes
2 answers

Only question marks in backtrace reported by gdb on ARM

I'm trying to debug a software with gdbserver on ARM to get a backtrace of a crash. Unfortunately I get only question marks. Everywhere, I read this problem is simply related to the lack of symbols, but symbols are not stripped from my libraries. If…
Luca Carlon
  • 9,546
  • 13
  • 59
  • 91
11
votes
6 answers

Error in initializing ST-Link Device - Failed to connect to device

I am currently using the ST-Link debugger to program my STM32F3 Discovery Board. The IDE that I am using is Atollic TrueStudio 5.5.2. Now I am facing a very weird problem which is I keep on getting the message Error in initializing ST-Link Device.…
Leonard1995
  • 141
  • 1
  • 2
  • 10
11
votes
2 answers

Qt 5.x embedded debugging - deploy stripped binary?

I believe (correct me if I'm wrong) that when remote debugging with gdb and gdbserver, the binary running on the target under gdbserver doesn't need the debug information in the binary, but the host, running gdb, does. Our application binary with…
Steve
  • 6,334
  • 4
  • 39
  • 67
10
votes
4 answers

Debugging shared libraries with gdbserver

I am using gdbserver on target and CodeSourcery IDE. My hardware is a gumstix with a omap3530. I can step through code in my main application but if I attempt to step into a function in a shared library I get memory address and a debugger…
Seth
  • 313
  • 1
  • 2
  • 10
10
votes
7 answers

Eclipse failed to execute MI command -target-select remote

Trying to setup remote gdb debugging in eclipse. When I try to debug I get: Error in final launch sequence Failed to execute MI command: -target-select remote LOCALHOST:2345 Error message from debugger back end: LOCALHOST:2345: Connection timed…
Shrouk Khan
  • 1,440
  • 6
  • 27
  • 53
9
votes
1 answer

Stepping over library calls with gdb/gdbserver

I have a general gdb/gdbserver question. I'm trying to debug an arm linux embedded application using gdb on the host and gdbserver on the remote target. I can step through lines of code at the beginning of main. However, gdb (or gdbserver) seems to…
Jim
  • 225
  • 1
  • 2
  • 7
9
votes
2 answers

gdbserver: Target description specified unknown architecture "aarch64"

I try to use remotely the gdbserver for debug as follows Start the gdbserver on target machine $ gdbserver localhost:2000 hello -l 20 -b 10 --enable-targets=all Host machine has the program binary with debugging enabled "copied binary from ARM…
user3428154
  • 1,174
  • 5
  • 18
  • 38
9
votes
1 answer

How to find base address of Android target processor using GDB

I'm currently playing around with GDB and want to debug a native processor in Android, specifically /system/bin/lmkd. But I'm having trouble on how to stop GDB once that processor is invoked. This is what I've tried so far: Android-side: ./gdbserver…
Carol Ward
  • 699
  • 4
  • 17
1
2 3
27 28