summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2020-01-02 15:47:47 -0800
committerLang Hames <lhames@gmail.com>2020-01-02 16:05:23 -0800
commit355983103f008b094b5cdd26233eb0ed7113e7ec (patch)
treeb7f9a4d77825e90d0448ca26dc56279ed5157e84 /lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp
parent3e5eac035801abe81c6c9d7512f924e2f6de41b5 (diff)
downloadbcm5719-llvm-355983103f008b094b5cdd26233eb0ed7113e7ec.tar.gz
bcm5719-llvm-355983103f008b094b5cdd26233eb0ed7113e7ec.zip
[lli] Add a filter to avoid importing the process's main symbol.
If JIT'd code fails to define a main function and we import the process's definition then we will end up recursively calling lli's main until we overflow the stack and crash. This filter fixes the issue by ensuring that the process's main function is never imported. This results in lli producing a much friendlier "symbol not found" error when JIT'd code fails to define main.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud