Update com.apple.diagnosticd.diagnostic entitlementname to the newer com.apple.private.logging.diagnostic.<rdar://problem/47183116> llvm-svn: 355170
[NFC] Darwin llgs support from Week of CodeThis code represents the Week of Code work I did on bringing uplldb-server LLGS support for Darwin. It does not include theXcode project changes needed
[NFC] Darwin llgs support from Week of CodeThis code represents the Week of Code work I did on bringing uplldb-server LLGS support for Darwin. It does not include theXcode project changes needed, as we don't want to throw that switchuntil more support is implemented (i.e. this change is inert, nobuild systems use it yet. I've verified on Ubuntu 16.04, macOSXcode and macOS cmake builds).This change does some minimal refactoring of code that is sharedwith the Linux LLGS portion, moving it from NativeProcessLinux intoNativeProcessProtocol. That code is also used by NativeProcessDarwin.Current state on Darwin:* Process launching is implemented. (Attach is not). Launching on devices has not yet been tested (FBS/BKS might need a bit of work).* Inferior waitpid monitoring and communication of exit status via MainLoop callback is implemented.* Memory read/write, breakpoints, thread register context, etc. are not yet implemented. This impacts process stop/resume, as the initial launch suspended immediately starts the process up and running because it doesn't know it is supposed to remain stopped.* I implemented the equivalent of MachThreadList as NativeThreadListDarwin, in anticipation that we might want to factor out common parts into NativeThreadList{Protocol} and share some code here. After writing it, though, the fallout from merging Mach Task/Process into a single concept plus some other minor changes makes the whole NativeThreadListDarwin concept nothing more than dead weight. I am likely going to get rid of this class and just manage it directly in NativeProcessDarwin, much like I did for NativeProcessLinux.* There is a stub-out call for starting a STDIO thread. That will go away and adopt the MainLoop pselect-based IOObject reading.I am developing the fully-integrated changes in the following repo,which contains the necessary Xcode bits and the glue that enableslldb-debugserver on a macOS system: https://github.com/tfiala/lldb/tree/llgs-darwinThis change also breaks out a few of the lldb-server tests intotheir own directory, and adds some $qHostInfo tests (not sure whyI didn't write those tests back when I initially implemented thaton the Linux side).llvm-svn: 280604
show more ...