From 672daee1fbc0c93f307d98ba6969c2fbc7c01f0f Mon Sep 17 00:00:00 2001 From: DarkSharpness <2040703891@qq.com> Date: Wed, 21 Aug 2024 23:07:40 +0800 Subject: [PATCH] docs: add some examples --- docs/manual.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/manual.md b/docs/manual.md index 46a4dbf..9d2cc2f 100644 --- a/docs/manual.md +++ b/docs/manual.md @@ -190,6 +190,18 @@ Modes for `i` command: - `breakpoint`: Print all breakpoints - `symbol`: Print all symbols +#### Examples + +```shell +x 10i $pc # Print the next 10 instructions +x 10w $sp # Print the next 10 words starting from the stack pointer +bt # Print the backtrace of the current function call stack +s 10 # Execute the next 10 instructions +b main + 8 # Set a breakpoint at the address of main + 8 +c # Continue execution until the next breakpoint or the end of the program +x 2i $pc - 8 # Print the previous 2 instructions +``` + ## Q & A TODO...