4

I have been looking around for quite a while trying to figure out how to switch from lldb to gdb and could not find anything on how to switch between the 2 in Xcode 6.1. I am trying to debug my app and I might be able to figure it out if I use gdb instead of lldb but I don't know if it will help me.

Any suggestions on which type of debugging is better and how to switch between the 2. Any input would be greatly appreciated.

Thanks in advance.

0

1 Answer 1

2

The debugger for Xcode 6 is lldb, there is no switching to gdb.

There is no reason to need gdb. What is your problem with lldb, most of the commands are the same.

See: LLDB to GDB Command Map and The LLDB Debugger.

Sign up to request clarification or add additional context in comments.

6 Comments

I was just having some trouble with the lldb debugger and wanted to know if gdb is easier to understand or use or not.
It is not easier. Both gdb and lldb are "Old School" and cryptic.
"There is no reason to need gdb" - except that lldb does not have support for some DWARF-2 features, while gdb does. The library code I'm trying to debug was compiled with gcc, and it runs fine on the iOS device, but lldb gets confused and doesn't know how to handle the format. So gdb is necessary.
FYI XCode 7.2 lldb gets the alignment of structures wrong sometimes. I would like access to gdb as well.
LLDB not use UTF-8 Cyrylic
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.