加快GDB加载速度

如果一个binary太大包含的符号太多,gdb启动的时候会特别慢
可以通过gdb索引的方式加快速度

gdb-add-index $bin

参考:

https://man7.org/linux/man-pages/man1/gdb-add-index.1.html
https://stackoverflow.com/questions/21754816/how-to-make-gdb-faster
https://sourceware.org/gdb/onlinedocs/gdb/Index-Files.html

posted @ 2021-05-06 11:58  stdpain  阅读(1175)  评论(4编辑  收藏  举报