案例一
GDB指定和修改搜素源码文件的路径(set substitute-path)
1. readelf -p .debug_str exe_or_so_file
2. 根据step 1的结果查找替换代码根目录
A.根目录是相对路径
gdb 的dir 命令添加的源码搜索路径只对相对路径的情况有效。gdb -d
B.根目录是绝对路径(cmake等喜欢使用绝对路径)
set substitute-path from_path to_path