Do qProcessInfo-hint binary loading later in Process setup
authorJason Molenda <jason@molenda.com>
Wed, 18 Jan 2023 20:29:52 +0000 (12:29 -0800)
committerJason Molenda <jason@molenda.com>
Wed, 18 Jan 2023 20:33:05 +0000 (12:33 -0800)
commitdb223b7f01f70cbd8459d0db9b20dfe9a3b099a7
tree66b20795340acf379b6c5ea5392adeafddce858e
parent5d98dc7124dcf1cc231b7fc67fb55b528a3e493d
Do qProcessInfo-hint binary loading later in Process setup

The remote stub may give lldb hints about binaries to
be loaded, especially in a firmware type environment, and
relay those hints in the qProcessInfo response.  The
binary loading was done very early in Process setup, before
we had any threads, and this made it complicated for people
to write dSYM python scripts which need access to a thread.
Delay the binary loading until a bit later in the Process
startup.

Differential Revision: https://reviews.llvm.org/D141972
rdar://104235301
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h