GDB MI命令

news/2024/12/22 13:10:06/

GDB MI命令

Breakpoint 指令

IDGDB MI CommandGDB Command
1-break-after number countignore
2-break-commands number [ command1 … commandN ]commands
3-break-condition [ --force ] number [ expr ]condition
4-break-delete ( breakpoint )+delete
5-break-disable ( breakpoint )+disable
6-break-enable (breakpoint )+enable
7-break-info breakpointinfo break breakpoint
8-break-insert * [ -t ] [ -h ] [ -f ] [ -d ] [ -a ] [ --qualified ] [ -c condition ] [ -force-conditon ] [ -i ignore-count ] [ -p thread-id ] [ location ]break, tbreak, hbreak, thbreak
9-dprintf-insert* [ -t ] [ -f ] [ -d ] [ --qualified ] [ -c condition] [ --force-condition ] [ -i ignore-count ] [ -p thread-id ] [ location ] [ format ] [argument ]dprintf
10-break-listinfo break
11-break-passcount tracepoint-number passcountpasscount
12-break-watch [ -a | -r ]watch, awatch, rwatch

注:

*: 1. location can be: linespec location, explicit location and address location

​ 2. t => temporary , h => hardware , f => pending, d => disabled, a => tracepoint, c => condition

Catchpoint 指令

IDGDB MI CommandsGDB Commands
1-catch-load [ -t ] [ -d ] regexpcatch load
2-catch-unload [ -t ] [ -d ] regexpcatch unload
3-catch-throw [ -t ] [ -r regexp ]catch throw, tcatch throw
4-catch-rethrow [ -t ] [ -r regexp ]catch rethrow, tcatch rethrow
5-catch-catch [ -t ] [ -r regexp ]catch catch, tcatch catch
6-catch-assert* [ -c condition ] [ -d ] [ -t ]catch assert
7-catch-exception* [ -c condition ] [ -d ] [ -e exception-name ] [ -t ] [ -u]catch excepton, catch exception unhandled
8-catch-handlers* [ -c condition ] [ -d ] [ -e exception-name ] [-t ]catch handlers

注: * Ada Exception

Program Context 指令

IDGDB MI CommandsGDB Commands
1-exec-arguments argsset args
2-environment-cd pathdircd
3-environment-directory [ -r ] [ pathdir ]+dir
4-environment-path [ -r ] [ pathdir ]+path
5-environment-pwdpwd

Thread 指令

IDGDB MI CommandsGDB Commands
1-thread-info [ thread-id ]info thread
2-thread-list-idsinfo threads
3-thread-select thread-idthread

Program Execute 指令

IDGDB MI CommandsGDB Commands
1-exec-continue [ --reverse ] [ --all | --thread-group N ]continue
2-exec-finish [ --reverse ]finish
3-exec-interrupt [ --all | --thread-group N ]interrupt
4-exec-jump locationjump
5-exec-next [ --reverse ]next
6-exec-next-instruction [ --reverse ]nexti
7-exec-run [ --all | --thread-group N ] [ --start ]run
8-exec-step [ --reverse ]step
9-exec-step-instruction [ --reverse ]stepi
10-exec-until [ location ]until
11-exec-returnreturnInf

Stack Manipulation 指令

IDGDB MI CommandsGDB Commands
1-enable-frame-filtersinfo frame, frame
2-stack-info-depth [ max-depth ]no equivalent GDB Command
3-stack-list-arguments [ --no-frame-filters ] [ --skip-unavailable ] print-values [ low-frame high-frame ]no equivalent GDB Command
4-stack-list-frames [ --no-frame-filters low-frame hight-frame ]backtrace, where
5-stack-list-locals [ --no-frame-filters ] [ --skip-unavailable ] print-valuesinfo locals
6-stack-list-variables [ --no-frame-filters ] [ --skip-unavailable ] print-values
7-stack-select-frame framenumframe, up, down, select-frame, up-silent, down-silent

Variable Objects 指令

Data Manipluation 指令

IDGDB MI CommandsGDB Commands
1-data-disassemable [ -s start-addr -e end-addr ] | [ -a addr ] | [ -f filename -l linenum ] [ -n lines ] – modedisassemble
2-data-evaluate-expression exprprint, output, call
3-data-list-changed-registers
4-data-list-register-names [ ( regno )+ ]
5-data-list-register-values [ --skip-unavailabe ] fmt [ ( regno )+ ]info reg, info all-reg
6-data-read-memory [ -o byte-offset ] address word-format word-size nr-rows nr-cols [ aschar ]x
7-data-read-memory-bytes [ -o offset ] addres coutnx
8-data-write-memory-bytes address contents [count ]

Tracepoint 指令

IDGDB MI CommandsGDB Commands
1-tarce-find mode [ parameters… ]tfind
2-trace-define-variable name [ value ]tvariable
3-trace-frame-collected [ --var-print-values var_pval ] [ --comp-print-values cmp_pval ] [ --registers-format regformt ] [ --memory-contents ]
4-trace-list-variablestvariables
5-trace-save [ -r ] [ -ctf ] filenametsave
6-trace-starttstart
7-trace-statuststatus
8-trace-stoptstop

Symbol Query 指令

IDGDB MI CommandsGDB Commands
1-symbol-info-functions [ --include-nondebug ] [ --type type_regexp ] [ --name name_regexp ] [ --max-results limit ]info functions
2-symbol-info-module-functions [ --module module_regexp ] [ --name name_regexp ] [ --type type_regexp ]info module functions
3-symbol-info-module-variables [ --module module_regexp ] [ --name name_regexp ] [ --type type_regexp ]info module variables
4-symbol-info-modules [ --name name_regexp ] [ --max-results limit ]info modules
5-symbol-info-types [ --name name_regexp ] [ --max-results limit ]info types
6-symbol-info-variables [ --include-nondebug ] [–type type_regexp ] [ --name name_regexp ] [ --max-results limit]info variables
7-symbol-list-lines filename

File 指令

IDGDB MI CommandsGDB Commands
1-file-exec-and-symbols filefile
2-file-exec-file fileexec-file
3-file-list-exec-source-fileinfo source
4-file-list-exec-source-filesinfo sources
5-file-list-shared-libraries [ regexp]info shared
6-file-symbol-file filesymbol-file

Target Manipulation 指令

IDGDB MI CommandsGDB Commands
1-target-attach pid | gid | fileattach
2-target-detach [ pid | gid ]detach
3-target-disconnectdisconnect
4-target-downloadload
5-target-flash-eraseflash-erase
6-target-select type parameters …target

File Transfer 指令

IDGDB MI CommandsGDB Commands
1-target-file-put hostfile targetfileremote put
2-target-file-get targetfile hostfileremote get
3-target-file-delete targetfileremote delete

Ada Exception 指令

IDGDB MI CommandsGDB Commands
1-info-ada-exceptions [ regexp ]info exceptions

GDB/MI Suppports 指令

IDGDB MI CommandsGDB Commands
1-info-gdb-mi-command cmd_name
2-list-features
3-list-target-features

Miscellaneous 指令

IDGDB MI CommandsGDB Commands
1-gdb-exitquit
2-gdb-setset
3-gdb-showshow
4-gdb-versionshow version
5-list-thread-groups [ --avaiable ] [ --recures 1 ] [ group …]
6-info-os [type]info os
7-add-inferior
8-interpreter-exec interpreter commandinterpreter-exec
9-inferior-tty-set [dev]set inferior-tty [dev]
10-inferior-tty-showshow inferior-tty
11-enable-timings [ yes | no ]
12-complete commandcomplete

http://www.ppmy.cn/news/499487.html

相关文章

EESM和MI-ESM

最近这方面一直是我研究内容的一部分,工作也将要进行到收尾阶段了,总结一下我初期的调研成果: 文章目录 ESM——EESM & MI-ESM问题提出:为何会需要ESM(Effective SINR Mapping,有效SINR模型&#xff09…

米家BLE广播协议(MI Beacon)Object字段解密

一、协议分析 参考链接:小米蓝牙广播数据解析(MiBeacon) 二、广播实例解析(门窗传感器广播数据) service data 如下 95 FE 58 59 89 18 69 B3 D4 D7 38 C1 A4 60 2C 8F B1 3B 00 00 41 3D 5E 0A Mi service UUID : 0xFE95 Frame Control …

MU-MIMO是什么

欢迎来到东用知识小课堂! 1.什么是MIMO MIMO:Multiple-Intput Multiple-Output,即多入多出系统,这里的入和出是相对于发射天线和接受天线构成的天线系统来讲。 通常的通信系统是单发单收,也就是SISO:Single-Input Sing…

【MySQL】MVCC是如何解决快照读下的幻读问题的

文章目录 LBCC当前读 MVCC隐藏列undo logRead View 总结 我们从上文中了解到InnoDB默认的事务隔离级别是repeatable read(后文中用简称RR),它为了解决该隔离级别下的幻读的并发问题,提出了LBCC和MVCC两种方案。其中LBCC解决的是当…

NVMe-MI 时代的NVMe SSD监控和管理

带外管理是企业级NVMe SSD的一种管理维护方式,它独立于主机的操作系统,无需登陆甚至无需系统启动,即可实现高效的NVMe设备监控、管理、升级等操作。它涉及BMC、SMBUS、VPD、IPMI这些技术和概念,它们早已有之并且非常成熟。 说到N…

manchi翻译中文 mi_女生发Mimanchi是什么意思,mi manchi翻译中文是我想你

微信是我们现在经常用到的一款软件,而且大家应该都知道,微信是自带翻译功能的,比如当你们在聊天的时候,发一些英文或者缩写,长按这个缩写翻译,就能够出来对应的内容,那么女生发Mimanchi是什么意…

树增强网络TAN与互信息MI

树增强网络TAN(Tree Augmented Net) 一、为什么要用TAN? 在之前的博客中提到了如何用朴素贝叶斯网络去解决SNS社区虚假账号识别的问题。当时在解决这个问题时,做了如下假设: 真实账号比非真实账号平均具有更大的日志密度、更大的好友密度、…

gdb mi接口命令入门大全

gdb入门的话,先看看我这个博客 gdb入门教程大全(清晰明了)_标biao的博客-CSDN博客 gdb mi简介 gdb mi接口协议有3个版本 GDB/MI Development and Front Ends (Debugging with GDB) 与gdb版本对应关系如下:(gdb指的是…