gdbserver

Remote gdb debugging does not stop at breakpoints

最后都变了- 提交于 2019-12-07 09:59:26
问题 I'm having problems with debugging my modified Linux-3.11.0 kernel. For debugging the code, I use: GDB 7.6 QEMU 1.6.5 Linux kernel 3.11.0 My system has Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz running Ubuntu 12.10 I compiled the modified kernel with a configuration file that I created using 'make menuconfig'. (with modifications in the "kernel hacking" category) Some of the .config file lines (that I find relevant) are quoted here: CONFIG_DEBUG_INFO=y CONFIG_DEBUG_KERNEL=y CONFIG_MAGIC_SYSRQ

How to do a remote debug using GDB from Qt Creator?

≡放荡痞女 提交于 2019-12-07 05:06:03
问题 I'm working on a Embedded Linux application and I would like to use GDB to debug it. The problem is that, although the Kit configuration seems fine (the Debugger option is correctly pointed to the GDB correspondent to the device's GCC - device is a Linux ARM), when I ask Qt Creator to run in debug mode it returns an error in the "Application Output": sh: gdbserver: not found This seems strange since, as I sad, the configuration is fine and no error about that is reported by Qt Creator in any

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

邮差的信 提交于 2019-12-06 05:17:40
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 gdbserver --multi :1234 ./myprintenv but that is annoying as it requires the mon exit , go to board,

How to do a remote debug using GDB from Qt Creator?

自作多情 提交于 2019-12-05 09:26:31
I'm working on a Embedded Linux application and I would like to use GDB to debug it. The problem is that, although the Kit configuration seems fine (the Debugger option is correctly pointed to the GDB correspondent to the device's GCC - device is a Linux ARM), when I ask Qt Creator to run in debug mode it returns an error in the "Application Output": sh: gdbserver: not found This seems strange since, as I sad, the configuration is fine and no error about that is reported by Qt Creator in any moment before starting debug mode. I did some research on the web to find which was the exact steps to

What is the right way to deploy files for a remote debug launch in Eclipse CDT?

余生颓废 提交于 2019-12-05 01:05:39
问题 My situation: I'm currently trying to use Eclipse CDT as a replacement for a proprietary IDE. I have an enterprise application, which consists of an executable and a lot (30+) of shared library modules. The application is targeted for an embedded non-x86 platform, with POSIX-compatible operating system (QNX or GNU/Linux, depending on the selected toolchain). Because of that, debugging can't be done on a developer's machine. It has to be done remotely. I'm using Eclipse Luna / CDT 8.5 with

How to terminate gdbserver?

♀尐吖头ヾ 提交于 2019-12-04 17:02:44
问题 I am trying to debug with gdbserver. after I terminat the gdb client on the host I see that the gdbserver is still listening : Remote side has terminated connection. GDBserver will reopen the connection. Listening on port 5004 I tried to exit gdbserver with everything I have found anywhere no luck: quit,exit,q, monitor exit,Esc,Cnt+c... nothing kills it. Moreover, when I opened another terminal and looked for the process running gdbserver (with the commands ps,top) I couldn't find it there...

GDB Monitor commands in CLion

旧时模样 提交于 2019-12-04 06:47:21
I'm trying to debug an embedded project using remote GDB. My system: Target: ARM Cortex M0. SEGGER J-Link GDB Server V6.10 Command Line Version arm-none-eabi-gdb 7.10.1.20160616-cvs CLion 2016.2.2, Build #CL-162.1967.7 Ubuntu 16.04 I have the following in my .gdbinit file: target remote localhost:2331 #(I remove this line when debugging with CLion) set verbose on file "/path_to_output_file/blinky.elf" monitor reset break main The thing that has troubled me for days now, is that this works fine if I debug with gdb directly from a terminal, but not when I use the debugger in CLion. In CLion I

What is the right way to deploy files for a remote debug launch in Eclipse CDT?

只谈情不闲聊 提交于 2019-12-03 16:42:41
My situation: I'm currently trying to use Eclipse CDT as a replacement for a proprietary IDE. I have an enterprise application, which consists of an executable and a lot (30+) of shared library modules. The application is targeted for an embedded non-x86 platform, with POSIX-compatible operating system (QNX or GNU/Linux, depending on the selected toolchain). Because of that, debugging can't be done on a developer's machine. It has to be done remotely. I'm using Eclipse Luna / CDT 8.5 with Remote System Explorer plugin and GDB/DSF Create Process Launcher installed. By means of those plugins

How to terminate gdbserver?

亡梦爱人 提交于 2019-12-03 10:05:59
I am trying to debug with gdbserver. after I terminat the gdb client on the host I see that the gdbserver is still listening : Remote side has terminated connection. GDBserver will reopen the connection. Listening on port 5004 I tried to exit gdbserver with everything I have found anywhere no luck: quit,exit,q, monitor exit,Esc,Cnt+c... nothing kills it. Moreover, when I opened another terminal and looked for the process running gdbserver (with the commands ps,top) I couldn't find it there... my question is - How to terminate gdbserver ? Give command monitor exit from your host gdb before

Starting ddd with remote gdbserver

允我心安 提交于 2019-12-03 08:15:01
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 set it to connect to the gdbserver automatically with an alias. I tried running ddd --rhost localhost