[Lldb-commits] [PATCH] D140102: [lldb] Explain memory history provider in mem hist command description
Michael Buch via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Dec 15 06:23:26 PST 2022
Michael137 created this revision.
Michael137 added reviewers: jingham, JDevlieghere.
Herald added a project: All.
Michael137 requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
eviously, using `memory history` command on an executable
which wasn't compiled with ASAN would yield following error:
(lldb) mem hist 0x0
error: no available memory history provider
Looking at the help message for this command didn't really
make this error message any clearer.
This patch changes the `help memory history` description to
at least mention how a history provider could be set up.
After the patch:
(lldb) help mem hist
Print recorded stack traces for allocation/deallocation events associated with an address.
This command requires a memory history provider plugin to be present. For example, compile the debuggee with address sanitizer.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D140102
Files:
lldb/source/Commands/CommandObjectMemory.cpp
Index: lldb/source/Commands/CommandObjectMemory.cpp
===================================================================
--- lldb/source/Commands/CommandObjectMemory.cpp
+++ lldb/source/Commands/CommandObjectMemory.cpp
@@ -1578,7 +1578,11 @@
: CommandObjectParsed(interpreter, "memory history",
"Print recorded stack traces for "
"allocation/deallocation events "
- "associated with an address.",
+ "associated with an address."
+ "\n"
+ "This command requires a memory history "
+ "provider plugin to be present. For example, "
+ "compile the debuggee with address sanitizer.",
nullptr,
eCommandRequiresTarget | eCommandRequiresProcess |
eCommandProcessMustBePaused |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140102.483159.patch
Type: text/x-patch
Size: 986 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20221215/ef0b4c00/attachment.bin>
More information about the lldb-commits
mailing list