7

gdb 修改寄存器/变量

 3 years ago
source link: http://abcdxyzk.github.io/blog/2015/07/21/debug-gdb-info-set/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
kk Blog —— 通用基础

kk Blog —— 通用基础

date [-d @int|str] [+%s|"+%F %T"]

Use the up and down arrows to select a result. Press enter to go to the selected search result. Touch device users can use touch and swipe gestures.

gdb 修改寄存器/变量

2015-07-21 15:34:00

# 查看所有寄存器
(gdb) info register  # 可以简写成 i r

# 查看单个寄存器
(gdb) i r rax

# 修改寄存器
(gdb) set $rax=3



# 查看变量
(gdb) i local

# 修改变量
(gdb) set var b=4

Posted by kk

2015-07-21 15:34:00debug, gdb

« test指令 gdb break/watch/catch »

Copyright © 2020 - kk - Powered by Octopress 站长统计


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK