[lldb-dev] Hiding trampoline functions from the backtrace, is it possible ?

Nat! via lldb-dev lldb-dev at lists.llvm.org
Tue Sep 24 03:01:47 PDT 2019


Nat! schrieb am 24.09.19 um 00:28:
> 
> 
> On 23.09.19 19:22, Adrian Prantl wrote:
>> I think the best mechanism for this would be to ensure that the 
>> trampolines are marked up as DW_AT_artificial and/or DW_AT_trampoline 
>> by the compiler. I'm pretty sure LLDB then already knows how to hide 
>> artificial frames (somebody else can probably provide pointers for how 
>> that works).
>>
>> -- adrian
>>
> That's a good idea. I can just put __attribute__((artificial)__ on my 
> dispatch functions. That's the low-hanging-fruit code I like :)
> And though it might not fully work yet with lldb , it may in the future.
> 

Unfortunately clang complains that the "'artificial' attribute only 
applies to inline functions" (why ?). Bummer.

Ciao
    Nat!



More information about the lldb-dev mailing list