[lldb-dev] Evaluating the same expression at the same breakpoint gets slower after a certain number of steps

2019-07-04 Thread Guilherme Andrade via lldb-dev
I have two breakpoint inside methods that are called every frame (C++ project using Unreal), and every time one of them is reached, I evaluate one expression (I'm being able to reproduce this using an undefined name, say "undefinedVariable"). After a few iterations (usually tens), the time it takes

Re: [lldb-dev] Evaluating the same expression at the same breakpoint gets slower after a certain number of steps

2019-07-09 Thread Guilherme Andrade via lldb-dev
gt; > In the debugger lldb, I tried adding a command to the breakpoint, > > > > br comm add > > p does_not_exist > > DONE > > > > and continuing - after a couple dozen times, I didn't see a slowdown. I > tried adding a breakpoint condition, > > &g

Re: [lldb-dev] Evaluating the same expression at the same breakpoint gets slower after a certain number of steps

2019-07-11 Thread Guilherme Andrade via lldb-dev
ached from another >> lldb. I put a breakpoint on CommandObjectTargetModulesLookup::DoExecute >> and resumed execution. In the debuggee lldb, I did >> > >> > tar mod loo -a 0 >> > >> > >> > and auto-repeated return so the same command would b

Re: [lldb-dev] Evaluating the same expression at the same breakpoint gets slower after a certain number of steps

2019-07-15 Thread Guilherme Andrade via lldb-dev
oads? You are asking for a non-existent >> name, so every new source of debug info is a new place to look. >> > >> > It's also possible that we are completing some types during the course >> of the expression evaluation, and then the newly completed types bec

[lldb-dev] SymbolFileDWARF::ParseDeclsForContext getting slow with multiple expr evals

2019-08-03 Thread Guilherme Andrade via lldb-dev
Hi, I've noticed that `expr` causes LLDB to spend a substantial amount of time on SymbolFileDWARF::ParseDeclsForContext as more types get realized. So I put together a tiny project to try to better understand that behavior, and I was wondering if you guys could help me. The project (test.zip) con