[llvm-dev] Skipping a function/line in the debug information?
Adrian Prantl via llvm-dev
llvm-dev at lists.llvm.org
Mon Feb 24 13:29:14 PST 2020
The first two options that come to mind are:
1. don't generate debug info for these functions
Many debuggers will avoid stepping into functions without debug info.
2. mark the function as as DW_AT_artifical to communicate to your debugger to skip it. I don't know if LLDB does this automatically, but you could easily make that the behavior for your language. For details it's best to ask on lldb-dev.
-- adrian
> On Feb 24, 2020, at 12:54 PM, Levo DeLellis via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> I'm not sure where to look or if it's possible, if someone could point me in the right direction that would be great
>
> There's a few internal functions in my language like WriteLine. When I use lldb to 'thread step-in' (or vscode) the debugger will enter the function. Is it possible to let lldb know it should skip the function? I tried using clang to find some clues but puts and other function all allow me to step in and gets a missing source error.
> Is there any llvm-ir code I can look at to show me how to skip a function? Or a language that generates the appropriate ir?
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
More information about the llvm-dev
mailing list