Xcode GDB调试命令列表

Debugger commands:

apropos-- List debugger commands related to a wordorsubject.

breakpoint-- Commandsforoperating on breakpoints (see 'help b' for shorthand.)

bugreport-- Commandsforcreating domain-specific bug reports.

command-- Commandsformanaging custom LLDB commands.

disassemble-- Disassemble specified instructionsinthe current

target.Defaults to the current functionforthe

current threadandstack frame.

expression-- Evaluate an expression on the current thread.Displays

any returned value with LLDB's default formatting.

frame-- Commandsforselectingandexaming the current thread's

stack frames.

gdb-remote-- Connect to a process via remote GDB server.If no host

is specifed, localhost is assumed.

gui-- Switch into the curses based GUI mode.

help-- Show a list of all debugger commands,orgive details

about a specific command.

kdp-remote-- Connect to a process via remote KDP server.If no UDP

port is specified, port41139is assumed.

language-- Commands specific to a source language.

log-- Commands controlling LLDB internal logging.

memory-- Commandsforoperating on memoryinthe current target

process.

platform-- Commands to manageandcreate platforms.

plugin-- Commandsformanaging LLDB plugins.

process-- Commandsforinteracting with processes on the current

platform.

quit-- Quit the LLDB debugger.

register-- Commands to access registersforthe current threadand

stack frame.

script-- Invoke the script interpreter with provided codeand

display any results.Start the interactive interpreter

ifno code is supplied.

settings-- Commandsformanaging LLDB settings.

source-- Commandsforexamining source code described by debug

informationforthe current target process.

target-- Commandsforoperating on debugger targets.

thread-- Commandsforoperating on oneormore threadsinthe

current process.

type-- Commandsforoperating on the type system.

version-- Show the LLDB debugger version.

watchpoint-- Commandsforoperating on watchpoints.

Current command abbreviations (type'help command alias'formore info):

add-dsym-- ('target symbols add')Add a debug symbol file to one of the

target's current modules by specifying a path to a debug symbols

file,orusingthe options to specify a module to download

symbolsfor.

attach-- ('_regexp-attach')Attach to process by IDorname.

b-- ('_regexp-break')Set a breakpointusingone of several

shorthand formats.

bt-- ('_regexp-bt')Show the current thread's call stack.Any

numeric argument displays at most that many frames.The

argument'all'displays all threads.

c-- ('process continue')Continue execution of all threadsinthe

current process.

call-- ('expression --')Evaluate an expression on the current thread.

Displays any returned value with LLDB's default formatting.

continue-- ('process continue')Continue execution of all threadsinthe

current process.

detach-- ('process detach')Detach from the current target process.

di-- ('disassemble')Disassemble specified instructionsinthe

current target.Defaults to the current functionforthe

current threadandstack frame.

dis-- ('disassemble')Disassemble specified instructionsinthe

current target.Defaults to the current functionforthe

current threadandstack frame.

display-- ('_regexp-display')Evaluate an expression at every stop (see

'help target stop-hook'.)

down-- ('_regexp-down')Select a newer stack frame.Defaults to

moving one frame, a numeric argument can specify an arbitrary

number.

env-- ('_regexp-env')Shorthandforviewingandsetting environment

variables.

exit-- ('quit')Quit the LLDB debugger.

f-- ('frame select')Select the current stack frame by index from

within the current thread (see'thread backtrace'.)

file-- ('target create')Create a targetusingthe argument as the

main executable.

finish-- ('thread step-out')Finish executing the current stack frame

andstop after returning.Defaults to current thread unless

specified.

image-- ('target modules')Commandsforaccessing informationforone

ormore target modules.

j-- ('_regexp-jump')Set the program counter to anewaddress.

jump-- ('_regexp-jump')Set the program counter to anewaddress.

kill-- ('process kill')Terminate the current target process.

l-- ('_regexp-list')List relevant source codeusingone of several

shorthand formats.

list-- ('_regexp-list')List relevant source codeusingone of several

shorthand formats.

n-- ('thread step-over')Source level single step, stepping over

calls.Defaults to current thread unless specified.

next-- ('thread step-over')Source level single step, stepping over

calls.Defaults to current thread unless specified.

nexti-- ('thread step-inst-over')Instruction level single step,

stepping over calls.Defaults to current thread unless

specified.

ni-- ('thread step-inst-over')Instruction level single step,

stepping over calls.Defaults to current thread unless

specified.

p-- ('expression --')Evaluate an expression on the current thread.

Displays any returned value with LLDB's default formatting.

parray-- ('expression -Z %1--')Evaluate an expression on the current

thread.Displays any returned value with LLDB's default

formatting.

po-- Evaluate an expression on the current thread.Displays any

returned value with formatting controlled by the type's author.

poarray-- ('expression -O -Z %1--')Evaluate an expression on the

current thread.Displays any returned value with LLDB's default

formatting.

print-- ('expression --')Evaluate an expression on the current thread.

Displays any returned value with LLDB's default formatting.

q-- ('quit')Quit the LLDB debugger.

r-- ('process launch -X true --')Launch the executableinthe

debugger.

rbreak-- ('breakpoint set -r %1')Sets a breakpointorset of

breakpointsinthe executable.

repl-- ('expression -r-- ')Evaluate an expression on the current

thread.Displays any returned value with LLDB's default

formatting.

run-- ('process launch -X true --')Launch the executableinthe

debugger.

s-- ('thread step-in')Source level single step, stepping into

calls.Defaults to current thread unless specified.

si-- ('thread step-inst')Instruction level single step, stepping

into calls.Defaults to current thread unless specified.

sif-- Step through the current block, stoppingifyou step directly

into a function whose name matches the TargetFunctionName.

step-- ('thread step-in')Source level single step, stepping into

calls.Defaults to current thread unless specified.

stepi-- ('thread step-inst')Instruction level single step, stepping

into calls.Defaults to current thread unless specified.

t-- ('thread select')Change the currently selected thread.

tbreak-- ('_regexp-tbreak')Set a one-shot breakpointusingone of

several shorthand formats.

undisplay -- ('_regexp-undisplay')Stop displaying expression at every stop

(specified by stop-hook index.)

up-- ('_regexp-up')Select an older stack frame.Defaults to moving

one frame, a numeric argument can specify an arbitrary number.

x-- ('memory read')Read from the memory of the current target

process.

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • GDB TO LLDB COMMAND MAP Below is a table of GDB commands ...
    狂风无迹阅读 5,687评论 0 2
  • //联系人:石虎QQ: 1224614774昵称:嗡嘛呢叭咪哄 一、概念 英文版:详细链接:点击跳转链接 Debu...
    石虎132阅读 3,547评论 1 4
  • 今天没有出门,不想动。但其实还是有一些事情在扰动着我。练瑜伽的地方发信息给我说年卡到期了,惊了一下,发现自己真记不...
    何偀阅读 1,410评论 0 2
  • 广州的下雨天特别潮湿,走在街头的自己总能看到有一个人,坐在快餐店里吃着不知道是不是地沟油炒出来的菜,等会撑着雨伞回...
    Timor提莫阅读 1,573评论 0 0
  • 请认真,仔细开完,一定要看结尾,谢谢! 现代企业,基本上都有一个协作的软件,使彼此的沟通更加充分。 但是目前来说,...
    杜s阅读 2,372评论 0 0