gdb TUI使用方法

本文将详述汇编语言的调用约定,包括标准函数和递归函数,并重点介绍GDB Text User Interface (TUI) 的使用技巧,如启动gdbtui、布局命令和内存查看命令。同时,探讨C/C++编译环境下内存模型与寄存器理解。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

汇编及C/C++汇编调用约定讲解

> 汇编及C/C++汇编调用约定(汇总帖)
> 汇编编译和gdb调试命令列表
> gdb TUI使用方法
> 汇编C语言调用约定(标准函数)
> 汇编C语言调用约定(递归函数)
> C++内存模型以及寄存器指针rsp和rbp



TUI(TextUser Interface):GDB调试的文本用户界面,可以方便地显示源代码、汇编和寄存器文本窗口

1. 启动 gdb tui 调试

启动gdb调试

2. tui命令

tui使用方法

3. layout 命令

(gdb) help layout
Change the layout of windows.
Usage: layout prev | next | <layout_name>
Layout names are:
    src   : Displays source and command windows.
    asm   : Displays disassembly and command windows.
    split : Displays source, disassembly and command windows.
    regs  : Displays register window. If existing layout
           is source/command or assembly/command, the
           register window is displayed. If the
           source/assembly/command (split) is displayed,
           the register window is displayed with
           the window that has current logical focus.

4. x 命令

  • (gdb) x/nfu 显示内存 // n为个数,f 为格式,u为每单元长度
    x命令
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值