Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tell LLDB to ignore files

Tags:

c++

lldb

Is there a way to tell LLDB to ignore a file, i.e. step over code in that file when debugging?

(This could be used as a workaround for 1, 2, 3)

like image 907
lucas clemente Avatar asked Nov 03 '12 17:11

lucas clemente


People also ask

Is LLDB better than GDB?

The main difference between LLDB and GDB is that in LLDB, the programmer can debug programs written in C, Objective C and C++ while, in GDB, the programmer can debug programs written in Ada, C, C++, Objective C, Pascal, FORTRAN and Go.

What is LLDB command?

lldb is a command-line debugger (we may see graphical debuggers later in the semester.) “LLVM” is the compiler framework that includes many things, including the clang compiler that we are using, as well as lldb. gdb is another commonly-used debugger.

How do I stop LLDB?

Type quit to exit the lldb session.

What does LLDB mean in Xcode?

Xcode uses the LLDB as the default debugging tool. The full form of LLDB is Low-level debugger. Breakpoints help a developer to stop the execution of the program at any point. Stopping the execution of the program at any point helps to know the current state of that program and its properties.


1 Answers

There is a setting to avoid stepping into functions whose name match a regular expression,

(lldb) set list target.process.thread.step-avoid-regexp
step-avoid-regexp -- A regular expression defining functions step-in won't stop in.

e.g. put this in your ~/.lldbinit file

settings set target.process.thread.step-avoid-regexp ^[^ ]+ std::|^std::

but in Xcode 4.5.x that's the best that can be done. I mentioned in #2 of your links that inlined stepping support has been added to the LLDB sources at http://lldb.llvm.org/ but that won't be in Xcode until the next release.

like image 96
Jason Molenda Avatar answered Sep 28 '22 04:09

Jason Molenda