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…
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…
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
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…
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…
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…
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 …
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…
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…
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…
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…
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…
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…
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…
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
...…