gdbserver

How to do remote debugging with Nsight 5.5 on Linux?

為{幸葍}努か 提交于 2019-12-13 03:39:19
问题 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 setup debugging in NSight using the "Debug an application on a remote system". Whenever I try to run the application I get a "Could not start gdbserver on the remote host" error. This is what I get on the console: Last login: Thu Aug 1 16:09:26

Gdbserver strange error while debugging native app

帅比萌擦擦* 提交于 2019-12-13 00:41:12
问题 I'm trying to debug an native app on my android device. I followed this tutorial: http://blog.thecobraden.com/2012/02/debugging-apps-with-native-code-part-1_09.html And everything went good, I built the app and installed it, once I wanted to debug it with ndk-gdb I got this error: Could not open remote device: Invalid argument. I searched this error and found this answer: Android NDK debugging: device can't be opened It's very similar to my problem, I tried this method and now I get this

gdbserver loading symbol table from remote file

家住魔仙堡 提交于 2019-12-12 10:53:25
问题 I am trying to use gdbserver... I have an application with binary path /user/bin/foo running with pid 19767 . Started the gdbserver on remote: gdbserver --remote-debug --multi 0:12347 Started gdb on client and connected it to remove server target extended-remote 192.168.1.84:12347 Attached gdb on pid attach 19767 It shows: warning: Could not load vsyscall page because no executable was specified try using the "file" command first. 0x00007f207550043c in ?? () Also, current thread information

Starting gdbserver failed (VS2017 --> yocto)

时间秒杀一切 提交于 2019-12-11 16:36:06
问题 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: Starting gdbserver failed, this is unexpected and indicative of an incompatible or broken shell. Example command used on the shell: "echo 1; gdbserver; echo 2". We expected "1". Visual Studio Message Box On my remote machine gdbserver 7.10.1 is

Starting ddd with remote gdbserver

帅比萌擦擦* 提交于 2019-12-09 05:51:13
问题 I'm debugging a program that runs on a remote target using ddd ( the remote gdbserver is running on localhost over port 1234 for example, but still acts as remote). I know you can connect to the gdbserver by opening ddd, then calling target remote localhost:1234 on the gdb command line of ddd, as described in: http://www.gnu.org/software/ddd/manual/html_mono/ddd.html#Remote%20Program However, I hate having to call the target remote localhost:1234 command every time I open ddd, and I'd like to

How to debug an Dalvik executable on Android with GDB?

我们两清 提交于 2019-12-09 05:04:26
问题 I want to debug an android application using GDB, I do not have the source code and I am used to GDB. Would anyone know how to do that? It seems I would need to attach to the process of the application and use gdbserver but I have not really found a good tutorial on how to do that... Thanks! 回答1: There might not be step-by-step tutorials, but people have been using a gdbserver to debug JNI apps. Check the following links: http://honeypod.blogspot.com/2008/01/debug-native-application-for

gdbserver follow child

南笙酒味 提交于 2019-12-08 09:54:16
问题 I'm trying to debug a forking process on remote host, but getting the gdbserver process end on me every time with child exit. Tried to setting "set follow-fork-mode child" in .gdbinit, didn't help. Is there a good solution for this one? Thanks. 回答1: Does the forking process fork more than once? If not, you can use the --attach option to attach to the child. 来源: https://stackoverflow.com/questions/4717204/gdbserver-follow-child

How does GDB determine ARM architecture

核能气质少年 提交于 2019-12-08 09:37:23
问题 I am using gdb (arm-none-eabi) with a Texas Instruments Hercules (Cortex-R4F) processor. I'm using Texas Instrument's XDS agent as a remote GDB server After running target remote ip:port in GDB, GDB will connect with the XDS GDBserver. I can then print the registers info all-registers It shows me the CPU registers, but also f7 and fpa registers which lead me to conclude that the CPU has an floating point coprocessor (FPA). This is however not the case. The processor has vfpv3. So GDB is using

Missing symbol names in gdbserver but not with gdb

吃可爱长大的小学妹 提交于 2019-12-08 07:37:54
问题 I wanted to start using gdbserver for remote debugging and so I tested-out its functionality on my local machine with a simple test program that generates a segfault shown below: segfault.c -- compiles to elf named "test" #define NULL ((void*)0) int main() { int value = *((int*)NULL); return value; } Now when I run: #gdb test (gdb)run I get: Starting program: /home/awaibel/digiworkspace/test/Debug/test Program received signal SIGSEGV, Segmentation fault. 0x080483bf in main () at ../segfault.c

How to modify the environment variables and working directory of gdbserver --multi without restarting it?

我与影子孤独终老i 提交于 2019-12-08 03:00:28
问题 When I run a program that prints the environment from environ locally with: ./gdb myprintenv I can change environment variables across runs with: run set environment asdf=qwer run Is there any way to do that with gdbserver --multi ? I'm running it as: gdbserver --multi :1234 ./myprintenv and then locally: arm-linux-gnueabihf-gdb -ex 'target extended-remote remotehost:1234' ./myprintenv then the command: set environment asdf=qwer run has no effect. I can change the variables with: asdf=qwer