日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

lldb使用

發布時間:2025/4/16 编程问答 19 豆豆
生活随笔 收集整理的這篇文章主要介紹了 lldb使用 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

常用 si,ni ,ex, mem,di,reg,b,c,x

以下內容是lldb幫助文檔中內容:

?

? apropos ? ? ? ? ? -- List debugger commands related to a word or subject.

? breakpoint? ? ? ? -- Commands for operating on breakpoints (see 'help b' for

?? ? ? ? ? ? ? ? ? ? ? shorthand.)

? bugreport ? ? ? ? -- Commands for creating domain-specific bug reports.

?

? command ? ? ? ? ? -- 這 個可以 自定義命令

         command alias hp help. ? ?用hp 替換help命令

?

? disassemble ? ? ? --顯示匯編代碼 d di dis 等縮寫都可以

? expression? ? ? ? -- 顯示變 量的值

        ex ? ?n

? frame? ? ? ? ? ? :

  info? 用法 frame info 顯示一些當前線程信息

  select? ? ?frame select 顯示當前調試線程位置信息

  variable? frame var? ?顯示當前調試線程局部變量信息

?

?

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

?? ? ? ? ? ? ? ? ? ? ? port is specified, port 41139 is assumed.

? language? ? ? ? ? -- Commands specific to a source language.

? log ? ? ? ? ? ? ? -- Commands controlling LLDB internal logging.

?

memory --操作當前進程內存mem read &result 讀取變量result中的值mem read -c 100 &result 顯示100字節

?

? platform? ? ? ? ? -- Commands to manage and create platforms.

? plugin? ? ? ? ? ? -- lldb插件管理

? process ? ? ? ? ? -- Commands for interacting with processes on the current

?? ? ? ? ? ? ? ? ? ? ? platform.

? quit? ? ? ? ? ? ? -- 退出lldb

? register? ? ? ? ? -- 讀寫寄存器值

      

?

? script? ? ? ? ? ? -- Invoke the script interpreter with provided code and

?? ? ? ? ? ? ? ? ? ? ? display any results.? Start the interactive interpreter

?? ? ? ? ? ? ? ? ? ? ? if no code is supplied.

? settings? ? ? ? ? -- Commands for managing LLDB settings.

? source? ? ? ? ? ? -- 通過調試信息展示源文件信息

? target? ? ? ? ? ? -- Commands for operating on debugger targets.

? thread? ? ? ? ? ? -- Commands for operating on one or more threads in the

?? ? ? ? ? ? ? ? ? ? ? current process.

? type? ? ? ? ? ? ? -- Commands for operating on the type system.

? version ? ? ? ? ? -- Show the LLDB debugger version.

? watchpoint? ? ? ? -- Commands for operating on watchpoints.

Current command abbreviations (type 'help command alias' for more info):

? add-dsym? --增加符號表

? attach? ? -- 附加進程

? b? ? ? 設置斷點

? bt? ? ? ? 顯示當前棧信息,frame中有的命令功能相同

? c? ? ? ? 繼續運行當前進程中的所有線程

? call? ? ? 直接調用表達示 比如 call 1+1

? continue? -- Continue execution of all threads in the current process.

? detach? ? -- Detach from the current target process.

? di? ? ? ??? dis 顯示反匯編代碼? ? ??

? display ? -- Evaluate an expression at every stop (see 'help target

?? ? ? ? ? ? ? stop-hook'.)

? down? ? ? -- Select a newer stack frame.? Defaults to moving one frame, a

?? ? ? ? ? ? ? numeric argument can specify an arbitrary number.

? env ? ? ? -- Shorthand for viewing and setting environment variables.

? exit? ? ? -- 退出

? f ? ? ? ? -- Select the current stack frame by index from within the current

?? ? ? ? ? ? ? thread (see 'thread backtrace'.)

? file? ? ? -- Create a target using the argument as the main executable.

? finish? ? -- Finish executing the current stack frame and stop after

?? ? ? ? ? ? ? returning.? Defaults to current thread unless specified.

? image ? ? -- Commands for accessing information for one or more target

?? ? ? ? ? ? ? modules.

? j ? ? ? ? -- Set the program counter to a new address.

? jump? ? ? -- Set the program counter to a new address.

? kill? ? ? -- Terminate the current target process.

? l ? ? ? ? --顯示源碼

? list? ? ?

? n? ? ? ? ?源碼級別單步

? next? ? ? -- Source level single step, stepping over calls.? Defaults to

?? ? ? ? ? ? ? current thread unless specified.

? nexti ? ? -- Instruction level single step, stepping over calls.? Defaults to

?? ? ? ? ? ? ? current thread unless specified.

? ni? ? ? ? 匯編級別單步

? p ? ? ? ? -- Evaluate an expression on the current thread.? Displays any

?? ? ? ? ? ? ? returned value with LLDB's default formatting.

? parray? ? -- 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 ? -- Evaluate an expression on the current thread.? Displays any

?? ? ? ? ? ? ? returned value with LLDB's default formatting.

? print ? ? -- Evaluate an expression on the current thread.? Displays any

?? ? ? ? ? ? ? returned value with LLDB's default formatting.

? q ? ? ? ? -- Quit the LLDB debugger.

? r ? ? ? ? -- Launch the executable in the debugger.

? rbreak? ? -- Sets a breakpoint or set of breakpoints in the executable.

? repl? ? ? -- Evaluate an expression on the current thread.? Displays any

?? ? ? ? ? ? ? returned value with LLDB's default formatting.

? run ? ? ? -- Launch the executable in the debugger.

? s ? ? ? ? -- Source level single step, stepping into calls.? Defaults to

?? ? ? ? ? ? ? current thread unless specified.

? si? ? ? ? -- Instruction level single step, stepping into calls.? Defaults to

?? ? ? ? ? ? ? current thread unless specified.

? sif ? ? ? -- Step through the current block, stopping if you step directly

?? ? ? ? ? ? ? into a function whose name matches the TargetFunctionName.

? step? ? ? -- Source level single step, stepping into calls.? Defaults to

?? ? ? ? ? ? ? current thread unless specified.

? stepi ? ? -- Instruction level single step, stepping into calls.? Defaults to

?? ? ? ? ? ? ? current thread unless specified.

? t ? ? ? ? -- Change the currently selected thread.

? tbreak? ? -- Set a one-shot breakpoint using one of several shorthand

?? ? ? ? ? ? ? formats.

? undisplay -- Stop displaying expression at every stop (specified by stop-hook

?? ? ? ? ? ? ? index.)

? up? ? ? ? -- Select an older stack frame.? Defaults to moving one frame, a

?? ? ? ? ? ? ? numeric argument can specify an arbitrary number.

? x? ? ? ? ?讀內存地址

轉載于:https://www.cnblogs.com/fply/p/8425025.html

總結

以上是生活随笔為你收集整理的lldb使用的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。