• Uncategorized

About linux : How-to-run-sos-extension-commands-through-the-lldb-python-API

Question Detail

I want to script analysis of a .NET process core dump. For example, I would like to run the dumpobj command. However, it is not recognized by the CommandInterpreter:

[email protected]:/mnt/c/Temp/Hub$ lldb -c core_20220303_012350 dotnet
Added Microsoft public symbol server
(lldb) target create "dotnet" --core "core_20220303_012350"
Core file '/mnt/c/Temp/Hub/core_20220303_012350' (x86_64) was loaded.
(lldb) script
Python Interactive Interpreter. To exit, type 'quit()', 'exit()' or Ctrl-D.
>>> ci = lldb.debugger.GetCommandInterpreter()
ci.CommandExists("memory")
>>> True
ci.CommandExists("dumpobj")
>>> False
ci.CommandExists("sos")
>>> False
ci.CommandExists("ext")
>>> False

This shows that the memory command is recognized, but the dumpobj sos extension command is not.

What am I missing? How can I script running dumpobj (for example) ?

Question Answer

No answer for now.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.