分类: LINUX
2009-06-15 00:12:12
(add-hook 'gdb-mode-hook这段代码将 gud 给 gdb 的命令修正为完整路径,这样就不会引起文件名歧义了。
(lambda ()
(gud-def gud-break "break %d/%f:%l" "\C-b" "Set breakpoint at current line.")
(gud-def gud-tbreak "tbreak %d/%f:%l" "\C-t" "Set temporary breakpoint at current line.")
(gud-def gud-remove "clear %d/%f:%l" "\C-d" "Remove breakpoint at current line.")
))