gdb 搜索正则表达式
我正在使用 gdb 调试我的程序,并且发现变量 x0 的值很奇怪。
search x0 =
只会显示当前帧中的行,其中“x0 =”正则表达式是从帧中最后列出的行写入的。是否有可能在向上方向找到正则表达式?就像,如果 x0 有一个奇怪的值,我希望 gdb 从当前行开始搜索“x0 =”正则表达式。这比仅仅在上面、上面、上面列出要容易得多......
谢谢
I'm debugging my program with gdb and I have found a weird value for a variable x0.
the search x0 =
will only show me the line in the current frame where the "x0 = " regex is written from the last listed line in the frame, on. Is there a possibility to find the regex in an upward direction? Like, if x0 has a weird value, I would like the gdb to search for the "x0 = " regex from the current line, up. This is much easier than just listing above, and above, and above...
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://sourceware.org/gdb/current/onlinedocs /gdb/Search.html#index-search-450
反向搜索 正则表达式
search
命令只是forward-search
命令的别名。http://sourceware.org/gdb/current/onlinedocs/gdb/Search.html#index-search-450
reverse-search regexp
And the
search
command is just an alias offorward-search
command.