Questions tagged [gdbserver]

GDB remote application debugging through gdbserver

GDB remote application debugging through gdbserver

415 questions
0
votes
1 answer

Symbols out of sync when cross debugging android ndk

I'm trying to debug a native built (NDK) executable test (+shared library) using adb shell, gdbserver on one side and the ndk's gdb on the other side. I copied the executable and .so to the device and executed in adb shell: $ gdbserver :5039…
miluz
  • 1,353
  • 3
  • 14
  • 22
0
votes
2 answers

android-x86 using gdb | gdbserver for debugging mediaserver

May I know others experience of using (gdb and gdbserver) for debugging mediaserver (Native Binary) After reading several blogs and mannual I am in confused state. Still I am struggling to get symbol info needed by GDB ... Please find the console…
0
votes
1 answer

gdbserver reports wrong target architecture

I'm remotely-debugging an x86_64 executable on x86_64 target, but gdbserver seemingly reports debugging an i386 executable: On the target: # gdbserver --attach :9999 12345 Attached; pid = 12345 Listening on port 9999 On the host: # gdb
Konstantin Shemyak
  • 2,369
  • 5
  • 21
  • 41
0
votes
0 answers

How to connect with gdbserver only when a breakpoint is hit?

With gdb I would write a .gdbinit file with the following contents: break file1.c:32 catch syscall write # more setup commands run This would make gdb run the program and stop at those breakpoints. How can I do the same with gdbserver? Eg: Stop for…
Thiago Padilha
  • 4,590
  • 5
  • 44
  • 69
0
votes
1 answer

Remote debugging in Eclipse IDE for C/C++

I am running my code on the target (embedded pc) using a remote debug application mode in Eclipse by specifying the port number and hostname. I am using gdbserver on the target and manual remote debug aplication on the client. When I debug my code…
user3345539
  • 3
  • 1
  • 4
0
votes
1 answer

How to get info register work in GDB with OpenOCD

I am brand new to OpenOCD and GDB so kindly bear with me. I run my OpenOCD in server in Screen1 which is talking to a system. In Screen 1 I am waiting for the connection to come: Info: JTAG tap:some abcd: CPU enabled In Screen2, I start gdb and…
0
votes
1 answer

gdb info line : ... but contains no code

I'm getting a strange gdb error off of info line. gdb) info line Line 252 of "main.c" is at address 0x7f29e979c987 but contains no code. But on the other hand, I can successfully list code: (gdb) l main.c:254 249 …
0
votes
1 answer

How to extract address from c-string

I'm writing my program and i need to get a pointer from c-string. For example, i have a string like "0x3b021e01" and as an output i want a legal pointer void *ptr == 0x3021e101. I tried this approach: char *addr = "0x3021e101"; // this address is…
user2974730
0
votes
1 answer

How to do remote debugging with Nsight 5.5 on Linux?

Disclaimer: I know that this question has been asked numerous times, but before Nsight 5.5 the answer simply was "You can't." I'm trying to debug a CUDA program with Nsight 5.5 on Ubuntu. The remote machine is also an Ubuntu with CUDA Toolkit 5.5. I…
shinjin
  • 2,858
  • 5
  • 29
  • 44
0
votes
3 answers

gdserver cross compilation failed => error: no termcap library found

I'm experiencing a frustrating error trying to cross-compile gdbserver for arm. I've downloaded and crosscompiled termcap with this command export CC="/bin/arm-mv5sft-linux-gnueabi-gcc" export CXX="/bin/arm-mv5sft-linux-gnueabi-g++" export…
ndarkness
  • 1,011
  • 2
  • 16
  • 36
0
votes
1 answer

GDB MI : follow parent process for debugging

While using GDB MI instruction I found that in case a program forks to create child process it starts debugging the last child only. So if I try to debug break in parent it does not breaks at that point: I found this valuable reference in…
Programmer
  • 8,303
  • 23
  • 78
  • 162
0
votes
1 answer

Linux Remote Debugging Thread Error (GDBServer)

I have an ARM device and I want to debug it. My host computer is Linux 12.04 and I am using Eclipse. GDBServer run on my target device. I can debug single process application. But When I want to debug multithread application which contains pthread…
Murat
  • 803
  • 4
  • 15
  • 27
0
votes
0 answers

gdb core file: Find shared library source paths when cross compiling

I use gdb in a cross-compiling environment where I build a linux tree for the target architecture, including lots of shared libraries. Problem: When I analyze a core dump, gdb finds the paths to my .so files and their symbols, but not their source…
Rumpsteak
  • 95
  • 1
  • 11
0
votes
1 answer

How to handle remotely signals using gdb?

I want to debug program remotely. But the issue is my program is using signals. On local machine I handle signal using following command: handle SIG64 nostop noprint But for remotely debugging using gdbserver , I don't know how to handle…
Yuvi
  • 1,344
  • 4
  • 24
  • 46
0
votes
1 answer

How can I make gdb automatically attach to a program name on a remote machine?

I'm trying to setup my gdbinit to make gdb automatically attach to a certain program on a remote machine. My script is something like: define hook-run target extended-remote | ssh -T remotemachine gdbserver --multi - attach $pid ...…
Oak
  • 26,231
  • 8
  • 93
  • 152
1 2 3
27
28