汇编及C/C++汇编调用约定讲解
> 汇编及C/C++汇编调用约定(汇总帖)
> 汇编编译和gdb调试命令列表
> gdb TUI使用方法
> 汇编C语言调用约定(标准函数)
> 汇编C语言调用约定(递归函数)
> C++内存模型以及寄存器指针rsp和rbp
文章目录
TUI(TextUser Interface):GDB调试的文本用户界面,可以方便地显示源代码、汇编和寄存器文本窗口
1. 启动 gdb tui 调试
2. 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为每单元长度