Questions tagged [gdbserver]

GDB remote application debugging through gdbserver

GDB remote application debugging through gdbserver

415 questions
0
votes
1 answer

How to use gdbserver with LD_PRELOAD for debugee

I'm trying to debug the program remotely with gdbserver. The following works fine: gdbserver :1234 ./test-program But I need to debug the program with preloaded .so file. And this doesn't work: gdbserver :1234 'LD_PRELOAD=./libefence.so…
Artem
  • 159
  • 2
  • 14
0
votes
1 answer

During remote debugging, gdbserver is unable to connect to gdb client when debug session is invoked for the second time

For debugging an application which is already running on remote target (architecture: arm-linux-gnueabihf), I am using gdb from Linaro toolchain: GNU gdb (Linaro_GDB-2017.05) 7.12.1.20170417-git and on the target, gdbserver(GNU gdbserver (GDB)…
coder12
  • 21
  • 5
0
votes
1 answer

debugging remote application with Eclipse gdb/gdbserver

I want to debug an application with Eclipse Oxygen on an arm-linux (debian) target where ssh is not installed. So I used the C/C++ Attach to Application method. I've compiled the application with g3option of course and copied the application on the…
fralbo
  • 2,534
  • 4
  • 41
  • 73
0
votes
0 answers

Gdbserver for Snow Leopard?

So I have this source gdb-1515. I'm using Xcode 3.2.6 command line tools on Snow Leopard (and this gdb source is the source of the gdb included in them). Trying to run (inside /private/var/root/Downloads/gdb-1515/src/gdb/gdbserver): gcc -I. -I.…
AnArrayOfFunctions
  • 3,452
  • 2
  • 29
  • 66
0
votes
0 answers

How can i debugging CGI file of lighttpd with gdbserver

I already know there is a vulnerability in the a.cgi file. Because I analyzed a.cgi file. a.cgi file used from lighttpd process. So, I want attach ida pro with gdbserver. I'm already try this... lighttpd process id is - 12345 ./gdbserver IP:port…
hana
  • 1
  • 1
0
votes
1 answer

Error while using Visual studio Remote GDB debugger

I have tried with no success for a good 4 hours to debug a program using Visual studio remote debugger and I keep getting the same error message: could not launch gdbserver. gdbserver could either be missing on your system and need to be…
0
votes
0 answers

Starting gdbserver failed (VS2017 --> yocto)

I am using VS2017 to compile and debug my cross platform C application on linux. With my Raspberry Pi it is working perfectly, but now I tryed it to debug it on a yocto system. Compilation works, but if I want to debug I am getting following messge:…
Thomas
  • 153
  • 9
0
votes
2 answers

How do breakpoints work when using a remote build host in NetBeans?

I have been tasked with setting up a development environment for an embedded platform. So far, I have set up a remote build host in NetBeans, which copies all of the source files to the target device, compiles them natively with the GNU toolchain on…
Drew
  • 93
  • 10
0
votes
0 answers

Visual Studio 2015/Linux extension 1.0.7: breakpoints are ignored

I am writing a small Linux app using Visual Studio 2015. To do so, I am using the Visual Studio 2015 Linux Extension, v 1.0.7 (the latest version as I'm writing this post). I can compile and run the app on the remote environment using gdbserver,…
Shlublu
  • 10,917
  • 4
  • 51
  • 70
0
votes
1 answer

Can't attach gdbserver to process through kubectl

It looks like I have some sort of permissions problem with kubectl. I have a Docker image, that contains server with native dynamic library + gdbserver. When I'm trying to debug Docker container running on my local machine all is fine. I'm using the…
vglazkov
  • 43
  • 1
  • 5
0
votes
1 answer

gdb debugging with openocd on codeblocks IDE

I have recently started working on Gdb with openOCD for ARM Development on Codeblocks IDE. There are two commands in gdb like "load ./bin/Debug/ledtest.elf", "file ./bin/Debug/ledtest.elf" which will result in writing the program to flash and…
anandamu16
  • 103
  • 1
  • 2
  • 9
0
votes
2 answers

How to build a GDB client running on Windows to connect to a GDB server on Linux Powerpc?

I downloaded a GDB package from http://ftp.gnu.org/gnu/gdb/ and built a GDB server from it to run on Linux Powerpc. But I don't know how to build a GDB that runs on Windows and that can communicate with a GDB server running on Linux Powerpc, or…
xiaokaoy
  • 1,608
  • 3
  • 15
  • 27
0
votes
0 answers

pyOCD, gdb instantly terminate in Eclipse

TL;DR: A debug toolchain which works perfectly outside of Eclipse terminates automatically when started in Eclipse. OS: macOS Sierra 10.12.3 IDE: Eclipse IDE for C/C++ Developers, Mars.2, Release 4.5.2 Target Board: WIZwiki-W7500P (via CMSIS-DAP for…
Tom Shea
  • 21
  • 4
0
votes
1 answer

QVariant inside QMap not recognized in GDB

I'm in an enterprise environment (which means there's no possibility a priori to add pretty printers or change software at any level) using GDB (gdbserver) to debug an app using Qt on a different device. While I'm debugging, I usually need to check…
jjimenezg93
  • 162
  • 4
  • 16
0
votes
1 answer

How to input from keyboard when debugging using gdb remote mode?

I am using gdb to debug the following program in ubuntu 16.04. #include using namespace std; int main() { int n; cin>>n; cout<
Casualet
  • 295
  • 3
  • 12