gdbinit

Loading .gdbinit from current directory fails with “auto-loading has been declined by your `auto-load safe-path'”

霸气de小男生 提交于 2019-12-19 05:14:16
问题 I'm having trouble loading a .gdbinit file located in the current directory. On starting gdb, I get this: GNU gdb (GDB) 7.5-ubuntu Copyright (C) 2012 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting

.gdbinit file missing

本小妞迷上赌 提交于 2019-12-13 01:18:56
问题 Eclipse is not debugging my c++ code. It asked for a version of gdb. I fixed the path of gdb but .gdbinit file is still missing. I cant locate it. The debug process just terminates now. Does eclipse has an inbuilt .gdbinit file whose location i can give? Can someone please give me a standard .gdbinit file? May be its debugging properly but eclipse is not correctly parsing gdb output. Is there a plugin to fix this? I would greatly appreciate the help. Thanks 回答1: It is difficult to tell if a)

Unable to set pending breakpoints in .gdbinit

杀马特。学长 韩版系。学妹 提交于 2019-12-11 09:31:07
问题 gdb-6.8 In case of the program or library is not loaded, it's weird that manually setting pending breakpoints works, but not through .gdbinit . What could be wrong? [Manual way] (gdb) break foo.cc:111 No source file named foo.cc. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (foo.cc) pending. (gdb) info break Num Type Disp Enb Address What 1 breakpoint keep y <PENDING> foo.cc (gdb) run myprogram [gdbinit way] Add these 2 lines in .gdbinit set breakpoint

How to configure GDB in Eclipse such that all prcoesses keep on running including the process being debugged?

Deadly 提交于 2019-12-11 04:48:26
问题 I am new in C programming and I have been trying hard to customize an opensource tool written in C according to my organizational needs. IDE: Eclipse, Debugger: GDB, OS: RHEL The tool is multi-process in nature (main process executes first time and spawns several child processes using fork() ) and they share values in run time. While debugging in Eclipse (using GDB), I find that the process being debugged is only running while other processes are in suspended mode. Thus, the only running