ntdll: Move DbgUiRemoteBreakin() to the CPU backends.

This commit is contained in:
Alexandre Julliard 2024-01-29 17:07:57 +01:00
parent d1836e226c
commit ba6a6d5781
6 changed files with 102 additions and 12 deletions

View file

@ -36,8 +36,6 @@
#include "ntdll_misc.h"
#include "wine/exception.h"
WINE_DEFAULT_DEBUG_CHANNEL(process);
/******************************************************************************
* RtlGetCurrentPeb [NTDLL.@]
@ -702,16 +700,6 @@ NTSTATUS WINAPI DbgUiConvertStateChangeStructure( DBGUI_WAIT_STATE_CHANGE *state
return STATUS_SUCCESS;
}
/***********************************************************************
* DbgUiRemoteBreakin (NTDLL.@)
*/
void WINAPI DbgUiRemoteBreakin( void *arg )
{
TRACE( "\n" );
if (NtCurrentTeb()->Peb->BeingDebugged) process_breakpoint();
RtlExitUserThread( STATUS_SUCCESS );
}
/***********************************************************************
* DbgUiIssueRemoteBreakin (NTDLL.@)
*/

View file

@ -1685,6 +1685,26 @@ void WINAPI process_breakpoint(void)
}
#endif
/***********************************************************************
* DbgUiRemoteBreakin (NTDLL.@)
*/
void WINAPI DbgUiRemoteBreakin( void *arg )
{
if (NtCurrentTeb()->Peb->BeingDebugged)
{
__TRY
{
DbgBreakPoint();
}
__EXCEPT_ALL
{
/* do nothing */
}
__ENDTRY
}
RtlExitUserThread( STATUS_SUCCESS );
}
/**********************************************************************
* DbgBreakPoint (NTDLL.@)
*/

View file

@ -1582,6 +1582,26 @@ __ASM_GLOBAL_FUNC( process_breakpoint,
"mov w0, #0\n\t" /* ExceptionContinueExecution */
"ret" )
/***********************************************************************
* DbgUiRemoteBreakin (NTDLL.@)
*/
void WINAPI DbgUiRemoteBreakin( void *arg )
{
if (NtCurrentTeb()->Peb->BeingDebugged)
{
__TRY
{
DbgBreakPoint();
}
__EXCEPT_ALL
{
/* do nothing */
}
__ENDTRY
}
RtlExitUserThread( STATUS_SUCCESS );
}
/**********************************************************************
* DbgBreakPoint (NTDLL.@)
*/

View file

@ -2016,6 +2016,26 @@ __ASM_GLOBAL_FUNC( "#process_breakpoint",
"mov w0, #0\n\t" /* ExceptionContinueExecution */
"ret" )
/***********************************************************************
* DbgUiRemoteBreakin (NTDLL.@)
*/
void WINAPI DbgUiRemoteBreakin( void *arg )
{
if (NtCurrentTeb()->Peb->BeingDebugged)
{
__TRY
{
DbgBreakPoint();
}
__EXCEPT_ALL
{
/* do nothing */
}
__ENDTRY
}
RtlExitUserThread( STATUS_SUCCESS );
}
/**********************************************************************
* DbgBreakPoint (NTDLL.@)
*/

View file

@ -646,6 +646,27 @@ void WINAPI process_breakpoint(void)
}
/***********************************************************************
* DbgUiRemoteBreakin (NTDLL.@)
*/
void WINAPI DbgUiRemoteBreakin( void *arg )
{
if (NtCurrentTeb()->Peb->BeingDebugged)
{
__TRY
{
DbgBreakPoint();
}
__EXCEPT_ALL
{
/* do nothing */
}
__ENDTRY
}
RtlExitUserThread( STATUS_SUCCESS );
}
/**********************************************************************
* DbgBreakPoint (NTDLL.@)
*/

View file

@ -1745,6 +1745,27 @@ void WINAPI process_breakpoint(void)
#endif
/***********************************************************************
* DbgUiRemoteBreakin (NTDLL.@)
*/
void WINAPI DbgUiRemoteBreakin( void *arg )
{
if (NtCurrentTeb()->Peb->BeingDebugged)
{
__TRY
{
DbgBreakPoint();
}
__EXCEPT_ALL
{
/* do nothing */
}
__ENDTRY
}
RtlExitUserThread( STATUS_SUCCESS );
}
/**********************************************************************
* DbgBreakPoint (NTDLL.@)
*/