Increase the default maximum stack walk
authorJason Molenda <jason@molenda.com>
Sat, 28 May 2022 20:09:36 +0000 (13:09 -0700)
committerJason Molenda <jason@molenda.com>
Sat, 28 May 2022 20:12:57 +0000 (13:12 -0700)
commit2f23abd6c692134c69b6d19f726d51e11200d8e4
treedfb2946426187bdf87354635d55b5f719965dd46
parentf1983feaa1962b37e590dbf7875481210ace6f17
Increase the default maximum stack walk

lldb will only backtrace a fixed number of stack frames, as a
last-ditch attempt to avoid a runaway looping backtrace.  It's
unusual that anyone ends up depending on this final safety net in
years. I picked the original number of 300000 was picked by seeing
how many stack frames I could make in a small recursive function
on Darwin systems before using the default stack space.  Checking
again today on a modern system, I can exceed this limit & lldb will
not show the original invocation of the recursing call.  Double the
old value to cover this larger maximum possible stack frame count,
as a default value.
(`target.process.thread.max-backtrace-depth`)
lldb/source/Target/TargetProperties.td