.gdbinit文件丢失 [英] .gdbinit file missing

查看:165
本文介绍了.gdbinit文件丢失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse不调试我的c ++代码。它要求提供一个gdb版本。我修复了gdb的路径,但.gdbinit文件仍然丢失。我找不到它。调试过程现在就结束了。 eclipse是否有一个内置的.gdbinit文件,我可以给它的位置?有人可以给我一个标准的.gdbinit文件?

可能是它的调试正常,但eclipse不能正确解析gdb输出。有没有解决这个问题的插件?

我非常感谢帮助。谢谢

解决方案

很难判断出a)您无法通过Eclipse找到您的现有.gdbinit文件或b )您缺少.gdbinit文件。



)在UNIX和Linux系统上,gdb init文件的路径是〜/ .gdbinit(或$ HOME /。 gdbinit) - 也就是说,.gdbinit文件位于主目录的顶层。



b).gdbinit文件不需要运行gdb - 偶数一个名为.gdbinit的空文件将会执行。例如.gdb初始化文件,请查看 dotfiles.org


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

解决方案

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.

这篇关于.gdbinit文件丢失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆