File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed
source/Plugins/Process/Utility
test/API/functionalities/plugins/python_os_plugin Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -780,13 +780,8 @@ StopInfoSP StopInfoMachException::CreateStopReasonWithMachException(
780
780
// but if it is for another thread, we can just report no reason. We
781
781
// don't need to worry about stepping over the breakpoint here, that
782
782
// will be taken care of when the thread resumes and notices that
783
- // there's a breakpoint under the pc. If we have an operating system
784
- // plug-in, we might have set a thread specific breakpoint using the
785
- // operating system thread ID, so we can't make any assumptions about
786
- // the thread ID so we must always report the breakpoint regardless
787
- // of the thread.
788
- if (bp_site_sp->ValidForThisThread (thread) ||
789
- thread.GetProcess ()->GetOperatingSystem () != nullptr )
783
+ // there's a breakpoint under the pc.
784
+ if (bp_site_sp->ValidForThisThread (thread))
790
785
return StopInfo::CreateStopReasonWithBreakpointSiteID (
791
786
thread, bp_site_sp->GetID ());
792
787
else if (is_trace_if_actual_breakpoint_missing)
Original file line number Diff line number Diff line change @@ -219,3 +219,12 @@ def run_python_os_step(self):
219
219
6 ,
220
220
"Make sure we stepped from line 5 to line 6 in main.c" ,
221
221
)
222
+
223
+ thread_bp_number = lldbutil .run_break_set_by_source_regexp (
224
+ self , "Set tid-specific breakpoint here" , num_expected_locations = 1
225
+ )
226
+ breakpoint = target .FindBreakpointByID (thread_bp_number )
227
+ # This breakpoint should not be hit.
228
+ breakpoint .SetThreadID (123 )
229
+ process .Continue ()
230
+ self .assertState (process .GetState (), lldb .eStateExited )
Original file line number Diff line number Diff line change 3
3
int main (int argc , char const * argv [], char const * envp [])
4
4
{
5
5
puts ("stop here" ); // Set breakpoint here
6
+ puts ("hello" );
7
+ puts ("Set tid-specific breakpoint here" );
6
8
return 0 ;
7
9
}
You can’t perform that action at this time.
0 commit comments