【发布时间】:2017-03-30 15:42:57
【问题描述】:
当我打开 emacs 并输入时:
M+x gdb
运行 gdb(像这样):gdb im=mi /home/qinchen/major/caffe/caffe_gdb/build/tools/caffe
然后输入:
运行训练 --solver=examples/mnist/lenet_solver.prototxt
但它报告: 我
o.cpp 检查失败:fd!=-1。文件不 找到:examples/mnist/lenet_solver.prototxt
我猜如果错误是由 emacs 的当前工作目录不在 CAFFE_ROOT 中触发的。因为我在 CAFFE_ROOT 目录中的 linux 终端中使用
进行调试gdb --args build/tools/caffe train --solver=examples/mnist/lenet_solver.prototxt
我可以成功调试这个demo。那么谁能帮我在gdb中调试时将emacs工作目录设置为CAFFE_ROOT以消除上面报告的错误?
【问题讨论】: