title: lldb: View all registers on macOS
body: <p>What's the equivalent of <code>gdb</code>'s <code>info registers</code> with <code>lldb</code>?
  I'm trying with something like</p>
  
  <pre><code>$ lldb /path/to/hello_world
  (lldb) target create "/Users/kakyo/Desktop/LearnAssembly/hello_world/Debug/hello_world"
  Current executable set to '/Users/kakyo/Desktop/LearnAssembly/hello_world/Debug/hello_world' (x86_64).
  (lldb) register read
  error: invalid process
  </code></pre>
  
  <p>Adding <code>sudo</code> or trying any other executables or .app bundles gives me the same <code>invalid process</code> error.</p>
  
  <p>What's wrong here?</p>
  
  <p>I checked many cheatsheets and couldn't find the right command or sequence.</p>