1999-05-23 21:57:42 +02:00
|
|
|
/*
|
|
|
|
* Win32 debugger functions
|
|
|
|
*
|
|
|
|
* Copyright (C) 1999 Alexandre Julliard
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1999-05-23 21:57:42 +02:00
|
|
|
*/
|
|
|
|
|
2000-11-26 23:39:50 +01:00
|
|
|
#include <stdio.h>
|
1999-07-31 19:36:48 +02:00
|
|
|
#include <string.h>
|
|
|
|
|
2000-03-08 13:01:30 +01:00
|
|
|
#include "winerror.h"
|
2000-11-26 23:39:50 +01:00
|
|
|
#include "wine/winbase16.h"
|
2001-07-19 02:39:09 +02:00
|
|
|
#include "wine/server.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "ntstatus.h"
|
2000-11-26 23:39:50 +01:00
|
|
|
#include "stackframe.h"
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
1999-05-23 21:57:42 +02:00
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(debugstr);
|
1999-05-23 21:57:42 +02:00
|
|
|
|
|
|
|
|
|
|
|
/******************************************************************************
|
2001-06-13 22:13:18 +02:00
|
|
|
* WaitForDebugEvent (KERNEL32.@)
|
1999-05-23 21:57:42 +02:00
|
|
|
*
|
2000-12-20 00:33:03 +01:00
|
|
|
* Waits for a debugging event to occur in a process being debugged before
|
|
|
|
* filling out the debug event structure.
|
1999-05-23 21:57:42 +02:00
|
|
|
*
|
2000-12-20 00:33:03 +01:00
|
|
|
* RETURNS
|
1999-05-23 21:57:42 +02:00
|
|
|
*
|
2000-12-20 00:33:03 +01:00
|
|
|
* Returns true if a debug event occurred and false if the call timed out.
|
1999-05-23 21:57:42 +02:00
|
|
|
*/
|
2000-12-20 00:33:03 +01:00
|
|
|
BOOL WINAPI WaitForDebugEvent(
|
2001-02-12 04:49:57 +01:00
|
|
|
LPDEBUG_EVENT event, /* [out] Address of structure for event information. */
|
|
|
|
DWORD timeout) /* [in] Number of milliseconds to wait for event. */
|
1999-05-23 21:57:42 +02:00
|
|
|
{
|
2000-08-30 02:00:48 +02:00
|
|
|
BOOL ret;
|
2001-01-26 01:22:26 +01:00
|
|
|
DWORD res;
|
|
|
|
|
|
|
|
for (;;)
|
1999-05-23 21:57:42 +02:00
|
|
|
{
|
2001-01-26 01:22:26 +01:00
|
|
|
HANDLE wait = 0;
|
2001-11-30 19:46:42 +01:00
|
|
|
debug_event_t data;
|
|
|
|
SERVER_START_REQ( wait_debug_event )
|
2001-01-26 01:22:26 +01:00
|
|
|
{
|
|
|
|
req->get_handle = (timeout != 0);
|
2001-11-30 19:46:42 +01:00
|
|
|
wine_server_set_reply( req, &data, sizeof(data) );
|
|
|
|
if (!(ret = !wine_server_call_err( req ))) goto done;
|
2000-08-30 02:00:48 +02:00
|
|
|
|
2001-11-30 19:46:42 +01:00
|
|
|
if (!wine_server_reply_size(reply)) /* timeout */
|
2001-01-26 01:22:26 +01:00
|
|
|
{
|
2001-11-30 19:46:42 +01:00
|
|
|
wait = reply->wait;
|
2001-01-26 01:22:26 +01:00
|
|
|
ret = FALSE;
|
|
|
|
goto done;
|
|
|
|
}
|
2001-11-30 19:46:42 +01:00
|
|
|
event->dwDebugEventCode = data.code;
|
|
|
|
event->dwProcessId = (DWORD)reply->pid;
|
|
|
|
event->dwThreadId = (DWORD)reply->tid;
|
|
|
|
switch(data.code)
|
2001-01-26 01:22:26 +01:00
|
|
|
{
|
|
|
|
case EXCEPTION_DEBUG_EVENT:
|
2001-11-30 19:46:42 +01:00
|
|
|
event->u.Exception.ExceptionRecord = data.info.exception.record;
|
|
|
|
event->u.Exception.dwFirstChance = data.info.exception.first;
|
2001-01-26 01:22:26 +01:00
|
|
|
break;
|
|
|
|
case CREATE_THREAD_DEBUG_EVENT:
|
2001-11-30 19:46:42 +01:00
|
|
|
event->u.CreateThread.hThread = data.info.create_thread.handle;
|
|
|
|
event->u.CreateThread.lpThreadLocalBase = data.info.create_thread.teb;
|
|
|
|
event->u.CreateThread.lpStartAddress = data.info.create_thread.start;
|
2001-01-26 01:22:26 +01:00
|
|
|
break;
|
|
|
|
case CREATE_PROCESS_DEBUG_EVENT:
|
2001-11-30 19:46:42 +01:00
|
|
|
event->u.CreateProcessInfo.hFile = data.info.create_process.file;
|
|
|
|
event->u.CreateProcessInfo.hProcess = data.info.create_process.process;
|
|
|
|
event->u.CreateProcessInfo.hThread = data.info.create_process.thread;
|
|
|
|
event->u.CreateProcessInfo.lpBaseOfImage = data.info.create_process.base;
|
|
|
|
event->u.CreateProcessInfo.dwDebugInfoFileOffset = data.info.create_process.dbg_offset;
|
|
|
|
event->u.CreateProcessInfo.nDebugInfoSize = data.info.create_process.dbg_size;
|
|
|
|
event->u.CreateProcessInfo.lpThreadLocalBase = data.info.create_process.teb;
|
|
|
|
event->u.CreateProcessInfo.lpStartAddress = data.info.create_process.start;
|
|
|
|
event->u.CreateProcessInfo.lpImageName = data.info.create_process.name;
|
|
|
|
event->u.CreateProcessInfo.fUnicode = data.info.create_process.unicode;
|
2001-01-26 01:22:26 +01:00
|
|
|
break;
|
|
|
|
case EXIT_THREAD_DEBUG_EVENT:
|
2001-11-30 19:46:42 +01:00
|
|
|
event->u.ExitThread.dwExitCode = data.info.exit.exit_code;
|
2001-01-26 01:22:26 +01:00
|
|
|
break;
|
|
|
|
case EXIT_PROCESS_DEBUG_EVENT:
|
2001-11-30 19:46:42 +01:00
|
|
|
event->u.ExitProcess.dwExitCode = data.info.exit.exit_code;
|
2001-01-26 01:22:26 +01:00
|
|
|
break;
|
|
|
|
case LOAD_DLL_DEBUG_EVENT:
|
2001-11-30 19:46:42 +01:00
|
|
|
event->u.LoadDll.hFile = data.info.load_dll.handle;
|
|
|
|
event->u.LoadDll.lpBaseOfDll = data.info.load_dll.base;
|
|
|
|
event->u.LoadDll.dwDebugInfoFileOffset = data.info.load_dll.dbg_offset;
|
|
|
|
event->u.LoadDll.nDebugInfoSize = data.info.load_dll.dbg_size;
|
|
|
|
event->u.LoadDll.lpImageName = data.info.load_dll.name;
|
|
|
|
event->u.LoadDll.fUnicode = data.info.load_dll.unicode;
|
2001-01-26 01:22:26 +01:00
|
|
|
break;
|
|
|
|
case UNLOAD_DLL_DEBUG_EVENT:
|
2001-11-30 19:46:42 +01:00
|
|
|
event->u.UnloadDll.lpBaseOfDll = data.info.unload_dll.base;
|
2001-01-26 01:22:26 +01:00
|
|
|
break;
|
|
|
|
case OUTPUT_DEBUG_STRING_EVENT:
|
2001-11-30 19:46:42 +01:00
|
|
|
event->u.DebugString.lpDebugStringData = data.info.output_string.string;
|
|
|
|
event->u.DebugString.fUnicode = data.info.output_string.unicode;
|
|
|
|
event->u.DebugString.nDebugStringLength = data.info.output_string.length;
|
2001-01-26 01:22:26 +01:00
|
|
|
break;
|
|
|
|
case RIP_EVENT:
|
2001-11-30 19:46:42 +01:00
|
|
|
event->u.RipInfo.dwError = data.info.rip_info.error;
|
|
|
|
event->u.RipInfo.dwType = data.info.rip_info.type;
|
2001-01-26 01:22:26 +01:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
done:
|
2001-11-19 03:24:14 +01:00
|
|
|
/* nothing */ ;
|
2000-08-30 02:00:48 +02:00
|
|
|
}
|
2001-11-30 19:46:42 +01:00
|
|
|
SERVER_END_REQ;
|
2001-01-26 01:22:26 +01:00
|
|
|
if (ret) return TRUE;
|
|
|
|
if (!wait) break;
|
|
|
|
res = WaitForSingleObject( wait, timeout );
|
|
|
|
CloseHandle( wait );
|
|
|
|
if (res != STATUS_WAIT_0) break;
|
1999-05-23 21:57:42 +02:00
|
|
|
}
|
2001-01-26 01:22:26 +01:00
|
|
|
SetLastError( ERROR_SEM_TIMEOUT );
|
|
|
|
return FALSE;
|
1999-05-23 21:57:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**********************************************************************
|
2001-06-13 22:13:18 +02:00
|
|
|
* ContinueDebugEvent (KERNEL32.@)
|
2000-12-20 00:33:03 +01:00
|
|
|
*
|
|
|
|
* Enables a thread that previously produced a debug event to continue.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
*
|
|
|
|
* True if the debugger is listed as the processes owner and the process
|
|
|
|
* and thread are valid.
|
1999-05-23 21:57:42 +02:00
|
|
|
*/
|
2000-12-20 00:33:03 +01:00
|
|
|
BOOL WINAPI ContinueDebugEvent(
|
2001-02-12 04:49:57 +01:00
|
|
|
DWORD pid, /* [in] The id of the process to continue. */
|
|
|
|
DWORD tid, /* [in] The id of the thread to continue. */
|
|
|
|
DWORD status) /* [in] The rule to apply to unhandled exeptions. */
|
1999-05-23 21:57:42 +02:00
|
|
|
{
|
2000-08-30 02:00:48 +02:00
|
|
|
BOOL ret;
|
2001-02-27 03:09:16 +01:00
|
|
|
SERVER_START_REQ( continue_debug_event )
|
2000-08-30 02:00:48 +02:00
|
|
|
{
|
2002-10-03 21:54:57 +02:00
|
|
|
req->pid = pid;
|
|
|
|
req->tid = tid;
|
2000-08-30 02:00:48 +02:00
|
|
|
req->status = status;
|
2001-11-30 19:46:42 +01:00
|
|
|
ret = !wine_server_call_err( req );
|
2000-08-30 02:00:48 +02:00
|
|
|
}
|
|
|
|
SERVER_END_REQ;
|
|
|
|
return ret;
|
1999-05-23 21:57:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**********************************************************************
|
2001-06-13 22:13:18 +02:00
|
|
|
* DebugActiveProcess (KERNEL32.@)
|
2000-12-20 00:33:03 +01:00
|
|
|
*
|
2002-02-27 02:28:30 +01:00
|
|
|
* Attempts to attach the debugger to a process.
|
2000-12-20 00:33:03 +01:00
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
*
|
|
|
|
* True if the debugger was attached to process.
|
1999-05-23 21:57:42 +02:00
|
|
|
*/
|
2000-12-20 00:33:03 +01:00
|
|
|
BOOL WINAPI DebugActiveProcess(
|
2001-02-12 04:49:57 +01:00
|
|
|
DWORD pid) /* [in] The process to be debugged. */
|
1999-05-23 21:57:42 +02:00
|
|
|
{
|
2000-08-30 02:00:48 +02:00
|
|
|
BOOL ret;
|
2001-02-27 03:09:16 +01:00
|
|
|
SERVER_START_REQ( debug_process )
|
2000-08-30 02:00:48 +02:00
|
|
|
{
|
2002-10-03 21:54:57 +02:00
|
|
|
req->pid = pid;
|
2002-02-27 02:28:30 +01:00
|
|
|
req->attach = 1;
|
|
|
|
ret = !wine_server_call_err( req );
|
|
|
|
}
|
|
|
|
SERVER_END_REQ;
|
|
|
|
return ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**********************************************************************
|
|
|
|
* DebugActiveProcessStop (KERNEL32.@)
|
|
|
|
*
|
|
|
|
* Attempts to detach the debugger from a process.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
*
|
|
|
|
* True if the debugger was detached from the process.
|
|
|
|
*/
|
|
|
|
BOOL WINAPI DebugActiveProcessStop(
|
|
|
|
DWORD pid) /* [in] The process to be detached. */
|
|
|
|
{
|
|
|
|
BOOL ret;
|
|
|
|
SERVER_START_REQ( debug_process )
|
|
|
|
{
|
2002-10-03 21:54:57 +02:00
|
|
|
req->pid = pid;
|
2002-02-27 02:28:30 +01:00
|
|
|
req->attach = 0;
|
2001-11-30 19:46:42 +01:00
|
|
|
ret = !wine_server_call_err( req );
|
2000-08-30 02:00:48 +02:00
|
|
|
}
|
|
|
|
SERVER_END_REQ;
|
|
|
|
return ret;
|
1999-05-23 21:57:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-06-13 22:13:18 +02:00
|
|
|
* OutputDebugStringA (KERNEL32.@)
|
2000-12-20 00:33:03 +01:00
|
|
|
*
|
|
|
|
* Output by an application of a unicode string to a debugger (if attached)
|
|
|
|
* and program log.
|
1999-05-23 21:57:42 +02:00
|
|
|
*/
|
2000-12-20 00:33:03 +01:00
|
|
|
void WINAPI OutputDebugStringA(
|
2001-02-12 04:49:57 +01:00
|
|
|
LPCSTR str) /* [in] The message to be logged and given to the debugger. */
|
1999-05-23 21:57:42 +02:00
|
|
|
{
|
2001-02-27 03:09:16 +01:00
|
|
|
SERVER_START_REQ( output_debug_string )
|
2000-08-30 02:00:48 +02:00
|
|
|
{
|
|
|
|
req->string = (void *)str;
|
|
|
|
req->unicode = 0;
|
|
|
|
req->length = strlen(str) + 1;
|
2001-11-30 19:46:42 +01:00
|
|
|
wine_server_call( req );
|
2000-08-30 02:00:48 +02:00
|
|
|
}
|
|
|
|
SERVER_END_REQ;
|
2000-05-23 03:13:07 +02:00
|
|
|
WARN("%s\n", str);
|
1999-05-23 21:57:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-06-13 22:13:18 +02:00
|
|
|
* OutputDebugStringW (KERNEL32.@)
|
2000-12-20 00:33:03 +01:00
|
|
|
*
|
|
|
|
* Output by an appliccation of a unicode string to a debugger (if attached)
|
|
|
|
* and program log.
|
1999-05-23 21:57:42 +02:00
|
|
|
*/
|
2000-12-20 00:33:03 +01:00
|
|
|
void WINAPI OutputDebugStringW(
|
2001-02-12 04:49:57 +01:00
|
|
|
LPCWSTR str) /* [in] The message to be logged and given to the debugger. */
|
1999-05-23 21:57:42 +02:00
|
|
|
{
|
2001-02-27 03:09:16 +01:00
|
|
|
SERVER_START_REQ( output_debug_string )
|
2000-08-30 02:00:48 +02:00
|
|
|
{
|
|
|
|
req->string = (void *)str;
|
|
|
|
req->unicode = 1;
|
|
|
|
req->length = (lstrlenW(str) + 1) * sizeof(WCHAR);
|
2001-11-30 19:46:42 +01:00
|
|
|
wine_server_call( req );
|
2000-08-30 02:00:48 +02:00
|
|
|
}
|
|
|
|
SERVER_END_REQ;
|
2000-05-23 03:13:07 +02:00
|
|
|
WARN("%s\n", debugstr_w(str));
|
1999-05-23 21:57:42 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-06-19 05:36:23 +02:00
|
|
|
* OutputDebugString (KERNEL.115)
|
2000-12-20 00:33:03 +01:00
|
|
|
*
|
|
|
|
* Output by a 16 bit application of an ascii string to a debugger (if attached)
|
|
|
|
* and program log.
|
1999-05-23 21:57:42 +02:00
|
|
|
*/
|
2000-12-20 00:33:03 +01:00
|
|
|
void WINAPI OutputDebugString16(
|
2001-02-12 04:49:57 +01:00
|
|
|
LPCSTR str) /* [in] The message to be logged and given to the debugger. */
|
1999-05-23 21:57:42 +02:00
|
|
|
{
|
|
|
|
OutputDebugStringA( str );
|
|
|
|
}
|
2000-03-08 17:41:37 +01:00
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-06-13 22:13:18 +02:00
|
|
|
* DebugBreak (KERNEL32.@)
|
2000-12-20 00:33:03 +01:00
|
|
|
*
|
|
|
|
* Raises an exception so that a debugger (if attached)
|
|
|
|
* can take some action.
|
2000-03-08 17:41:37 +01:00
|
|
|
*/
|
|
|
|
void WINAPI DebugBreak(void)
|
|
|
|
{
|
|
|
|
DbgBreakPoint();
|
|
|
|
}
|
|
|
|
|
2002-02-27 02:28:30 +01:00
|
|
|
/***********************************************************************
|
|
|
|
* DebugBreakProcess (KERNEL32.@)
|
|
|
|
*
|
|
|
|
* Raises an exception so that a debugger (if attached)
|
|
|
|
* can take some action. Same as DebugBreak, but applies to any process.
|
|
|
|
*/
|
|
|
|
BOOL WINAPI DebugBreakProcess(HANDLE hProc)
|
|
|
|
{
|
2002-02-27 02:55:02 +01:00
|
|
|
BOOL ret, self;
|
2002-02-27 02:28:30 +01:00
|
|
|
|
2002-10-25 23:02:30 +02:00
|
|
|
TRACE("(%p)\n", hProc);
|
2002-02-27 02:28:30 +01:00
|
|
|
|
2002-02-27 02:55:02 +01:00
|
|
|
SERVER_START_REQ( debug_break )
|
2002-02-27 02:28:30 +01:00
|
|
|
{
|
|
|
|
req->handle = hProc;
|
2002-02-27 02:55:02 +01:00
|
|
|
ret = !wine_server_call_err( req );
|
|
|
|
self = ret && reply->self;
|
2002-02-27 02:28:30 +01:00
|
|
|
}
|
|
|
|
SERVER_END_REQ;
|
2002-02-27 02:55:02 +01:00
|
|
|
if (self) DbgBreakPoint();
|
|
|
|
return ret;
|
2002-02-27 02:28:30 +01:00
|
|
|
}
|
|
|
|
|
2000-03-08 17:41:37 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* DebugBreak (KERNEL.203)
|
2000-12-20 00:33:03 +01:00
|
|
|
*
|
|
|
|
* Raises an expection in a 16 bit application so that a debugger (if attached)
|
|
|
|
* can take some action.
|
|
|
|
*
|
|
|
|
* BUGS
|
|
|
|
*
|
|
|
|
* Only 386 compatible processors implemented.
|
2000-03-08 17:41:37 +01:00
|
|
|
*/
|
2000-12-20 00:33:03 +01:00
|
|
|
void WINAPI DebugBreak16(
|
2001-02-12 04:49:57 +01:00
|
|
|
CONTEXT86 *context) /* [in/out] A pointer to the 386 compatible processor state. */
|
2000-03-08 17:41:37 +01:00
|
|
|
{
|
|
|
|
#ifdef __i386__
|
|
|
|
EXCEPTION_RECORD rec;
|
|
|
|
|
|
|
|
rec.ExceptionCode = EXCEPTION_BREAKPOINT;
|
|
|
|
rec.ExceptionFlags = 0;
|
|
|
|
rec.ExceptionRecord = NULL;
|
2000-11-26 00:56:20 +01:00
|
|
|
rec.ExceptionAddress = (LPVOID)context->Eip;
|
2000-03-08 17:41:37 +01:00
|
|
|
rec.NumberParameters = 0;
|
|
|
|
NtRaiseException( &rec, context, TRUE );
|
|
|
|
#endif /* defined(__i386__) */
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
2001-06-13 22:13:18 +02:00
|
|
|
* IsDebuggerPresent (KERNEL32.@)
|
2000-12-20 00:33:03 +01:00
|
|
|
*
|
|
|
|
* Allows a process to determine if there is a debugger attached.
|
|
|
|
*
|
|
|
|
* RETURNS
|
|
|
|
*
|
|
|
|
* True if there is a debugger attached.
|
2000-03-08 17:41:37 +01:00
|
|
|
*/
|
|
|
|
BOOL WINAPI IsDebuggerPresent(void)
|
|
|
|
{
|
|
|
|
BOOL ret = FALSE;
|
2001-02-27 03:09:16 +01:00
|
|
|
SERVER_START_REQ( get_process_info )
|
2000-08-30 02:00:48 +02:00
|
|
|
{
|
|
|
|
req->handle = GetCurrentProcess();
|
2001-11-30 19:46:42 +01:00
|
|
|
if (!wine_server_call_err( req )) ret = reply->debugged;
|
2000-08-30 02:00:48 +02:00
|
|
|
}
|
|
|
|
SERVER_END_REQ;
|
2000-03-08 17:41:37 +01:00
|
|
|
return ret;
|
|
|
|
}
|
2000-11-26 23:39:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* _DebugOutput (KERNEL.328)
|
|
|
|
*/
|
2003-08-27 04:20:44 +02:00
|
|
|
void WINAPIV _DebugOutput( WORD flags, LPCSTR spec, VA_LIST16 valist )
|
2000-11-26 23:39:50 +01:00
|
|
|
{
|
|
|
|
char caller[101];
|
|
|
|
|
|
|
|
/* Decode caller address */
|
|
|
|
if (!GetModuleName16( GetExePtr(CURRENT_STACK16->cs), caller, sizeof(caller) ))
|
|
|
|
sprintf( caller, "%04X:%04X", CURRENT_STACK16->cs, CURRENT_STACK16->ip );
|
|
|
|
|
|
|
|
/* FIXME: cannot use wvsnprintf16 from kernel */
|
2003-08-27 04:20:44 +02:00
|
|
|
/* wvsnprintf16( temp, sizeof(temp), spec, valist ); */
|
2000-11-26 23:39:50 +01:00
|
|
|
|
|
|
|
/* Output */
|
2003-08-27 04:20:44 +02:00
|
|
|
FIXME("%s %04x %s\n", caller, flags, debugstr_a(spec) );
|
2000-11-26 23:39:50 +01:00
|
|
|
}
|
2002-02-27 02:28:30 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
2002-03-11 02:17:26 +01:00
|
|
|
* DebugSetProcessKillOnExit (KERNEL32.@)
|
2002-02-27 02:28:30 +01:00
|
|
|
*
|
|
|
|
* Let a debugger decide wether a debuggee will be killed upon debugger
|
|
|
|
* termination
|
|
|
|
*/
|
|
|
|
BOOL WINAPI DebugSetProcessKillOnExit(BOOL kill)
|
|
|
|
{
|
|
|
|
BOOL ret = FALSE;
|
|
|
|
|
|
|
|
SERVER_START_REQ( set_debugger_kill_on_exit )
|
|
|
|
{
|
|
|
|
req->kill_on_exit = kill;
|
|
|
|
ret = !wine_server_call_err( req );
|
|
|
|
}
|
|
|
|
SERVER_END_REQ;
|
|
|
|
return ret;
|
|
|
|
}
|