如何保存GDB命令导致变量并在GDB中再次重复使用?
在GDB中,我想保存x/x $ rsp
命令的结果,地址中的值显示
示例: 我想保存该地址0x00400b的命令的结果
x/x $rsp is 0xffffaaaa : (0x00400b)
,我在变量内的括号之间突出显示了该地址的结果, 并重复使用另一个GDB命令中包含0x00400B的变量。 当断点击中时,示例将二进制内存转储二进制内存。
in GDB , i want to save the result of x/x $rsp
command , the value inside the address showing
example:
the result of the command
x/x $rsp is 0xffffaaaa : (0x00400b)
i want to save that address 0x00400b that i highlighted between brackets inside a variable ,
and reuse that variable that contain 0x00400b inside another GDB command.
example dump binary memory from that place when a breakpoint hits.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以做自己想做的事:
You can do what you want like this: