首页 > 其他分享 >gdb操作备忘录

gdb操作备忘录

时间:2023-02-04 16:24:15浏览次数:38  
标签:Runs Puts lines current 备忘录 gdb breakpoint 操作 until

b main - Puts a breakpoint at the beginning of the program

b - Puts a breakpoint at the current line

b N - Puts a breakpoint at line N

b +N - Puts a breakpoint N lines down from the current line

b fn - Puts a breakpoint at the beginning of function "fn"

d N - Deletes breakpoint number N

info break - list breakpoints

r - Runs the program until a breakpoint or error

c - Continues running the program until the next breakpoint or error

f - Runs until the current function is finished

s - Runs the next line of the program

s N - Runs the next N lines of the program

n - Like s, but it does not step into functions

u N - Runs until you get N lines in front of the current line

p var - Prints the current value of the variable "var"

bt - Prints a stack trace

u - Goes up a level in the stack

d - Goes down a level in the stack

q - Quits gdb

标签:Runs,Puts,lines,current,备忘录,gdb,breakpoint,操作,until
From: https://www.cnblogs.com/hzbkd/p/17091782.html

相关文章

  • Day09-公共操作与推导式
    一、公共操作 操作方法 功能 描述 操作类型 +     合并 将两个相同类型序列进行连接 字符串、列表、元组 * 复制 ......
  • 互联网医院怎么操作|互联网医院开发
    互联网医院就是一种形势所趋,就像以前看病都必须去医院排队挂号,排队看诊,其实大部分的时间都用在了排队上,而互联网医院就大大的节省了排队的时间,给就医和看诊都带来了很大的方......
  • python基础:计算机五大组成部分详细介绍、计算机三大核心硬件、操作系统、编程与编程语
    目录一、计算机五大组成部分详细介绍1.控制器2.运算器3.存储设备4.输入设备5.输出设备二、计算机三大核心硬件1.cpu2.内存举例:写文档时,突然关机了。3.磁盘cpu为什么不和磁......
  • 操作系统面试题
    操作系统面经操作系统基础系统调用根据进程访问资源的特点,我们可以把进程在系统上的运行分为两个级别:用户态(usermode):用户态运行的进程可以直接读取用户程序的数......
  • Docker的基本镜像操作、容器操作 及 数据卷挂载管理
    (目录)Docker的基本操作1.镜像操作1.1.镜像名称首先来看下镜像的名称组成:镜像名称一般分两部分组成:[repository]:[tag]。在没有指定tag时,默认是latest,代表最新版本......
  • memory 操作新发现
    void*memmove(void*str1,constvoid*str2,size_tn) 从 str2 复制 n 个字符到 str1,但是在重叠内存块这方面,memmove()是比memcpy()更安全的方法memmove库函......
  • 隆重介绍:Buddy全新Docker CLI操作
    自2013年推出以来,Docker一直是软件开发人员的福音。一个隔离独立的测试环境,一个在整个团队中共享工具和依赖项的独立运行时且快速与易用,有保证的Kubernetes可扩展性——所有......
  • mongo 日常操作
    连接到mongo1或2:1#[email protected]#mongo127.0.0.1:27017/-uroot-puex@2021查看全局所有账户:useadmindb.auth('admi......
  • Go操作elasticsearch 基础操作
    安装ES集群(Liunx版本)参考链接​​这个博主的很不错​​连接客户端//连接EsfuncconnectEs()(*elastic.Client,error){returnelastic.NewClient(//设置Elastic服......
  • MySql 误操作回滚方法总结
    drop是直接删除表信息,速度最快,但是无法找回数据 truncatetabletruncate是删除表数据,不删除表的结构,速度排第二,但不能与where一起使用 deletefromdelete是删......