LLDB notes

This is a post summarizing my work with LLDB on Mac. I will include the basic functionalities such as using a GUI, debug throgh programs, etc.

  • run with arguments
    • lldb — args (for example, lldb — ./test.o)
  • set break points at function
    • breakpoint set –name func_name (breakpoint set –name main)
      • NOTE: has to be “breakpoint” not “b”. “b” would not report an error, but it would tell you unable to locate the function. This is tricky for gdb users.

I have used LLDB when I have to work on mac. It comes with the developer tools.

You can set the break points the same way as in GDB.

LLDB to GDB map


General tutorials





To enter the GUI mode, just type¬†gui¬†from the lldb command line when you’re debugging.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s