File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
source/Host/macosx/objcxx
test/API/macosx/simulator Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -746,8 +746,8 @@ static bool GetMacOSXProcessUserAndGroup(ProcessInstanceInfo &process_info) {
746
746
!match_info.ProcessIDsMatch (process_info))
747
747
continue ;
748
748
749
- // Get CPU type first so we can know to look for iOS simulator is we have
750
- // x86 or x86_64
749
+ // Get CPU type first so we can know to look for iOS simulator if we have
750
+ // a compatible type.
751
751
if (GetMacOSXProcessCPUType (process_info)) {
752
752
if (GetMacOSXProcessArgs (&match_info, process_info)) {
753
753
if (match_info.Matches (process_info))
Original file line number Diff line number Diff line change @@ -77,17 +77,22 @@ def run_with(
77
77
self , "break here" , lldb .SBFileSpec ("hello.c" )
78
78
)
79
79
triple_re = "-" .join ([arch , "apple" , os + vers + ".*" ] + env_list )
80
+ self .expect ("image list -b -t" , patterns = [r"a\.out " + triple_re ])
80
81
if expected_platform is not None :
81
- # The current platform should be expected
82
+ # Verify the platform name.
82
83
self .expect ("platform status" , patterns = [r"Platform: " + expected_platform ])
83
- # Should be able to list processes on the current platform
84
+ # Verify that processes on the platform can be listed.
85
+ #
86
+ # Note: The `Host::FindProcessesImpl()` of some of the Hosts filters out processes which are being debugged.
87
+ # (e.g. code for iOS simulator linked below). So we cannot verify that `a.out` is in the process list
88
+ # (because its already being debugged by this test).
89
+ # https://github.com/llvm/llvm-project/blob/b5dbf8210a57b986b9802304745f4c5c108cf37b/lldb/source/Host/macosx/objcxx/Host.mm#L724
84
90
self .expect (
85
91
"platform process list" ,
86
92
patterns = [
87
93
r"\d+ matching processes were found on \"%s\"" % expected_platform
88
94
],
89
95
)
90
- self .expect ("image list -b -t" , patterns = [r"a\.out " + triple_re ])
91
96
self .check_debugserver (log , os + env , vers )
92
97
93
98
@skipIfAsan
You can’t perform that action at this time.
0 commit comments