开发者

Why is GDB so slow when I type I try to print an invalid symbol?

开发者 https://www.devze.com 2023-01-06 23:28 出处:网络
When I execute in GDB: p some_nonexistant_variable_name GDB takes minutes (sometimes) to report that it can\'t find the the variable in scope.

When I execute in GDB:

p some_nonexistant_variable_name

GDB takes minutes (sometimes) to report that it can't find the the variable in scope.

Additionally when I type:

p some_variable_that_is_in_scope->toString()

it takes forever...sometimes. Not sure why.

I'm using U开发者_Go百科Buntu 10.04, running GDB through Emacs 23. Any ideas?


I think a recent release of gdb (6.5?) had a bug with searching large symbol tables, and a more recent one (6.7?) fixes it. Check out this bug report and see if it's relevant.

0

精彩评论

暂无评论...
验证码 换一张
取 消