Dark诏曰:有什么需要的feature可以随便提discussion #11
Seven-Streams
started this conversation in
Ideas
Replies: 3 comments
-
我来分别描述一下吧。 display & undisplay在每次断点结束停下来 (step 到指定步数,continue,breakpoint 命中) 的时候,固定显示表达式的值。支持显示多个表达式,并且支持 undisplay 来取消显示。例如: $ display mem 2w $sp
Display 0:
0xffffff0 <_stack_top - 16> 114
0xffffff4 <_stack_top - 12> 514
$ display value a $ra
Display 0:
0xffffff0 <_stack_top - 16> 114
0xffffff4 <_stack_top - 12> 514
Display 1:
$ra = 4 <_start + 4>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
modify修改某个内存地址/寄存器的值,类似 gdb 中的 set 。例如: $ modify reg $ra, 10
$ p x $ra
$ra = 0xA
$ modify mem $sp + 4, 100
$ x 1w $sp + 4
0xffffff0 <_stack_top - 12> 100
|
Beta Was this translation helpful? Give feedback.
0 replies
-
watch && unwatch监视某个内存地址/表达式。在内存的值/表达式的值被修改的时候,触发内置的 shell terminal。 争议项: 是否允许地址可变? $ watch mem w 0x20000
$ watch value $sp
$ c
Memory word 0x20000 modified.
Value $sp modified
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
目前可能在日程上的功能:
display
modify
watch
Beta Was this translation helpful? Give feedback.
All reactions