Differences Between GDB and LLDB

Asked 2 years ago, Updated 2 years ago, 96 views

What is the difference between GDB and LLDB?
In particular, I would like to know about things that can be made into GDB and cannot be made into LLDB, or vice versa.

gdb

2022-09-30 19:42

2 Answers

I didn't use lldb, so it might not be the answer I expected...

While gdb (or gcc) is old,
lldb(llvm/clang) is new

lldb/clang does not support older CPUs.
Also, it seems that support for embedded CPUs is not enough at the moment.
You need gcc/gdb to create a binary for the pa-risc 2.0 CPU used by our hpux.
A binary for embedded CPUs such as SH/RX/MN103 can only be created by gcc/gdb.


2022-09-30 19:42

By purpose, there is a page "LLDB to GDB Command Map" comparing gdb and lldb commands.Especially with lldb, and with gdb, there is no direct corresponding command (probably) which is easy to understand.

As you can see in 774RR's answer, a wide variety of CPU architecture support is likely to be an advantageous case for gdb.Also, gdb has a longer history, so I think there are many people who are familiar with the command system and have a lot of information.


2022-09-30 19:42

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.