Commit ba6a6d57 authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Move DbgUiRemoteBreakin() to the CPU backends.

parent d1836e22
......@@ -36,8 +36,6 @@
#include "ntdll_misc.h"
#include "wine/exception.h"
WINE_DEFAULT_DEBUG_CHANNEL(process);
/******************************************************************************
* RtlGetCurrentPeb [NTDLL.@]
......@@ -703,16 +701,6 @@ NTSTATUS WINAPI DbgUiConvertStateChangeStructure( DBGUI_WAIT_STATE_CHANGE *state
}
/***********************************************************************
* DbgUiRemoteBreakin (NTDLL.@)
*/
void WINAPI DbgUiRemoteBreakin( void *arg )
{
TRACE( "\n" );
if (NtCurrentTeb()->Peb->BeingDebugged) process_breakpoint();
RtlExitUserThread( STATUS_SUCCESS );
}
/***********************************************************************
* DbgUiIssueRemoteBreakin (NTDLL.@)
*/
NTSTATUS WINAPI DbgUiIssueRemoteBreakin( HANDLE process )
......
......@@ -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.@)
*/
......
......@@ -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.@)
*/
......
......@@ -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.@)
*/
......
......@@ -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.@)
*/
......
......@@ -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.@)
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment