Questions tagged [gdbserver]

GDB remote application debugging through gdbserver

GDB remote application debugging through gdbserver

415 questions
3
votes
1 answer

openocd freertos awareness can't start gdb

I have a setup with openocd and arm-none-eabi-gdb and I'm trying to debug a FreeRTOS fw. I start openocd with: openocd -f /usr/local/share/openocd/scripts/board/stm32f0discovery.cfg -c "stm32f0x.cpu configure -rtos auto" That command works…
evading
  • 3,032
  • 6
  • 37
  • 57
3
votes
0 answers

gdbserver ptrace warning slowing down debugging?

I'm trying to remotely debug my application using gdbserver but the process seems to be extremely slow. The output of gdbserver is full of the following lines: ptrace(regsets_fetch_inferior_registers) PID=4474: No data available Warning:…
Alex
  • 31
  • 3
3
votes
1 answer

Debug QNX target using Ubuntu host and gdb

This is a question from an absolute beginner. I have a Ubuntu 14.04 host, gdb 7.7.1 installed on it and a project cross-compiled for qnx. I also have a qnx target, that I want to debug my app on. The instructions on the internet tell me to use…
Asalle
  • 1,239
  • 19
  • 41
3
votes
2 answers

GDB + CLion + STM32 - won't remote debug

I read through GDB Monitor commands in CLion providing good insight, but I am having a slightly different issue: My environment: Target: ARM Cortex M4 (STM32F401RE) ST-UTIL gdb server (https://github.com/texane/stlink) arm-none-eabi-gdb…
Malachi
  • 2,260
  • 3
  • 27
  • 40
3
votes
3 answers

no symbols (just question marks) in stack trace in remote gdb

I have a relatively simple application (that links in another simple library) that refuses to let me remotely debug it with gdb. I've checked that gdb and gdbserver versions match. It's actually even the same OS (ubuntu) on both machines. It…
rivenmyst137
  • 345
  • 1
  • 4
  • 10
3
votes
1 answer

GDB: Error while remotely loading shared libraries

I am using X-server on Linux tutnix 3.13.0-30-generic #54-Ubuntu i686 i686 GNU/Linux . On X-server i am using schroot to change the root and after that I run my application on it. Now the problem is I am trying to run gdbserver(version 6.7.1) on…
The Philomath
  • 954
  • 9
  • 15
3
votes
1 answer

Eclipse remote debugging arm-linux library

I am running: Eclipse 3.8.1 (Build id: deb build). On Ubuntu 16.04 LTS in a VM and UbuntuMATE 16.04 LTS on target Raspberry Pi 3. gdb-multiarch(architecture set to arm in .gdbinit) locally andgdbserver` on the target. Cross compilation and remote…
eklektek
  • 1,083
  • 1
  • 16
  • 31
3
votes
0 answers

"Connectivity failure" using Visual Studio 2015's Remote GDB Debugger

I am trying to build and test Linux applications using Visual Studio 2015, but I couldn't get the remote GDB Debugger to work. Here's what I've done: I've set up a virtual machine running on Xubuntu with the IP 192.168.1.7 (bridge connection) and…
bot1131357
  • 877
  • 8
  • 25
3
votes
0 answers

Error at Remote Debugging in Eclipse

I am trying to debug an application remotely in Eclipse. When I start debugging, the application is deployed and the gdbserver is started on the target. This seems to work automatically without any mistakes, but then following error…
h0ch5tr4355
  • 2,092
  • 4
  • 28
  • 51
3
votes
2 answers

How do I use gdbserver on Raspberry Pi?

I try to remotly debug using gdb. On the target computer (Raspberry Pi with Ubuntu Mate 15.10), I run gdbserver :4444 main. And on my laptop, I run ./arm-linux-gnueabihf-gdb ~/workspace/piCCompileProj/Debug/main. At the gdb prompt (on my laptop), I…
3
votes
2 answers

debugging native code (C++) using gdb on android with Eclipse. Is it possible?

I have some piece of code which uses JNI. I can debug code wrote in Java directly in Eclipse (using ADT). I even have a script, which help me debug native code with gdb. However this is not very comfortable way for doing this. Is it possible to…
noisy
  • 6,495
  • 10
  • 50
  • 92
3
votes
1 answer

Remote debugging using gdb server and client not working

I am trying to get going remote debugging using gdbserver running on a ARM target running Linux kernel version 2.6.38.8. On this target I run a gdbserver which is a 32-bit ELF file, as below: ./gdbserver --remote-debug --attach 192.xxx.xxx.2:2345…
goldenmean
  • 18,376
  • 54
  • 154
  • 211
3
votes
1 answer

GDB remote debugging: influences on execution on remote target

Background I am working with an ARM device using a custom-built toolchain (based on Yocto with gcc 4.7 and gdb 7.5) and make use of remote gdb debugging with Eclipse CDT as debugger frontend. Recently I had the issue that I could not debug a…
3
votes
0 answers

Can't Cross Compile GDBServer for MIPS n32

I'm having trouble cross compiling GDBServer for MIPS n32. I'm using GCC-4.7.2, binutils-2.22, glibc-2.11.1, glibc-ports-2.11, and linux-2.6.32.61. My host is x86_64-cross-linux-gnu. My target is mips64-elf-linux. The specific ABI for MIPS is…
westfarn
  • 31
  • 2
3
votes
1 answer

How to do remote debugging using gdbserver?

I have one program that is getting segment fault. I need to debug that remotely. For that I am doing following: On target board: #gdbserver :2345 program On host x86 machine: $ arm-linux-gdb -q program (gdb) target remote 192.168.150.104:2345 But…
Yuvi
  • 1,344
  • 4
  • 24
  • 46