Search code examples
lldbeflags

Ho to set the zero flag with lldb?


Is there a way to set the zero flag with the lldb debugger?

something like set ($eflags)= from gdb there only seems to be register write rflags ... to set all


Solution

  • Here is a way to set the zero flag in lldb:

    (lldb) register write rflags `$rflags|0x40`