There is no automatic way to do this.
You cannot use data formatters because they are type-related and there is no “type of flag case”. And the formats you can pass on the command line to register readformat all the value.
"" , , .
lldb, , , . :
http://llvm.org/svn/llvm-project/lldb/trunk/examples/python/cmdtemplate.py
, :
frame = exe_ctx.GetFrame()
:
rflags_value = frame.FindRegister("rflags")
error = lldb.SBError()
uint_value = rflags_value.GetValueAsUnsigned(error)
SBData :
data_value = rflags_value.GetData()
SBData uint8. , :
first_byte = data_value.uint8[0]
... , , , , , . __init , lldb. :
command script import <path_to_py>/my_command.py
lldb.
API lldb:
http://lldb.llvm.org/python_reference/index.html
"script python" REPL lldb ( script), API .