.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) you are having trouble getting Eclipse to find your existing .gdbinit file, or b) you are missing a .gdbinit file.

a) On UNIX and Linux systems, the path to the gdb init file is ~/.gdbinit (or $HOME/.gdbinit) - that is, the .gdbinit file is at the top level of your home directory.

b) A .gdbinit file is not required to run gdb -- even an empty file named .gdbinit will do. For example .gdb init files, check dotfiles.org.



来源:https://stackoverflow.com/questions/14795407/gdbinit-file-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!