GDB source path

后端 未结 1 1970
-上瘾入骨i
-上瘾入骨i 2021-02-02 16:09

How to make gdb to use different directory to look for source files.

For example my source file during the compilation was in directory:

/home/foo/bar.c
         


        
相关标签:
1条回答
  • 2021-02-02 16:38
    set substitute-path /home/foo /tmp/debug/home/foo
    

    http://sourceware.org/gdb/current/onlinedocs/gdb/Source-Path.html#index-set-substitute_002dpath

    0 讨论(0)
提交回复
热议问题