[lldb/Core] Change large function threshold variable into a setting.
authorMed Ismail Bennani <medismail.bennani@gmail.com>
Thu, 25 Feb 2021 21:28:51 +0000 (21:28 +0000)
committerMed Ismail Bennani <medismail.bennani@gmail.com>
Thu, 25 Feb 2021 21:35:04 +0000 (22:35 +0100)
commitb889ef4214bc6dc8880fdd4badc0dcd9a3197753
tree34979b48d1df7ebbfb6b8dbae591be083e25f45f
parent7b1d2a2891d812ffc1bb08712143c79e457acbd4
[lldb/Core] Change large function threshold variable into a setting.

This patch replaces the static large function threshold variable with a
global debugger setting (`stop-disassembly-max-size`).

The default threshold is now set to 32KB (instead of 8KB) and can be modified.

rdar://74726362

Differential Revision: https://reviews.llvm.org/D97486

Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
lldb/include/lldb/Core/Debugger.h
lldb/source/Commands/CommandObjectDisassemble.cpp
lldb/source/Core/CoreProperties.td
lldb/source/Core/Debugger.cpp
lldb/test/Shell/Commands/command-disassemble-process.yaml
lldb/test/Shell/Commands/command-disassemble.s