Signed-off-by: Nikolay Sivov nsivov@codeweavers.com ---
Unfortunately it's not possible to generate this because of variadic and va_list's methods.
include/Makefile.in | 1 + include/dbgeng.h | 163 ++++++++++++++++++++++++++++++++++++++++++++ include/winnt.h | 11 +++ 3 files changed, 175 insertions(+) create mode 100644 include/dbgeng.h
diff --git a/include/Makefile.in b/include/Makefile.in index 2817c10d17..c478c348ec 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -143,6 +143,7 @@ SOURCES = \ dbccmd.idl \ dbcses.idl \ dbdsad.idl \ + dbgeng.h \ dbghelp.h \ dbinit.idl \ dbprop.idl \ diff --git a/include/dbgeng.h b/include/dbgeng.h new file mode 100644 index 0000000000..03305cce41 --- /dev/null +++ b/include/dbgeng.h @@ -0,0 +1,163 @@ +/* + * Copyright 2019 Nikolay Sivov for CodeWeavers + * + * 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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA + */ + +#include "objbase.h" + +#ifdef __cplusplus +extern "C" { +#endif + +DEFINE_GUID(IID_IDebugInputCallbacks, 0x9f50e42c, 0xf136, 0x499e, 0x9a, 0x97, 0x73, 0x03, 0x6c, 0x94, 0xed, 0x2d); +DEFINE_GUID(IID_IDebugOutputCallbacks, 0x4bf58045, 0xd654, 0x4c40, 0xb0, 0xaf, 0x68, 0x30, 0x90, 0xf3, 0x56, 0xdc); +DEFINE_GUID(IID_IDebugEventCallbacks, 0x337be28b, 0x5036, 0x4d72, 0xb6, 0xbf, 0xc4, 0x5f, 0xbb, 0x9f, 0x2e, 0xaa); +DEFINE_GUID(IID_IDebugClient, 0x27fe5639, 0x8407, 0x4f47, 0x83, 0x64, 0xee, 0x11, 0x8f, 0xb0, 0x8a, 0xc8); + +#define INTERFACE IDebugBreakpoint +DECLARE_INTERFACE_(IDebugBreakpoint, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + /* IDebugBreakpoint */ + /* FIXME */ +}; +#undef INTERFACE + +typedef IDebugBreakpoint* PDEBUG_BREAKPOINT; + +#define INTERFACE IDebugInputCallbacks +DECLARE_INTERFACE_(IDebugInputCallbacks, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + /* IDebugInputCallbacks */ + STDMETHOD(StartInput)(THIS_ ULONG buffer_size) PURE; + STDMETHOD(EndInput)(THIS) PURE; +}; +#undef INTERFACE + +#define INTERFACE IDebugOutputCallbacks +DECLARE_INTERFACE_(IDebugOutputCallbacks, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + /* IDebugOutputCallbacks */ + STDMETHOD(Output)(THIS_ ULONG mask, const char *text) PURE; +}; +#undef INTERFACE + +#ifdef WINE_NO_UNICODE_MACROS +#undef CreateProcess +#endif + +#define INTERFACE IDebugEventCallbacks +DECLARE_INTERFACE_(IDebugEventCallbacks, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + /* IDebugEventCallbacks */ + STDMETHOD(GetInterestMask)(THIS_ ULONG *mask) PURE; + STDMETHOD(Breakpoint)(THIS_ PDEBUG_BREAKPOINT breakpoint) PURE; + STDMETHOD(Exception)(THIS_ EXCEPTION_RECORD64 *exception, ULONG first_chance) PURE; + STDMETHOD(CreateThread)(THIS_ ULONG64 handle, ULONG64 data_offset, ULONG64 start_offset) PURE; + STDMETHOD(ExitThread)(THIS_ ULONG exit_code) PURE; + STDMETHOD(CreateProcess)(THIS_ ULONG64 image_handle, ULONG64 handle, ULONG64 base_offset, ULONG module_size, + const char *module_name, const char *image_name, ULONG checksum, ULONG timedatestamp, + ULONG64 initial_thread_handle, ULONG64 thread_data_offset, ULONG64 start_offset) PURE; + STDMETHOD(ExitProcess)(THIS_ ULONG exit_code) PURE; + STDMETHOD(LoadModule)(THIS_ ULONG64 image_handle, ULONG64 base_offset, ULONG module_size, const char *module_name, + const char *image_name, ULONG checksum, ULONG timedatestamp) PURE; + STDMETHOD(UnloadModule)(THIS_ const char *image_basename, ULONG64 base_offset) PURE; + STDMETHOD(SystemError)(THIS_ ULONG error, ULONG level) PURE; + STDMETHOD(SessionStatus)(THIS_ ULONG status) PURE; + STDMETHOD(ChangeDebuggeeState)(THIS_ ULONG flags, ULONG64 argument) PURE; + STDMETHOD(ChangeEngineState)(THIS_ ULONG flags, ULONG64 argument) PURE; + STDMETHOD(ChangeSymbolState)(THIS_ ULONG flags, ULONG64 argument) PURE; +}; +#undef INTERFACE + +#define INTERFACE IDebugClient +DECLARE_INTERFACE_(IDebugClient, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + /* IDebugClient */ + STDMETHOD(AttachKernel)(THIS_ ULONG flags, const char *options) PURE; + STDMETHOD(GetKernelConnectionOptions)(THIS_ char *buffer, ULONG buffer_size, ULONG *options_size) PURE; + STDMETHOD(SetKernelConnectionOptions)(THIS_ const char *options) PURE; + STDMETHOD(StartProcessServer)(THIS_ ULONG flags, const char *options, void *reserved) PURE; + STDMETHOD(ConnectProcessServer)(THIS_ const char *remote_options, ULONG64 *server) PURE; + STDMETHOD(DisconnectProcessServer)(THIS_ ULONG64 server) PURE; + STDMETHOD(GetRunningProcessSystemIds)(THIS_ ULONG64 server, ULONG *ids, ULONG count, ULONG *actual_count) PURE; + STDMETHOD(GetRunningProcessSystemIdByExecutableName)(THIS_ ULONG64 server, const char *exe_name, + ULONG flags, ULONG *id) PURE; + STDMETHOD(GetRunningProcessDescription)(THIS_ ULONG64 server, ULONG systemid, ULONG flags, char *exe_name, + ULONG exe_name_size, ULONG *actual_exe_name_size, char *description, ULONG description_size, + ULONG *actual_description_size) PURE; + STDMETHOD(AttachProcess)(THIS_ ULONG64 server, ULONG pid, ULONG flags) PURE; + STDMETHOD(CreateProcess)(THIS_ ULONG64 server, char *cmdline, ULONG flags) PURE; + STDMETHOD(CreateProcessAndAttach)(THIS_ ULONG64 server, char *cmdline, ULONG create_flags, + ULONG pid, ULONG attach_flags) PURE; + STDMETHOD(GetProcessOptions)(THIS_ ULONG *options) PURE; + STDMETHOD(AddProcessOptions)(THIS_ ULONG options) PURE; + STDMETHOD(RemoveProcessOptions)(THIS_ ULONG options) PURE; + STDMETHOD(SetProcessOptions)(THIS_ ULONG options) PURE; + STDMETHOD(OpenDumpFile)(THIS_ const char *filename) PURE; + STDMETHOD(WriteDumpFile)(THIS_ const char *filename, ULONG qualifier) PURE; + STDMETHOD(ConnectSession)(THIS_ ULONG flags, ULONG history_limit) PURE; + STDMETHOD(StartServer)(THIS_ const char *options) PURE; + STDMETHOD(OutputServers)(THIS_ ULONG output_control, const char *machine, ULONG flags) PURE; + STDMETHOD(TerminateProcesses)(THIS) PURE; + STDMETHOD(DetachProcesses)(THIS) PURE; + STDMETHOD(EndSession)(THIS_ ULONG flags) PURE; + STDMETHOD(GetExitCode)(THIS_ ULONG *code) PURE; + STDMETHOD(DispatchCallbacks)(THIS_ ULONG timeout) PURE; + STDMETHOD(ExitDispatch)(THIS_ IDebugClient *client) PURE; + STDMETHOD(CreateClient)(THIS_ IDebugClient **client) PURE; + STDMETHOD(GetInputCallbacks)(THIS_ IDebugInputCallbacks **callbacks) PURE; + STDMETHOD(SetInputCallbacks)(THIS_ IDebugInputCallbacks *callbacks) PURE; + STDMETHOD(GetOutputCallbacks)(THIS_ IDebugOutputCallbacks **callbacks) PURE; + STDMETHOD(SetOutputCallbacks)(THIS_ IDebugOutputCallbacks *callbacks) PURE; + STDMETHOD(GetOutputMask)(THIS_ ULONG *mask) PURE; + STDMETHOD(SetOutputMask)(THIS_ ULONG mask) PURE; + STDMETHOD(GetOtherOutputMask)(THIS_ IDebugClient *client, ULONG *mask) PURE; + STDMETHOD(SetOtherOutputMask)(THIS_ IDebugClient *client, ULONG mask) PURE; + STDMETHOD(GetOutputWidth)(THIS_ ULONG *columns) PURE; + STDMETHOD(SetOutputWidth)(THIS_ ULONG columns) PURE; + STDMETHOD(GetOutputLinePrefix)(THIS_ char *buffer, ULONG buffer_size, ULONG *prefix_size) PURE; + STDMETHOD(SetOutputLinePrefix)(THIS_ const char *prefix) PURE; + STDMETHOD(GetIdentity)(THIS_ char *buffer, ULONG buffer_size, ULONG *identity_size) PURE; + STDMETHOD(OutputIdentity)(THIS_ ULONG output_control, ULONG flags, const char *format) PURE; + STDMETHOD(GetEventCallbacks)(THIS_ IDebugEventCallbacks **callbacks) PURE; + STDMETHOD(SetEventCallbacks)(THIS_ IDebugEventCallbacks *callbacks) PURE; + STDMETHOD(FlushCallbacks)(THIS) PURE; +}; +#undef INTERFACE + +#ifdef __cplusplus +} +#endif diff --git a/include/winnt.h b/include/winnt.h index 28e87c7dff..1e2165652e 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -2419,6 +2419,17 @@ typedef struct _EXCEPTION_RECORD ULONG_PTR ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS]; } EXCEPTION_RECORD, *PEXCEPTION_RECORD;
+typedef struct _EXCEPTION_RECORD64 +{ + DWORD ExceptionCode; + DWORD ExceptionFlags; + DWORD64 ExceptionRecord; + DWORD64 ExceptionAddress; + DWORD NumberParameters; + DWORD __unusedAlignment; + DWORD64 ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS]; +} EXCEPTION_RECORD64, *PEXCEPTION_RECORD64; + /* * The exception pointers structure passed to exception filters * in except() and the UnhandledExceptionFilter().
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/dbgeng/dbgeng.c | 475 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 458 insertions(+), 17 deletions(-)
diff --git a/dlls/dbgeng/dbgeng.c b/dlls/dbgeng/dbgeng.c index 6ac93604d5..a2fbdfdc03 100644 --- a/dlls/dbgeng/dbgeng.c +++ b/dlls/dbgeng/dbgeng.c @@ -20,13 +20,453 @@
#include <stdarg.h>
+#define COBJMACROS + #include "windef.h" #include "winbase.h" #include "winternl.h" + +#include "initguid.h" +#include "dbgeng.h" + #include "wine/debug.h" +#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL(dbgeng);
+struct debug_client +{ + IDebugClient IDebugClient_iface; + LONG refcount; +}; + +static struct debug_client *impl_from_IDebugClient(IDebugClient *iface) +{ + return CONTAINING_RECORD(iface, struct debug_client, IDebugClient_iface); +} + +static HRESULT STDMETHODCALLTYPE debugclient_QueryInterface(IDebugClient *iface, REFIID riid, void **obj) +{ + TRACE("%p, %s, %p.\n", iface, debugstr_guid(riid), obj); + + if (IsEqualIID(riid, &IID_IDebugClient) || + IsEqualIID(riid, &IID_IUnknown)) + { + *obj = iface; + iface->lpVtbl->AddRef(iface); + return S_OK; + } + + WARN("Unsupported interface %s.\n", debugstr_guid(riid)); + *obj = NULL; + return E_NOINTERFACE; +} + +static ULONG STDMETHODCALLTYPE debugclient_AddRef(IDebugClient *iface) +{ + struct debug_client *debug_client = impl_from_IDebugClient(iface); + ULONG refcount = InterlockedIncrement(&debug_client->refcount); + + TRACE("%p, %d.\n", iface, refcount); + + return refcount; +} + +static ULONG STDMETHODCALLTYPE debugclient_Release(IDebugClient *iface) +{ + struct debug_client *debug_client = impl_from_IDebugClient(iface); + ULONG refcount = InterlockedDecrement(&debug_client->refcount); + + TRACE("%p, %d.\n", debug_client, refcount); + + if (!refcount) + heap_free(debug_client); + + return refcount; +} + +static HRESULT STDMETHODCALLTYPE debugclient_AttachKernel(IDebugClient *iface, ULONG flags, const char *options) +{ + FIXME("%p, %#x, %s stub.\n", iface, flags, debugstr_a(options)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_GetKernelConnectionOptions(IDebugClient *iface, char *buffer, + ULONG buffer_size, ULONG *options_size) +{ + FIXME("%p, %p, %u, %p stub.\n", iface, buffer, buffer_size, options_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_SetKernelConnectionOptions(IDebugClient *iface, const char *options) +{ + FIXME("%p, %s stub.\n", iface, debugstr_a(options)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_StartProcessServer(IDebugClient *iface, ULONG flags, const char *options, + void *reserved) +{ + FIXME("%p, %#x, %s, %p stub.\n", iface, flags, debugstr_a(options), reserved); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_ConnectProcessServer(IDebugClient *iface, const char *remote_options, + ULONG64 *server) +{ + FIXME("%p, %s, %p stub.\n", iface, debugstr_a(remote_options), server); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_DisconnectProcessServer(IDebugClient *iface, ULONG64 server) +{ + FIXME("%p, %s stub.\n", iface, wine_dbgstr_longlong(server)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_GetRunningProcessSystemIds(IDebugClient *iface, ULONG64 server, + ULONG *ids, ULONG count, ULONG *actual_count) +{ + FIXME("%p, %s, %p, %u, %p stub.\n", iface, wine_dbgstr_longlong(server), ids, count, actual_count); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_GetRunningProcessSystemIdByExecutableName(IDebugClient *iface, + ULONG64 server, const char *exe_name, ULONG flags, ULONG *id) +{ + FIXME("%p, %s, %s, %#x, %p stub.\n", iface, wine_dbgstr_longlong(server), debugstr_a(exe_name), flags, id); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_GetRunningProcessDescription(IDebugClient *iface, ULONG64 server, + ULONG systemid, ULONG flags, char *exe_name, ULONG exe_name_size, ULONG *actual_exe_name_size, + char *description, ULONG description_size, ULONG *actual_description_size) +{ + FIXME("%p, %s, %u, %#x, %p, %u, %p, %p, %u, %p stub.\n", iface, wine_dbgstr_longlong(server), systemid, flags, + exe_name, exe_name_size, actual_exe_name_size, description, description_size, actual_description_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_AttachProcess(IDebugClient *iface, ULONG64 server, ULONG pid, ULONG flags) +{ + FIXME("%p, %s, %u, %#x stub.\n", iface, wine_dbgstr_longlong(server), pid, flags); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_CreateProcess(IDebugClient *iface, ULONG64 server, char *cmdline, + ULONG flags) +{ + FIXME("%p, %s, %s, %#x stub.\n", iface, wine_dbgstr_longlong(server), debugstr_a(cmdline), flags); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_CreateProcessAndAttach(IDebugClient *iface, ULONG64 server, char *cmdline, + ULONG create_flags, ULONG pid, ULONG attach_flags) +{ + FIXME("%p, %s, %s, %#x, %u, %#x stub.\n", iface, wine_dbgstr_longlong(server), debugstr_a(cmdline), create_flags, + pid, attach_flags); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_GetProcessOptions(IDebugClient *iface, ULONG *options) +{ + FIXME("%p, %p stub.\n", iface, options); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_AddProcessOptions(IDebugClient *iface, ULONG options) +{ + FIXME("%p, %#x stub.\n", iface, options); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_RemoveProcessOptions(IDebugClient *iface, ULONG options) +{ + FIXME("%p, %#x stub.\n", iface, options); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_SetProcessOptions(IDebugClient *iface, ULONG options) +{ + FIXME("%p, %#x stub.\n", iface, options); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_OpenDumpFile(IDebugClient *iface, const char *filename) +{ + FIXME("%p, %s stub.\n", iface, debugstr_a(filename)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_WriteDumpFile(IDebugClient *iface, const char *filename, ULONG qualifier) +{ + FIXME("%p, %s, %u stub.\n", iface, debugstr_a(filename), qualifier); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_ConnectSession(IDebugClient *iface, ULONG flags, ULONG history_limit) +{ + FIXME("%p, %#x, %u stub.\n", iface, flags, history_limit); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_StartServer(IDebugClient *iface, const char *options) +{ + FIXME("%p, %s stub.\n", iface, debugstr_a(options)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_OutputServers(IDebugClient *iface, ULONG output_control, + const char *machine, ULONG flags) +{ + FIXME("%p, %u, %s, %#x stub.\n", iface, output_control, debugstr_a(machine), flags); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_TerminateProcesses(IDebugClient *iface) +{ + FIXME("%p stub.\n", iface); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_DetachProcesses(IDebugClient *iface) +{ + FIXME("%p stub.\n", iface); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_EndSession(IDebugClient *iface, ULONG flags) +{ + FIXME("%p, %#x stub.\n", iface, flags); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_GetExitCode(IDebugClient *iface, ULONG *code) +{ + FIXME("%p, %p stub.\n", iface, code); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_DispatchCallbacks(IDebugClient *iface, ULONG timeout) +{ + FIXME("%p, %u stub.\n", iface, timeout); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_ExitDispatch(IDebugClient *iface, IDebugClient *client) +{ + FIXME("%p, %p stub.\n", iface, client); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_CreateClient(IDebugClient *iface, IDebugClient **client) +{ + FIXME("%p, %p stub.\n", iface, client); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_GetInputCallbacks(IDebugClient *iface, IDebugInputCallbacks **callbacks) +{ + FIXME("%p, %p stub.\n", iface, callbacks); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_SetInputCallbacks(IDebugClient *iface, IDebugInputCallbacks *callbacks) +{ + FIXME("%p, %p stub.\n", iface, callbacks); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_GetOutputCallbacks(IDebugClient *iface, IDebugOutputCallbacks **callbacks) +{ + FIXME("%p, %p stub.\n", iface, callbacks); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_SetOutputCallbacks(IDebugClient *iface, IDebugOutputCallbacks *callbacks) +{ + FIXME("%p, %p stub.\n", iface, callbacks); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_GetOutputMask(IDebugClient *iface, ULONG *mask) +{ + FIXME("%p, %p stub.\n", iface, mask); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_SetOutputMask(IDebugClient *iface, ULONG mask) +{ + FIXME("%p, %#x stub.\n", iface, mask); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_GetOtherOutputMask(IDebugClient *iface, IDebugClient *client, ULONG *mask) +{ + FIXME("%p, %p, %p stub.\n", iface, client, mask); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_SetOtherOutputMask(IDebugClient *iface, IDebugClient *client, ULONG mask) +{ + FIXME("%p, %p, %#x stub.\n", iface, client, mask); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_GetOutputWidth(IDebugClient *iface, ULONG *columns) +{ + FIXME("%p, %p stub.\n", iface, columns); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_SetOutputWidth(IDebugClient *iface, ULONG columns) +{ + FIXME("%p, %u stub.\n", iface, columns); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_GetOutputLinePrefix(IDebugClient *iface, char *buffer, ULONG buffer_size, + ULONG *prefix_size) +{ + FIXME("%p, %p, %u, %p stub.\n", iface, buffer, buffer_size, prefix_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_SetOutputLinePrefix(IDebugClient *iface, const char *prefix) +{ + FIXME("%p, %s stub.\n", iface, debugstr_a(prefix)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_GetIdentity(IDebugClient *iface, char *buffer, ULONG buffer_size, + ULONG *identity_size) +{ + FIXME("%p, %p, %u, %p stub.\n", iface, buffer, buffer_size, identity_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_OutputIdentity(IDebugClient *iface, ULONG output_control, ULONG flags, + const char *format) +{ + FIXME("%p, %u, %#x, %s stub.\n", iface, output_control, flags, debugstr_a(format)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_GetEventCallbacks(IDebugClient *iface, IDebugEventCallbacks **callbacks) +{ + FIXME("%p, %p stub.\n", iface, callbacks); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_SetEventCallbacks(IDebugClient *iface, IDebugEventCallbacks *callbacks) +{ + FIXME("%p, %p stub.\n", iface, callbacks); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugclient_FlushCallbacks(IDebugClient *iface) +{ + FIXME("%p stub.\n", iface); + + return E_NOTIMPL; +} + +static const IDebugClientVtbl debugclientvtbl = +{ + debugclient_QueryInterface, + debugclient_AddRef, + debugclient_Release, + debugclient_AttachKernel, + debugclient_GetKernelConnectionOptions, + debugclient_SetKernelConnectionOptions, + debugclient_StartProcessServer, + debugclient_ConnectProcessServer, + debugclient_DisconnectProcessServer, + debugclient_GetRunningProcessSystemIds, + debugclient_GetRunningProcessSystemIdByExecutableName, + debugclient_GetRunningProcessDescription, + debugclient_AttachProcess, + debugclient_CreateProcess, + debugclient_CreateProcessAndAttach, + debugclient_GetProcessOptions, + debugclient_AddProcessOptions, + debugclient_RemoveProcessOptions, + debugclient_SetProcessOptions, + debugclient_OpenDumpFile, + debugclient_WriteDumpFile, + debugclient_ConnectSession, + debugclient_StartServer, + debugclient_OutputServers, + debugclient_TerminateProcesses, + debugclient_DetachProcesses, + debugclient_EndSession, + debugclient_GetExitCode, + debugclient_DispatchCallbacks, + debugclient_ExitDispatch, + debugclient_CreateClient, + debugclient_GetInputCallbacks, + debugclient_SetInputCallbacks, + debugclient_GetOutputCallbacks, + debugclient_SetOutputCallbacks, + debugclient_GetOutputMask, + debugclient_SetOutputMask, + debugclient_GetOtherOutputMask, + debugclient_SetOtherOutputMask, + debugclient_GetOutputWidth, + debugclient_SetOutputWidth, + debugclient_GetOutputLinePrefix, + debugclient_SetOutputLinePrefix, + debugclient_GetIdentity, + debugclient_OutputIdentity, + debugclient_GetEventCallbacks, + debugclient_SetEventCallbacks, + debugclient_FlushCallbacks, +}; + /************************************************************ * DebugExtensionInitialize (DBGENG.@) * @@ -53,28 +493,29 @@ HRESULT WINAPI DebugExtensionInitialize(ULONG * pVersion, ULONG * pFlags) }
/************************************************************ -* DebugCreate (DBGENG.@) -* -* Creating Debug Engine client object -* -* PARAMS -* riid [I] Interface Id of debugger client -* obj [O] Pointer to interface as requested via riid -* -* RETURNS -* Success: S_OK -* Failure: Anything other than S_OK -* -* BUGS -* Unimplemented +* DebugCreate (dbgeng.@) */ HRESULT WINAPI DebugCreate(REFIID riid, void **obj) { - FIXME("(%s, %p): stub\n", debugstr_guid(riid), obj); + struct debug_client *debug_client; + IUnknown *unk; + HRESULT hr;
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED); + TRACE("%s, %p.\n", debugstr_guid(riid), obj);
- return E_NOTIMPL; + debug_client = heap_alloc(sizeof(*debug_client)); + if (!debug_client) + return E_OUTOFMEMORY; + + debug_client->IDebugClient_iface.lpVtbl = &debugclientvtbl; + debug_client->refcount = 1; + + unk = (IUnknown *)&debug_client->IDebugClient_iface; + + hr = IUnknown_QueryInterface(unk, riid, obj); + IUnknown_Release(unk); + + return hr; }
/************************************************************
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/dbgeng/dbgeng.c | 236 ++++++++++++++++++++++++++++++++++++++++++- include/dbgeng.h | 40 ++++++++ 2 files changed, 271 insertions(+), 5 deletions(-)
diff --git a/dlls/dbgeng/dbgeng.c b/dlls/dbgeng/dbgeng.c index a2fbdfdc03..49fd9f3ec9 100644 --- a/dlls/dbgeng/dbgeng.c +++ b/dlls/dbgeng/dbgeng.c @@ -37,6 +37,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dbgeng); struct debug_client { IDebugClient IDebugClient_iface; + IDebugDataSpaces IDebugDataSpaces_iface; LONG refcount; };
@@ -45,21 +46,35 @@ static struct debug_client *impl_from_IDebugClient(IDebugClient *iface) return CONTAINING_RECORD(iface, struct debug_client, IDebugClient_iface); }
+static struct debug_client *impl_from_IDebugDataSpaces(IDebugDataSpaces *iface) +{ + return CONTAINING_RECORD(iface, struct debug_client, IDebugDataSpaces_iface); +} + static HRESULT STDMETHODCALLTYPE debugclient_QueryInterface(IDebugClient *iface, REFIID riid, void **obj) { + struct debug_client *debug_client = impl_from_IDebugClient(iface); + TRACE("%p, %s, %p.\n", iface, debugstr_guid(riid), obj);
if (IsEqualIID(riid, &IID_IDebugClient) || IsEqualIID(riid, &IID_IUnknown)) { *obj = iface; - iface->lpVtbl->AddRef(iface); - return S_OK; + } + else if (IsEqualIID(riid, &IID_IDebugDataSpaces)) + { + *obj = &debug_client->IDebugDataSpaces_iface; + } + else + { + WARN("Unsupported interface %s.\n", debugstr_guid(riid)); + *obj = NULL; + return E_NOINTERFACE; }
- WARN("Unsupported interface %s.\n", debugstr_guid(riid)); - *obj = NULL; - return E_NOINTERFACE; + IUnknown_AddRef((IUnknown *)*obj); + return S_OK; }
static ULONG STDMETHODCALLTYPE debugclient_AddRef(IDebugClient *iface) @@ -467,6 +482,216 @@ static const IDebugClientVtbl debugclientvtbl = debugclient_FlushCallbacks, };
+static HRESULT STDMETHODCALLTYPE debugdataspaces_QueryInterface(IDebugDataSpaces *iface, REFIID riid, void **obj) +{ + struct debug_client *debug_client = impl_from_IDebugDataSpaces(iface); + IUnknown *unk = (IUnknown *)&debug_client->IDebugClient_iface; + return IUnknown_QueryInterface(unk, riid, obj); +} + +static ULONG STDMETHODCALLTYPE debugdataspaces_AddRef(IDebugDataSpaces *iface) +{ + struct debug_client *debug_client = impl_from_IDebugDataSpaces(iface); + IUnknown *unk = (IUnknown *)&debug_client->IDebugClient_iface; + return IUnknown_AddRef(unk); +} + +static ULONG STDMETHODCALLTYPE debugdataspaces_Release(IDebugDataSpaces *iface) +{ + struct debug_client *debug_client = impl_from_IDebugDataSpaces(iface); + IUnknown *unk = (IUnknown *)&debug_client->IDebugClient_iface; + return IUnknown_Release(unk); +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_ReadVirtual(IDebugDataSpaces *iface, ULONG64 offset, void *buffer, + ULONG buffer_size, ULONG *read_len) +{ + FIXME("%p, %s, %p, %u, %p stub.\n", iface, wine_dbgstr_longlong(offset), buffer, buffer_size, read_len); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_WriteVirtual(IDebugDataSpaces *iface, ULONG64 offset, void *buffer, + ULONG buffer_size, ULONG *written) +{ + FIXME("%p, %s, %p, %u, %p stub.\n", iface, wine_dbgstr_longlong(offset), buffer, buffer_size, written); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_SearchVirtual(IDebugDataSpaces *iface, ULONG64 offset, ULONG64 length, + void *pattern, ULONG pattern_size, ULONG pattern_granularity, ULONG64 *ret_offset) +{ + FIXME("%p, %s, %s, %p, %u, %u, %p stub.\n", iface, wine_dbgstr_longlong(offset), wine_dbgstr_longlong(length), + pattern, pattern_size, pattern_granularity, ret_offset); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_ReadVirtualUncached(IDebugDataSpaces *iface, ULONG64 offset, + void *buffer, ULONG buffer_size, ULONG *read_len) +{ + FIXME("%p, %s, %p, %u, %p stub.\n", iface, wine_dbgstr_longlong(offset), buffer, buffer_size, read_len); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_WriteVirtualUncached(IDebugDataSpaces *iface, ULONG64 offset, + void *buffer, ULONG buffer_size, ULONG *written) +{ + FIXME("%p, %s, %p, %u, %p stub.\n", iface, wine_dbgstr_longlong(offset), buffer, buffer_size, written); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_ReadPointersVirtual(IDebugDataSpaces *iface, ULONG count, + ULONG64 offset, ULONG64 *pointers) +{ + FIXME("%p, %u, %s, %p stub.\n", iface, count, wine_dbgstr_longlong(offset), pointers); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_WritePointersVirtual(IDebugDataSpaces *iface, ULONG count, + ULONG64 offset, ULONG64 *pointers) +{ + FIXME("%p, %u, %s, %p stub.\n", iface, count, wine_dbgstr_longlong(offset), pointers); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_ReadPhysical(IDebugDataSpaces *iface, ULONG64 offset, void *buffer, + ULONG buffer_size, ULONG *read_len) +{ + FIXME("%p, %s, %p, %u, %p stub.\n", iface, wine_dbgstr_longlong(offset), buffer, buffer_size, read_len); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_WritePhysical(IDebugDataSpaces *iface, ULONG64 offset, void *buffer, + ULONG buffer_size, ULONG *written) +{ + FIXME("%p, %s, %p, %u, %p stub.\n", iface, wine_dbgstr_longlong(offset), buffer, buffer_size, written); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_ReadControl(IDebugDataSpaces *iface, ULONG processor, ULONG64 offset, + void *buffer, ULONG buffer_size, ULONG *read_len) +{ + FIXME("%p, %u, %s, %p, %u, %p stub.\n", iface, processor, wine_dbgstr_longlong(offset), buffer, buffer_size, read_len); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_WriteControl(IDebugDataSpaces *iface, ULONG processor, ULONG64 offset, + void *buffer, ULONG buffer_size, ULONG *written) +{ + FIXME("%p, %u, %s, %p, %u, %p stub.\n", iface, processor, wine_dbgstr_longlong(offset), buffer, buffer_size, written); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_ReadIo(IDebugDataSpaces *iface, ULONG type, ULONG bus_number, + ULONG address_space, ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *read_len) +{ + FIXME("%p, %u, %u, %u, %s, %p, %u, %p stub.\n", iface, type, bus_number, address_space, wine_dbgstr_longlong(offset), + buffer, buffer_size, read_len); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_WriteIo(IDebugDataSpaces *iface, ULONG type, ULONG bus_number, + ULONG address_space, ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *written) +{ + FIXME("%p, %u, %u, %u, %s, %p, %u, %p stub.\n", iface, type, bus_number, address_space, wine_dbgstr_longlong(offset), + buffer, buffer_size, written); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_ReadMsr(IDebugDataSpaces *iface, ULONG msr, ULONG64 *value) +{ + FIXME("%p, %u, %p stub.\n", iface, msr, value); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_WriteMsr(IDebugDataSpaces *iface, ULONG msr, ULONG64 value) +{ + FIXME("%p, %u, %s stub.\n", iface, msr, wine_dbgstr_longlong(value)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_ReadBusData(IDebugDataSpaces *iface, ULONG data_type, + ULONG bus_number, ULONG slot_number, ULONG offset, void *buffer, ULONG buffer_size, ULONG *read_len) +{ + FIXME("%p, %u, %u, %u, %u, %p, %u, %p stub.\n", iface, data_type, bus_number, slot_number, offset, buffer, + buffer_size, read_len); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_WriteBusData(IDebugDataSpaces *iface, ULONG data_type, + ULONG bus_number, ULONG slot_number, ULONG offset, void *buffer, ULONG buffer_size, ULONG *written) +{ + FIXME("%p, %u, %u, %u, %u, %p, %u, %p stub.\n", iface, data_type, bus_number, slot_number, offset, buffer, + buffer_size, written); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_CheckLowMemory(IDebugDataSpaces *iface) +{ + FIXME("%p stub.\n", iface); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_ReadDebuggerData(IDebugDataSpaces *iface, ULONG index, void *buffer, + ULONG buffer_size, ULONG *data_size) +{ + FIXME("%p, %u, %p, %u, %p stub.\n", iface, index, buffer, buffer_size, data_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugdataspaces_ReadProcessorSystemData(IDebugDataSpaces *iface, ULONG processor, + ULONG index, void *buffer, ULONG buffer_size, ULONG *data_size) +{ + FIXME("%p, %u, %u, %p, %u, %p stub.\n", iface, processor, index, buffer, buffer_size, data_size); + + return E_NOTIMPL; +} + +static const IDebugDataSpacesVtbl debugdataspacesvtbl = +{ + debugdataspaces_QueryInterface, + debugdataspaces_AddRef, + debugdataspaces_Release, + debugdataspaces_ReadVirtual, + debugdataspaces_WriteVirtual, + debugdataspaces_SearchVirtual, + debugdataspaces_ReadVirtualUncached, + debugdataspaces_WriteVirtualUncached, + debugdataspaces_ReadPointersVirtual, + debugdataspaces_WritePointersVirtual, + debugdataspaces_ReadPhysical, + debugdataspaces_WritePhysical, + debugdataspaces_ReadControl, + debugdataspaces_WriteControl, + debugdataspaces_ReadIo, + debugdataspaces_WriteIo, + debugdataspaces_ReadMsr, + debugdataspaces_WriteMsr, + debugdataspaces_ReadBusData, + debugdataspaces_WriteBusData, + debugdataspaces_CheckLowMemory, + debugdataspaces_ReadDebuggerData, + debugdataspaces_ReadProcessorSystemData, +}; + /************************************************************ * DebugExtensionInitialize (DBGENG.@) * @@ -508,6 +733,7 @@ HRESULT WINAPI DebugCreate(REFIID riid, void **obj) return E_OUTOFMEMORY;
debug_client->IDebugClient_iface.lpVtbl = &debugclientvtbl; + debug_client->IDebugDataSpaces_iface.lpVtbl = &debugdataspacesvtbl; debug_client->refcount = 1;
unk = (IUnknown *)&debug_client->IDebugClient_iface; diff --git a/include/dbgeng.h b/include/dbgeng.h index 03305cce41..797aab7c68 100644 --- a/include/dbgeng.h +++ b/include/dbgeng.h @@ -26,6 +26,7 @@ DEFINE_GUID(IID_IDebugInputCallbacks, 0x9f50e42c, 0xf136, 0x499e, 0x9a, 0x97 DEFINE_GUID(IID_IDebugOutputCallbacks, 0x4bf58045, 0xd654, 0x4c40, 0xb0, 0xaf, 0x68, 0x30, 0x90, 0xf3, 0x56, 0xdc); DEFINE_GUID(IID_IDebugEventCallbacks, 0x337be28b, 0x5036, 0x4d72, 0xb6, 0xbf, 0xc4, 0x5f, 0xbb, 0x9f, 0x2e, 0xaa); DEFINE_GUID(IID_IDebugClient, 0x27fe5639, 0x8407, 0x4f47, 0x83, 0x64, 0xee, 0x11, 0x8f, 0xb0, 0x8a, 0xc8); +DEFINE_GUID(IID_IDebugDataSpaces, 0x88f7dfab, 0x3ea7, 0x4c3a, 0xae, 0xfb, 0xc4, 0xe8, 0x10, 0x61, 0x73, 0xaa);
#define INTERFACE IDebugBreakpoint DECLARE_INTERFACE_(IDebugBreakpoint, IUnknown) @@ -158,6 +159,45 @@ DECLARE_INTERFACE_(IDebugClient, IUnknown) }; #undef INTERFACE
+#define INTERFACE IDebugDataSpaces +DECLARE_INTERFACE_(IDebugDataSpaces, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + /* IDebugDataSpaces */ + STDMETHOD(ReadVirtual)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *read_len) PURE; + STDMETHOD(WriteVirtual)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *written) PURE; + STDMETHOD(SearchVirtual)(THIS_ ULONG64 offset, ULONG64 length, void *pattern, ULONG pattern_size, + ULONG pattern_granularity, ULONG64 *ret_offset) PURE; + STDMETHOD(ReadVirtualUncached)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *read_len) PURE; + STDMETHOD(WriteVirtualUncached)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *written) PURE; + STDMETHOD(ReadPointersVirtual)(THIS_ ULONG count, ULONG64 offset, ULONG64 *pointers) PURE; + STDMETHOD(WritePointersVirtual)(THIS_ ULONG count, ULONG64 offset, ULONG64 *pointers) PURE; + STDMETHOD(ReadPhysical)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *read_len) PURE; + STDMETHOD(WritePhysical)(THIS_ ULONG64 offset, void *buffer, ULONG buffer_size, ULONG *written) PURE; + STDMETHOD(ReadControl)(THIS_ ULONG processor, ULONG64 offset, void *buffer, ULONG buffer_size, + ULONG *read_len) PURE; + STDMETHOD(WriteControl)(THIS_ ULONG processor, ULONG64 offset, void *buffer, ULONG buffer_size, + ULONG *written) PURE; + STDMETHOD(ReadIo)(THIS_ ULONG type, ULONG bus_number, ULONG address_space, ULONG64 offset, void *buffer, + ULONG buffer_size, ULONG *read_len) PURE; + STDMETHOD(WriteIo)(THIS_ ULONG type, ULONG bus_number, ULONG address_space, ULONG64 offset, void *buffer, + ULONG buffer_size, ULONG *written) PURE; + STDMETHOD(ReadMsr)(THIS_ ULONG msr, ULONG64 *value) PURE; + STDMETHOD(WriteMsr)(THIS_ ULONG msr, ULONG64 value) PURE; + STDMETHOD(ReadBusData)(THIS_ ULONG data_type, ULONG bus_number, ULONG slot_number, ULONG offset, void *buffer, + ULONG buffer_size, ULONG *read_len) PURE; + STDMETHOD(WriteBusData)(THIS_ ULONG data_type, ULONG bus_number, ULONG slot_number, ULONG offset, void *buffer, + ULONG buffer_size, ULONG *written) PURE; + STDMETHOD(CheckLowMemory)(THIS) PURE; + STDMETHOD(ReadDebuggerData)(THIS_ ULONG index, void *buffer, ULONG buffer_size, ULONG *data_size) PURE; + STDMETHOD(ReadProcessorSystemData)(THIS_ ULONG processor, ULONG index, void *buffer, ULONG buffer_size, + ULONG *data_size) PURE; +}; +#undef INTERFACE + #ifdef __cplusplus } #endif
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/dbgeng/dbgeng.c | 469 +++++++++++++++++++++++++++++++++++++++++++ include/dbgeng.h | 118 +++++++++++ 2 files changed, 587 insertions(+)
diff --git a/dlls/dbgeng/dbgeng.c b/dlls/dbgeng/dbgeng.c index 49fd9f3ec9..9ed2718082 100644 --- a/dlls/dbgeng/dbgeng.c +++ b/dlls/dbgeng/dbgeng.c @@ -38,6 +38,7 @@ struct debug_client { IDebugClient IDebugClient_iface; IDebugDataSpaces IDebugDataSpaces_iface; + IDebugSymbols IDebugSymbols_iface; LONG refcount; };
@@ -51,6 +52,11 @@ static struct debug_client *impl_from_IDebugDataSpaces(IDebugDataSpaces *iface) return CONTAINING_RECORD(iface, struct debug_client, IDebugDataSpaces_iface); }
+static struct debug_client *impl_from_IDebugSymbols(IDebugSymbols *iface) +{ + return CONTAINING_RECORD(iface, struct debug_client, IDebugSymbols_iface); +} + static HRESULT STDMETHODCALLTYPE debugclient_QueryInterface(IDebugClient *iface, REFIID riid, void **obj) { struct debug_client *debug_client = impl_from_IDebugClient(iface); @@ -66,6 +72,10 @@ static HRESULT STDMETHODCALLTYPE debugclient_QueryInterface(IDebugClient *iface, { *obj = &debug_client->IDebugDataSpaces_iface; } + else if (IsEqualIID(riid, &IID_IDebugSymbols)) + { + *obj = &debug_client->IDebugSymbols_iface; + } else { WARN("Unsupported interface %s.\n", debugstr_guid(riid)); @@ -692,6 +702,464 @@ static const IDebugDataSpacesVtbl debugdataspacesvtbl = debugdataspaces_ReadProcessorSystemData, };
+static HRESULT STDMETHODCALLTYPE debugsymbols_QueryInterface(IDebugSymbols *iface, REFIID riid, void **obj) +{ + struct debug_client *debug_client = impl_from_IDebugSymbols(iface); + IUnknown *unk = (IUnknown *)&debug_client->IDebugClient_iface; + return IUnknown_QueryInterface(unk, riid, obj); +} + +static ULONG STDMETHODCALLTYPE debugsymbols_AddRef(IDebugSymbols *iface) +{ + struct debug_client *debug_client = impl_from_IDebugSymbols(iface); + IUnknown *unk = (IUnknown *)&debug_client->IDebugClient_iface; + return IUnknown_AddRef(unk); +} + +static ULONG STDMETHODCALLTYPE debugsymbols_Release(IDebugSymbols *iface) +{ + struct debug_client *debug_client = impl_from_IDebugSymbols(iface); + IUnknown *unk = (IUnknown *)&debug_client->IDebugClient_iface; + return IUnknown_Release(unk); +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetSymbolOptions(IDebugSymbols *iface, ULONG *options) +{ + FIXME("%p, %p stub.\n", iface, options); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_AddSymbolOptions(IDebugSymbols *iface, ULONG options) +{ + FIXME("%p, %#x stub.\n", iface, options); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_RemoveSymbolOptions(IDebugSymbols *iface, ULONG options) +{ + FIXME("%p, %#x stub.\n", iface, options); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_SetSymbolOptions(IDebugSymbols *iface, ULONG options) +{ + FIXME("%p, %#x stub.\n", iface, options); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetNameByOffset(IDebugSymbols *iface, ULONG64 offset, char *buffer, + ULONG buffer_size, ULONG *name_size, ULONG64 *displacement) +{ + FIXME("%p, %s, %p, %u, %p, %p stub.\n", iface, wine_dbgstr_longlong(offset), buffer, buffer_size, + name_size, displacement); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetOffsetByName(IDebugSymbols *iface, const char *symbol, + ULONG64 *offset) +{ + FIXME("%p, %s, %p stub.\n", iface, debugstr_a(symbol), offset); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetNearNameByOffset(IDebugSymbols *iface, ULONG64 offset, LONG delta, + char *buffer, ULONG buffer_size, ULONG *name_size, ULONG64 *displacement) +{ + FIXME("%p, %s, %d, %p, %u, %p, %p stub.\n", iface, wine_dbgstr_longlong(offset), delta, buffer, buffer_size, + name_size, displacement); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetLineByOffset(IDebugSymbols *iface, ULONG64 offset, ULONG *line, + char *buffer, ULONG buffer_size, ULONG *file_size, ULONG64 *displacement) +{ + FIXME("%p, %s, %p, %p, %u, %p, %p stub.\n", iface, wine_dbgstr_longlong(offset), line, buffer, buffer_size, + file_size, displacement); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetOffsetByLine(IDebugSymbols *iface, ULONG line, const char *file, + ULONG64 *offset) +{ + FIXME("%p, %u, %s, %p stub.\n", iface, line, debugstr_a(file), offset); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetNumberModules(IDebugSymbols *iface, ULONG *loaded, ULONG *unloaded) +{ + FIXME("%p, %p, %p stub.\n", iface, loaded, unloaded); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetModuleByIndex(IDebugSymbols *iface, ULONG index, ULONG64 *base) +{ + FIXME("%p, %u, %p stub.\n", iface, index, base); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetModuleByModuleName(IDebugSymbols *iface, const char *name, + ULONG start_index, ULONG *index, ULONG64 *base) +{ + FIXME("%p, %s, %u, %p, %p stub.\n", iface, debugstr_a(name), start_index, index, base); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetModuleByOffset(IDebugSymbols *iface, ULONG64 offset, + ULONG start_index, ULONG *index, ULONG64 *base) +{ + FIXME("%p, %s, %u, %p, %p stub.\n", iface, wine_dbgstr_longlong(offset), start_index, index, base); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetModuleNames(IDebugSymbols *iface, ULONG index, ULONG64 base, + char *image_name, ULONG image_name_buffer_size, ULONG *image_name_size, char *module_name, + ULONG module_name_buffer_size, ULONG *module_name_size, char *loaded_image_name, + ULONG loaded_image_name_buffer_size, ULONG *loaded_image_size) +{ + FIXME("%p, %u, %s, %p, %u, %p, %p, %u, %p, %p, %u, %p stub.\n", iface, index, wine_dbgstr_longlong(base), + image_name, image_name_buffer_size, image_name_size, module_name, module_name_buffer_size, + module_name_size, loaded_image_name, loaded_image_name_buffer_size, loaded_image_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetModuleParameters(IDebugSymbols *iface, ULONG count, ULONG64 *bases, + ULONG start, DEBUG_MODULE_PARAMETERS *parameters) +{ + FIXME("%p, %u, %p, %u, %p stub.\n", iface, count, bases, start, parameters); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetSymbolModule(IDebugSymbols *iface, const char *symbol, ULONG64 *base) +{ + FIXME("%p, %s, %p stub.\n", iface, debugstr_a(symbol), base); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetTypeName(IDebugSymbols *iface, ULONG64 base, ULONG type_id, + char *buffer, ULONG buffer_size, ULONG *name_size) +{ + FIXME("%p, %s, %u, %p, %u, %p stub.\n", iface, wine_dbgstr_longlong(base), type_id, buffer, + buffer_size, name_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetTypeId(IDebugSymbols *iface, ULONG64 base, ULONG type_id, ULONG *size) +{ + FIXME("%p, %s, %u, %p stub.\n", iface, wine_dbgstr_longlong(base), type_id, size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetFieldOffset(IDebugSymbols *iface, ULONG64 base, ULONG type_id, + const char *field, ULONG *offset) +{ + FIXME("%p, %s, %u, %s, %p stub.\n", iface, wine_dbgstr_longlong(base), type_id, debugstr_a(field), offset); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetSymbolTypeId(IDebugSymbols *iface, const char *symbol, ULONG *type_id, + ULONG64 *base) +{ + FIXME("%p, %s, %p, %p stub.\n", iface, debugstr_a(symbol), type_id, base); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetOffsetTypeId(IDebugSymbols *iface, ULONG64 offset, ULONG *type_id, + ULONG64 *base) +{ + FIXME("%p, %s, %p, %p stub.\n", iface, wine_dbgstr_longlong(offset), type_id, base); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_ReadTypedDataVirtual(IDebugSymbols *iface, ULONG64 offset, ULONG64 base, + ULONG type_id, void *buffer, ULONG buffer_size, ULONG *read_len) +{ + FIXME("%p, %s, %s, %u, %p, %u, %p stub.\n", iface, wine_dbgstr_longlong(offset), wine_dbgstr_longlong(base), + type_id, buffer, buffer_size, read_len); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_WriteTypedDataVirtual(IDebugSymbols *iface, ULONG64 offset, ULONG64 base, + ULONG type_id, void *buffer, ULONG buffer_size, ULONG *written) +{ + FIXME("%p, %s, %s, %u, %p, %u, %p stub.\n", iface, wine_dbgstr_longlong(offset), wine_dbgstr_longlong(base), + type_id, buffer, buffer_size, written); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_OutputTypedDataVirtual(IDebugSymbols *iface, ULONG output_control, + ULONG64 offset, ULONG64 base, ULONG type_id, ULONG flags) +{ + FIXME("%p, %#x, %s, %s, %u, %#x stub.\n", iface, output_control, wine_dbgstr_longlong(offset), + wine_dbgstr_longlong(base), type_id, flags); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_ReadTypedDataPhysical(IDebugSymbols *iface, ULONG64 offset, ULONG64 base, + ULONG type_id, void *buffer, ULONG buffer_size, ULONG *read_len) +{ + FIXME("%p, %s, %s, %u, %p, %u, %p stub.\n", iface, wine_dbgstr_longlong(offset), wine_dbgstr_longlong(base), + type_id, buffer, buffer_size, read_len); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_WriteTypedDataPhysical(IDebugSymbols *iface, ULONG64 offset, + ULONG64 base, ULONG type_id, void *buffer, ULONG buffer_size, ULONG *written) +{ + FIXME("%p, %s, %s, %u, %p, %u, %p stub.\n", iface, wine_dbgstr_longlong(offset), wine_dbgstr_longlong(base), + type_id, buffer, buffer_size, written); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_OutputTypedDataPhysical(IDebugSymbols *iface, ULONG output_control, + ULONG64 offset, ULONG64 base, ULONG type_id, ULONG flags) +{ + FIXME("%p, %#x, %s, %s, %u, %#x stub.\n", iface, output_control, wine_dbgstr_longlong(offset), + wine_dbgstr_longlong(base), type_id, flags); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetScope(IDebugSymbols *iface, ULONG64 *instr_offset, + DEBUG_STACK_FRAME *frame, void *scope_context, ULONG scope_context_size) +{ + FIXME("%p, %p, %p, %p, %u stub.\n", iface, instr_offset, frame, scope_context, scope_context_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_SetScope(IDebugSymbols *iface, ULONG64 instr_offset, + DEBUG_STACK_FRAME *frame, void *scope_context, ULONG scope_context_size) +{ + FIXME("%p, %s, %p, %p, %u stub.\n", iface, wine_dbgstr_longlong(instr_offset), frame, scope_context, + scope_context_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_ResetScope(IDebugSymbols *iface) +{ + FIXME("%p stub.\n", iface); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetScopeSymbolGroup(IDebugSymbols *iface, ULONG flags, + IDebugSymbolGroup *update, IDebugSymbolGroup **symbols) +{ + FIXME("%p, %#x, %p, %p stub.\n", iface, flags, update, symbols); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_CreateSymbolGroup(IDebugSymbols *iface, IDebugSymbolGroup **group) +{ + FIXME("%p, %p stub.\n", iface, group); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_StartSymbolMatch(IDebugSymbols *iface, const char *pattern, + ULONG64 *handle) +{ + FIXME("%p, %s, %p stub.\n", iface, pattern, handle); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetNextSymbolMatch(IDebugSymbols *iface, ULONG64 handle, char *buffer, + ULONG buffer_size, ULONG *match_size, ULONG64 *offset) +{ + FIXME("%p, %s, %p, %u, %p, %p stub.\n", iface, wine_dbgstr_longlong(handle), buffer, buffer_size, match_size, offset); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_EndSymbolMatch(IDebugSymbols *iface, ULONG64 handle) +{ + FIXME("%p, %s stub.\n", iface, wine_dbgstr_longlong(handle)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_Reload(IDebugSymbols *iface, const char *path) +{ + FIXME("%p, %s stub.\n", iface, debugstr_a(path)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetSymbolPath(IDebugSymbols *iface, char *buffer, ULONG buffer_size, + ULONG *path_size) +{ + FIXME("%p, %p, %u, %p stub.\n", iface, buffer, buffer_size, path_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_SetSymbolPath(IDebugSymbols *iface, const char *path) +{ + FIXME("%p, %s stub.\n", iface, debugstr_a(path)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_AppendSymbolPath(IDebugSymbols *iface, const char *path) +{ + FIXME("%p, %s stub.\n", iface, debugstr_a(path)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetImagePath(IDebugSymbols *iface, char *buffer, ULONG buffer_size, + ULONG *path_size) +{ + FIXME("%p, %p, %u, %p stub.\n", iface, buffer, buffer_size, path_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_SetImagePath(IDebugSymbols *iface, const char *path) +{ + FIXME("%p, %s stub.\n", iface, debugstr_a(path)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_AppendImagePath(IDebugSymbols *iface, const char *path) +{ + FIXME("%p, %s stub.\n", iface, debugstr_a(path)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetSourcePath(IDebugSymbols *iface, char *buffer, ULONG buffer_size, + ULONG *path_size) +{ + FIXME("%p, %p, %u, %p stub.\n", iface, buffer, buffer_size, path_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetSourcePathElement(IDebugSymbols *iface, ULONG index, char *buffer, + ULONG buffer_size, ULONG *element_size) +{ + FIXME("%p, %u, %p, %u, %p stub.\n", iface, index, buffer, buffer_size, element_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_SetSourcePath(IDebugSymbols *iface, const char *path) +{ + FIXME("%p, %s stub.\n", iface, debugstr_a(path)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_AppendSourcePath(IDebugSymbols *iface, const char *path) +{ + FIXME("%p, %s stub.\n", iface, debugstr_a(path)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_FindSourceFile(IDebugSymbols *iface, ULONG start, const char *file, + ULONG flags, ULONG *found_element, char *buffer, ULONG buffer_size, ULONG *found_size) +{ + FIXME("%p, %u, %s, %#x, %p, %p, %u, %p stub.\n", iface, start, debugstr_a(file), flags, found_element, buffer, + buffer_size, found_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugsymbols_GetSourceFileLineOffsets(IDebugSymbols *iface, const char *file, + ULONG64 *buffer, ULONG buffer_lines, ULONG *file_lines) +{ + FIXME("%p, %s, %p, %u, %p stub.\n", iface, debugstr_a(file), buffer, buffer_lines, file_lines); + + return E_NOTIMPL; +} + +static const IDebugSymbolsVtbl debugsymbolsvtbl = +{ + debugsymbols_QueryInterface, + debugsymbols_AddRef, + debugsymbols_Release, + debugsymbols_GetSymbolOptions, + debugsymbols_AddSymbolOptions, + debugsymbols_RemoveSymbolOptions, + debugsymbols_SetSymbolOptions, + debugsymbols_GetNameByOffset, + debugsymbols_GetOffsetByName, + debugsymbols_GetNearNameByOffset, + debugsymbols_GetLineByOffset, + debugsymbols_GetOffsetByLine, + debugsymbols_GetNumberModules, + debugsymbols_GetModuleByIndex, + debugsymbols_GetModuleByModuleName, + debugsymbols_GetModuleByOffset, + debugsymbols_GetModuleNames, + debugsymbols_GetModuleParameters, + debugsymbols_GetSymbolModule, + debugsymbols_GetTypeName, + debugsymbols_GetTypeId, + debugsymbols_GetFieldOffset, + debugsymbols_GetSymbolTypeId, + debugsymbols_GetOffsetTypeId, + debugsymbols_ReadTypedDataVirtual, + debugsymbols_WriteTypedDataVirtual, + debugsymbols_OutputTypedDataVirtual, + debugsymbols_ReadTypedDataPhysical, + debugsymbols_WriteTypedDataPhysical, + debugsymbols_OutputTypedDataPhysical, + debugsymbols_GetScope, + debugsymbols_SetScope, + debugsymbols_ResetScope, + debugsymbols_GetScopeSymbolGroup, + debugsymbols_CreateSymbolGroup, + debugsymbols_StartSymbolMatch, + debugsymbols_GetNextSymbolMatch, + debugsymbols_EndSymbolMatch, + debugsymbols_Reload, + debugsymbols_GetSymbolPath, + debugsymbols_SetSymbolPath, + debugsymbols_AppendSymbolPath, + debugsymbols_GetImagePath, + debugsymbols_SetImagePath, + debugsymbols_AppendImagePath, + debugsymbols_GetSourcePath, + debugsymbols_GetSourcePathElement, + debugsymbols_SetSourcePath, + debugsymbols_AppendSourcePath, + debugsymbols_FindSourceFile, + debugsymbols_GetSourceFileLineOffsets, +}; + /************************************************************ * DebugExtensionInitialize (DBGENG.@) * @@ -734,6 +1202,7 @@ HRESULT WINAPI DebugCreate(REFIID riid, void **obj)
debug_client->IDebugClient_iface.lpVtbl = &debugclientvtbl; debug_client->IDebugDataSpaces_iface.lpVtbl = &debugdataspacesvtbl; + debug_client->IDebugSymbols_iface.lpVtbl = &debugsymbolsvtbl; debug_client->refcount = 1;
unk = (IUnknown *)&debug_client->IDebugClient_iface; diff --git a/include/dbgeng.h b/include/dbgeng.h index 797aab7c68..f6dfa0fee3 100644 --- a/include/dbgeng.h +++ b/include/dbgeng.h @@ -27,6 +27,36 @@ DEFINE_GUID(IID_IDebugOutputCallbacks, 0x4bf58045, 0xd654, 0x4c40, 0xb0, 0xaf DEFINE_GUID(IID_IDebugEventCallbacks, 0x337be28b, 0x5036, 0x4d72, 0xb6, 0xbf, 0xc4, 0x5f, 0xbb, 0x9f, 0x2e, 0xaa); DEFINE_GUID(IID_IDebugClient, 0x27fe5639, 0x8407, 0x4f47, 0x83, 0x64, 0xee, 0x11, 0x8f, 0xb0, 0x8a, 0xc8); DEFINE_GUID(IID_IDebugDataSpaces, 0x88f7dfab, 0x3ea7, 0x4c3a, 0xae, 0xfb, 0xc4, 0xe8, 0x10, 0x61, 0x73, 0xaa); +DEFINE_GUID(IID_IDebugSymbols, 0x8c31e98c, 0x983a, 0x48a5, 0x90, 0x16, 0x6f, 0xe5, 0xd6, 0x67, 0xa9, 0x50); + +typedef struct _DEBUG_MODULE_PARAMETERS +{ + ULONG64 Base; + ULONG Size; + ULONG TimeDateStamp; + ULONG Checksum; + ULONG Flags; + ULONG SymbolType; + ULONG ImageNameSize; + ULONG ModuleNameSize; + ULONG LoadedImageNameSize; + ULONG SymbolFileNameSize; + ULONG MappedImageNameSize; + ULONG64 Reserved[2]; +} DEBUG_MODULE_PARAMETERS, *PDEBUG_MODULE_PARAMETERS; + +typedef struct _DEBUG_STACK_FRAME +{ + ULONG64 InstructionOffset; + ULONG64 ReturnOffset; + ULONG64 FrameOffset; + ULONG64 StackOffset; + ULONG64 FuncTableEntry; + ULONG64 Params[4]; + ULONG64 Reserved[6]; + BOOL Virtual; + ULONG FrameNumber; +} DEBUG_STACK_FRAME, *PDEBUG_STACK_FRAME;
#define INTERFACE IDebugBreakpoint DECLARE_INTERFACE_(IDebugBreakpoint, IUnknown) @@ -40,6 +70,18 @@ DECLARE_INTERFACE_(IDebugBreakpoint, IUnknown) }; #undef INTERFACE
+#define INTERFACE IDebugSymbolGroup +DECLARE_INTERFACE_(IDebugSymbolGroup, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + /* IDebugSymbolGroup */ + /* FIXME */ +}; +#undef INTERFACE + typedef IDebugBreakpoint* PDEBUG_BREAKPOINT;
#define INTERFACE IDebugInputCallbacks @@ -198,6 +240,82 @@ DECLARE_INTERFACE_(IDebugDataSpaces, IUnknown) }; #undef INTERFACE
+#define INTERFACE IDebugSymbols +DECLARE_INTERFACE_(IDebugSymbols, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + /* IDebugSymbols */ + STDMETHOD(GetSymbolOptions)(THIS_ ULONG *options) PURE; + STDMETHOD(AddSymbolOptions)(THIS_ ULONG options) PURE; + STDMETHOD(RemoveSymbolOptions)(THIS_ ULONG options) PURE; + STDMETHOD(SetSymbolOptions)(THIS_ ULONG options) PURE; + STDMETHOD(GetNameByOffset)(THIS_ ULONG64 offset, char *buffer, ULONG buffer_size, ULONG *name_size, + ULONG64 *displacement) PURE; + STDMETHOD(GetOffsetByName)(THIS_ const char *symbol, ULONG64 *offset) PURE; + STDMETHOD(GetNearNameByOffset)(THIS_ ULONG64 offset, LONG delta, char *buffer, ULONG buffer_size,ULONG *name_size, + ULONG64 *displacement) PURE; + STDMETHOD(GetLineByOffset)(THIS_ ULONG64 offset, ULONG *line, char *buffer, ULONG buffer_size, ULONG *file_size, + ULONG64 *displacement) PURE; + STDMETHOD(GetOffsetByLine)(THIS_ ULONG line, const char *file, ULONG64 *offset) PURE; + STDMETHOD(GetNumberModules)(THIS_ ULONG *loaded, ULONG *unloaded) PURE; + STDMETHOD(GetModuleByIndex)(THIS_ ULONG index, ULONG64 *base) PURE; + STDMETHOD(GetModuleByModuleName)(THIS_ const char *name, ULONG start_index, ULONG *index, ULONG64 *base) PURE; + STDMETHOD(GetModuleByOffset)(THIS_ ULONG64 offset, ULONG start_index, ULONG *index, ULONG64 *base) PURE; + STDMETHOD(GetModuleNames)(THIS_ ULONG index, ULONG64 base, char *image_name, ULONG image_name_buffer_size, + ULONG *image_name_size, char *module_name, ULONG module_name_buffer_size, ULONG *module_name_size, + char *loaded_image_name, ULONG loaded_image_name_buffer_size, ULONG *loaded_image_size) PURE; + STDMETHOD(GetModuleParameters)(THIS_ ULONG count, ULONG64 *bases, ULONG start, + DEBUG_MODULE_PARAMETERS *parameters) PURE; + STDMETHOD(GetSymbolModule)(THIS_ const char *symbol, ULONG64 *base) PURE; + STDMETHOD(GetTypeName)(THIS_ ULONG64 base, ULONG type_id, char *buffer, ULONG buffer_size, ULONG *name_size) PURE; + STDMETHOD(GetTypeId)(THIS_ ULONG64 base, ULONG type_id, ULONG *size) PURE; + STDMETHOD(GetFieldOffset)(THIS_ ULONG64 base, ULONG type_id, const char *field, ULONG *offset) PURE; + STDMETHOD(GetSymbolTypeId)(THIS_ const char *symbol, ULONG *type_id, ULONG64 *base) PURE; + STDMETHOD(GetOffsetTypeId)(THIS_ ULONG64 offset, ULONG *type_id, ULONG64 *base) PURE; + STDMETHOD(ReadTypedDataVirtual)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer, + ULONG buffer_size, ULONG *read_len) PURE; + STDMETHOD(WriteTypedDataVirtual)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer, + ULONG buffer_size, ULONG *written) PURE; + STDMETHOD(OutputTypedDataVirtual)(THIS_ ULONG output_control, ULONG64 offset, ULONG64 base, ULONG type_id, + ULONG flags) PURE; + STDMETHOD(ReadTypedDataPhysical)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer, + ULONG buffer_size, ULONG *read_len) PURE; + STDMETHOD(WriteTypedDataPhysical)(THIS_ ULONG64 offset, ULONG64 base, ULONG type_id, void *buffer, + ULONG buffer_size, ULONG *written) PURE; + STDMETHOD(OutputTypedDataPhysical)(THIS_ ULONG output_control, ULONG64 offset, ULONG64 base, ULONG type_id, + ULONG flags) PURE; + STDMETHOD(GetScope)(THIS_ ULONG64 *instr_offset, DEBUG_STACK_FRAME *frame, void *scope_context, + ULONG scope_context_size) PURE; + STDMETHOD(SetScope)(THIS_ ULONG64 instr_offset, DEBUG_STACK_FRAME *frame, void *scope_context, + ULONG scope_context_size) PURE; + STDMETHOD(ResetScope)(THIS) PURE; + STDMETHOD(GetScopeSymbolGroup)(THIS_ ULONG flags, IDebugSymbolGroup *update, IDebugSymbolGroup **symbols) PURE; + STDMETHOD(CreateSymbolGroup)(THIS_ IDebugSymbolGroup **group) PURE; + STDMETHOD(StartSymbolMatch)(THIS_ const char *pattern, ULONG64 *handle) PURE; + STDMETHOD(GetNextSymbolMatch)(THIS_ ULONG64 handle, char *buffer, ULONG buffer_size, ULONG *match_size, + ULONG64 *offset) PURE; + STDMETHOD(EndSymbolMatch)(THIS_ ULONG64 handle) PURE; + STDMETHOD(Reload)(THIS_ const char *path) PURE; + STDMETHOD(GetSymbolPath)(THIS_ char *buffer, ULONG buffer_size, ULONG *path_size) PURE; + STDMETHOD(SetSymbolPath)(THIS_ const char *path) PURE; + STDMETHOD(AppendSymbolPath)(THIS_ const char *path) PURE; + STDMETHOD(GetImagePath)(THIS_ char *buffer, ULONG buffer_size, ULONG *path_size) PURE; + STDMETHOD(SetImagePath)(THIS_ const char *path) PURE; + STDMETHOD(AppendImagePath)(THIS_ const char *path) PURE; + STDMETHOD(GetSourcePath)(THIS_ char *buffer, ULONG buffer_size, ULONG *path_size) PURE; + STDMETHOD(GetSourcePathElement)(THIS_ ULONG index, char *buffer, ULONG buffer_size, ULONG *element_size) PURE; + STDMETHOD(SetSourcePath)(THIS_ const char *path) PURE; + STDMETHOD(AppendSourcePath)(THIS_ const char *path) PURE; + STDMETHOD(FindSourceFile)(THIS_ ULONG start, const char *file, ULONG flags, ULONG *found_element, char *buffer, + ULONG buffer_size, ULONG *found_size) PURE; + STDMETHOD(GetSourceFileLineOffsets)(THIS_ const char *file, ULONG64 *buffer, ULONG buffer_lines, + ULONG *file_lines) PURE; +}; +#undef INTERFACE + #ifdef __cplusplus } #endif
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- include/dbgeng.h | 329 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 329 insertions(+)
diff --git a/include/dbgeng.h b/include/dbgeng.h index f6dfa0fee3..6e4529cf91 100644 --- a/include/dbgeng.h +++ b/include/dbgeng.h @@ -28,6 +28,8 @@ DEFINE_GUID(IID_IDebugEventCallbacks, 0x337be28b, 0x5036, 0x4d72, 0xb6, 0xbf DEFINE_GUID(IID_IDebugClient, 0x27fe5639, 0x8407, 0x4f47, 0x83, 0x64, 0xee, 0x11, 0x8f, 0xb0, 0x8a, 0xc8); DEFINE_GUID(IID_IDebugDataSpaces, 0x88f7dfab, 0x3ea7, 0x4c3a, 0xae, 0xfb, 0xc4, 0xe8, 0x10, 0x61, 0x73, 0xaa); DEFINE_GUID(IID_IDebugSymbols, 0x8c31e98c, 0x983a, 0x48a5, 0x90, 0x16, 0x6f, 0xe5, 0xd6, 0x67, 0xa9, 0x50); +DEFINE_GUID(IID_IDebugControl, 0x5182e668, 0x105e, 0x416e, 0xad, 0x92, 0x24, 0xef, 0x80, 0x04, 0x24, 0xba); +DEFINE_GUID(IID_IDebugControl2, 0xd4366723, 0x44df, 0x4bed, 0x8c, 0x7e, 0x4c, 0x05, 0x42, 0x4f, 0x45, 0x88);
typedef struct _DEBUG_MODULE_PARAMETERS { @@ -58,6 +60,83 @@ typedef struct _DEBUG_STACK_FRAME ULONG FrameNumber; } DEBUG_STACK_FRAME, *PDEBUG_STACK_FRAME;
+typedef struct _DEBUG_VALUE +{ + union + { + UCHAR I8; + USHORT I16; + ULONG I32; + struct + { + ULONG64 I64; + BOOL Nat; + }; + float F32; + double F64; + UCHAR F80Bytes[10]; + UCHAR F82Bytes[11]; + UCHAR F128Bytes[16]; + UCHAR VI8[16]; + USHORT VI16[8]; + ULONG VI32[4]; + ULONG64 VI64[2]; + float VF32[4]; + double VF64[2]; + struct + { + ULONG LowPart; + ULONG HighPart; + } I64Parts32; + struct + { + ULONG64 LowPart; + LONG64 HighPart; + } F128Parts64; + UCHAR RawBytes[24]; + }; + ULONG TailOfRawBytes; + ULONG Type; +} DEBUG_VALUE, *PDEBUG_VALUE; + +typedef struct _DEBUG_BREAKPOINT_PARAMETERS +{ + ULONG64 Offset; + ULONG Id; + ULONG BreakType; + ULONG ProcType; + ULONG Flags; + ULONG DataSize; + ULONG DataAccessType; + ULONG PassCount; + ULONG CurrentPassCount; + ULONG MatchThread; + ULONG CommandSize; + ULONG OffsetExpressionSize; +} DEBUG_BREAKPOINT_PARAMETERS, *PDEBUG_BREAKPOINT_PARAMETERS; + +typedef struct _WINDBG_EXTENSION_APIS32 *PWINDBG_EXTENSION_APIS32; +typedef struct _WINDBG_EXTENSION_APIS64 *PWINDBG_EXTENSION_APIS64; + +typedef struct _DEBUG_SPECIFIC_FILTER_PARAMETERS +{ + ULONG ExecutionOption; + ULONG ContinueOption; + ULONG TextSize; + ULONG CommandSize; + ULONG ArgumentSize; +} DEBUG_SPECIFIC_FILTER_PARAMETERS, *PDEBUG_SPECIFIC_FILTER_PARAMETERS; + +typedef struct _DEBUG_EXCEPTION_FILTER_PARAMETERS +{ + ULONG ExecutionOption; + ULONG ContinueOption; + ULONG TextSize; + ULONG CommandSize; + ULONG SecondCommandSize; + ULONG ExceptionCode; +} DEBUG_EXCEPTION_FILTER_PARAMETERS, *PDEBUG_EXCEPTION_FILTER_PARAMETERS; + #define INTERFACE IDebugBreakpoint DECLARE_INTERFACE_(IDebugBreakpoint, IUnknown) { @@ -316,6 +395,256 @@ DECLARE_INTERFACE_(IDebugSymbols, IUnknown) }; #undef INTERFACE
+#define INTERFACE IDebugControl +DECLARE_INTERFACE_(IDebugControl, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + /* IDebugControl */ + STDMETHOD(GetInterrupt)(THIS) PURE; + STDMETHOD(SetInterrupt)(THIS_ ULONG flags) PURE; + STDMETHOD(GetIterruptTimeout)(THIS_ ULONG *timeout) PURE; + STDMETHOD(SetInterruptTimeout)(THIS_ ULONG timeout) PURE; + STDMETHOD(GetLogFile)(THIS_ char *buffer, ULONG buffer_size, ULONG *file_size, BOOL *append) PURE; + STDMETHOD(OpenLogFile)(THIS_ const char *file, BOOL append) PURE; + STDMETHOD(CloseLogFile)(THIS) PURE; + STDMETHOD(GetLogMask)(THIS_ ULONG *mask) PURE; + STDMETHOD(SetLogMask)(THIS_ ULONG mask) PURE; + STDMETHOD(Input)(THIS_ char *buffer, ULONG buffer_size, ULONG *input_size) PURE; + STDMETHOD(ReturnInput)(THIS_ const char *buffer) PURE; + STDMETHODV(Output)(THIS_ ULONG mask, const char *format, ...) PURE; + STDMETHOD(OutputVaList)(THIS_ ULONG mask, const char *format, __ms_va_list args) PURE; + STDMETHODV(ControlledOutput)(THIS_ ULONG output_control, ULONG mask, const char *format, ...) PURE; + STDMETHOD(ControlledOutputVaList)(THIS_ ULONG output_control, ULONG mask, const char *format, + __ms_va_list args) PURE; + STDMETHODV(OutputPrompt)(THIS_ ULONG output_control, const char *format, ...) PURE; + STDMETHOD(OutputPromptVaList)(THIS_ ULONG output_control, const char *format, __ms_va_list args) PURE; + STDMETHOD(GetPromptText)(THIS_ char *buffer, ULONG buffer_size, ULONG *text_size) PURE; + STDMETHOD(OutputCurrentState)(THIS_ ULONG output_control, ULONG flags) PURE; + STDMETHOD(OutputVersionInformation)(THIS_ ULONG output_control) PURE; + STDMETHOD(GetNotifyEventHandle)(THIS_ ULONG64 *handle) PURE; + STDMETHOD(SetNotifyEventHandle)(THIS_ ULONG64 handle) PURE; + STDMETHOD(Assemble)(THIS_ ULONG64 offset, const char *code, ULONG64 *end_offset) PURE; + STDMETHOD(Disassemble)(THIS_ ULONG64 offset, ULONG flags, char *buffer, ULONG buffer_size, ULONG *disassm_size, + ULONG64 *end_offset) PURE; + STDMETHOD(GetDisassembleEffectiveOffset)(THIS_ ULONG64 *offset) PURE; + STDMETHOD(OutputDisassembly)(THIS_ ULONG output_control, ULONG64 offset, ULONG flags, ULONG64 *end_offset) PURE; + STDMETHOD(OutputDisassemblyLines)(THIS_ ULONG output_control, ULONG prev_lines, ULONG total_lines, ULONG64 offset, + ULONG flags, ULONG *offset_line, ULONG64 *start_offset, ULONG64 *end_offset, ULONG64 *line_offsets) PURE; + STDMETHOD(GetNearInstruction)(THIS_ ULONG64 offset, LONG delta, ULONG64 *instr_offset) PURE; + STDMETHOD(GetStackTrace)(THIS_ ULONG64 frame_offset, ULONG64 stack_offset, ULONG64 instr_offset, + DEBUG_STACK_FRAME *frames, ULONG frames_size, ULONG *frames_filled) PURE; + STDMETHOD(GetReturnOffset)(THIS_ ULONG64 *offset) PURE; + STDMETHOD(OutputStackTrace)(THIS_ ULONG output_control, DEBUG_STACK_FRAME *frames, ULONG frames_size, + ULONG flags) PURE; + STDMETHOD(GetDebuggeeType)(THIS_ ULONG *_class, ULONG *qualifier) PURE; + STDMETHOD(GetActualProcessorType)(THIS_ ULONG *type) PURE; + STDMETHOD(GetExecutingProcessorType)(THIS_ ULONG *type) PURE; + STDMETHOD(GetNumberPossibleExecutingProcessorTypes)(THIS_ ULONG *count) PURE; + STDMETHOD(GetPossibleExecutingProcessorTypes)(THIS_ ULONG start, ULONG count, ULONG *types) PURE; + STDMETHOD(GetNumberProcessors)(THIS_ ULONG *count) PURE; + STDMETHOD(GetSystemVersion)(THIS_ ULONG *platform_id, ULONG *major, ULONG *minor, char *sp_string, + ULONG sp_string_size, ULONG *sp_string_used, ULONG *sp_number, char *build_string, ULONG build_string_size, + ULONG *build_string_used) PURE; + STDMETHOD(GetPageSize)(THIS_ ULONG *size) PURE; + STDMETHOD(IsPointer64Bit)(THIS) PURE; + STDMETHOD(ReadBugCheckData)(THIS_ ULONG *code, ULONG64 *arg1, ULONG64 *arg2, ULONG64 *arg3, ULONG64 *arg4) PURE; + STDMETHOD(GetNumberSupportedProcessorTypes)(THIS_ ULONG *count) PURE; + STDMETHOD(GetSupportedProcessorTypes)(THIS_ ULONG start, ULONG count, ULONG *types) PURE; + STDMETHOD(GetProcessorTypeNames)(THIS_ ULONG type, char *full_name, ULONG full_name_buffer_size, + ULONG *full_name_size, char *abbrev_name, ULONG abbrev_name_buffer_size, ULONG *abbrev_name_size) PURE; + STDMETHOD(GetEffectiveProcessorType)(THIS_ ULONG *type) PURE; + STDMETHOD(SetEffectiveProcessorType)(THIS_ ULONG type) PURE; + STDMETHOD(GetExecutionStatus)(THIS_ ULONG *status) PURE; + STDMETHOD(SetExecutionStatus)(THIS_ ULONG status) PURE; + STDMETHOD(GetCodeLevel)(THIS_ ULONG *level) PURE; + STDMETHOD(SetCodeLevel)(THIS_ ULONG level) PURE; + STDMETHOD(GetEngineOptions)(THIS_ ULONG *options) PURE; + STDMETHOD(AddEngineOptions)(THIS_ ULONG options) PURE; + STDMETHOD(RemoveEngineOptions)(THIS_ ULONG options) PURE; + STDMETHOD(SetEngineOptions)(THIS_ ULONG options) PURE; + STDMETHOD(GetSystemErrorControl)(THIS_ ULONG *output_level, ULONG *break_level) PURE; + STDMETHOD(SetSystemErrorControl)(THIS_ ULONG output_level, ULONG break_level) PURE; + STDMETHOD(GetTextMacro)(THIS_ ULONG slot, char *buffer, ULONG buffer_size, ULONG *macro_size) PURE; + STDMETHOD(SetTextMacro)(THIS_ ULONG slot, const char *macro) PURE; + STDMETHOD(GetRadix)(THIS_ ULONG *radix) PURE; + STDMETHOD(SetRadix)(THIS_ ULONG radix) PURE; + STDMETHOD(Evaluate)(THIS_ const char *expression, ULONG desired_type, DEBUG_VALUE *value, + ULONG *remainder_index) PURE; + STDMETHOD(CoerceValue)(THIS_ DEBUG_VALUE input, ULONG output_type, DEBUG_VALUE *output) PURE; + STDMETHOD(CoerceValues)(THIS_ ULONG count, DEBUG_VALUE *input, ULONG *output_types, DEBUG_VALUE *output) PURE; + STDMETHOD(Execute)(THIS_ ULONG output_control, const char *command, ULONG flags) PURE; + STDMETHOD(ExecuteCommandFile)(THIS_ ULONG output_control, const char *command_file, ULONG flags) PURE; + STDMETHOD(GetNumberBreakpoints)(THIS_ ULONG *count) PURE; + STDMETHOD(GetBreakpointByIndex)(THIS_ ULONG index, IDebugBreakpoint **bp) PURE; + STDMETHOD(GetBreakpointById)(THIS_ ULONG id, IDebugBreakpoint **bp) PURE; + STDMETHOD(GetBreakpointParameters)(THIS_ ULONG count, ULONG *ids, ULONG start, + DEBUG_BREAKPOINT_PARAMETERS *parameters) PURE; + STDMETHOD(AddBreakpoint)(THIS_ ULONG type, ULONG desired_id, IDebugBreakpoint **bp) PURE; + STDMETHOD(RemoveBreakpoint)(THIS_ IDebugBreakpoint *bp) PURE; + STDMETHOD(AddExtension)(THIS_ const char *path, ULONG flags, ULONG64 *handle) PURE; + STDMETHOD(RemoveExtension)(THIS_ ULONG64 handle) PURE; + STDMETHOD(GetExtensionByPath)(THIS_ const char *path, ULONG64 *handle) PURE; + STDMETHOD(CallExtension)(THIS_ ULONG64 handle, const char *function, const char *args) PURE; + STDMETHOD(GetExtensionFunction)(THIS_ ULONG64 handle, const char *name, void *function) PURE; + STDMETHOD(GetWindbgExtensionApis32)(THIS_ PWINDBG_EXTENSION_APIS32 api) PURE; + STDMETHOD(GetWindbgExtensionApis64)(THIS_ PWINDBG_EXTENSION_APIS64 api) PURE; + STDMETHOD(GetNumberEventFilters)(THIS_ ULONG *specific_events, ULONG *specific_exceptions, + ULONG *arbitrary_exceptions) PURE; + STDMETHOD(GetEventFilterText)(THIS_ ULONG index, char *buffer, ULONG buffer_size, ULONG *text_size) PURE; + STDMETHOD(GetEventFilterCommand)(THIS_ ULONG index, char *buffer, ULONG buffer_size, ULONG *command_size) PURE; + STDMETHOD(SetEventFilterCommand)(THIS_ ULONG index, const char *command) PURE; + STDMETHOD(GetSpecificFilterParameters)(THIS_ ULONG start, ULONG count, + DEBUG_SPECIFIC_FILTER_PARAMETERS *parameters) PURE; + STDMETHOD(SetSpecificFilterParameters)(THIS_ ULONG start, ULONG count, + DEBUG_SPECIFIC_FILTER_PARAMETERS *parameters) PURE; + STDMETHOD(GetSpecificFilterArgument)(THIS_ ULONG index, char *buffer, ULONG buffer_size, + ULONG *argument_size) PURE; + STDMETHOD(SetSpecificFilterArgument)(THIS_ ULONG index, const char *argument) PURE; + STDMETHOD(GetExceptionFilterParameters)(THIS_ ULONG count, ULONG *codes, ULONG start, + DEBUG_EXCEPTION_FILTER_PARAMETERS *parameters) PURE; + STDMETHOD(SetExceptionFilterParameters)(THIS_ ULONG count, DEBUG_EXCEPTION_FILTER_PARAMETERS *parameters) PURE; + STDMETHOD(GetExceptionFilterSecondCommand)(THIS_ ULONG index, char *buffer, ULONG buffer_size, + ULONG *command_size) PURE; + STDMETHOD(SetExceptionFilterSecondCommand)(THIS_ ULONG index, const char *command) PURE; + STDMETHOD(WaitForEvent)(THIS_ ULONG flags, ULONG timeout) PURE; + STDMETHOD(GetLastEventInformation)(THIS_ ULONG *type, ULONG *pid, ULONG *tid, void *extra_info, + ULONG extra_info_size, ULONG *extra_info_used, char *description, ULONG desc_size, ULONG *desc_used) PURE; +}; +#undef INTERFACE + +#define INTERFACE IDebugControl2 +DECLARE_INTERFACE_(IDebugControl2, IUnknown) +{ + /* IUnknown */ + STDMETHOD(QueryInterface)(THIS_ REFIID riid, void **out) PURE; + STDMETHOD_(ULONG, AddRef)(THIS) PURE; + STDMETHOD_(ULONG, Release)(THIS) PURE; + /* IDebugControl */ + STDMETHOD(GetInterrupt)(THIS) PURE; + STDMETHOD(SetInterrupt)(THIS_ ULONG flags) PURE; + STDMETHOD(GetIterruptTimeout)(THIS_ ULONG *timeout) PURE; + STDMETHOD(SetInterruptTimeout)(THIS_ ULONG timeout) PURE; + STDMETHOD(GetLogFile)(THIS_ char *buffer, ULONG buffer_size, ULONG *file_size, BOOL *append) PURE; + STDMETHOD(OpenLogFile)(THIS_ const char *file, BOOL append) PURE; + STDMETHOD(CloseLogFile)(THIS) PURE; + STDMETHOD(GetLogMask)(THIS_ ULONG *mask) PURE; + STDMETHOD(SetLogMask)(THIS_ ULONG mask) PURE; + STDMETHOD(Input)(THIS_ char *buffer, ULONG buffer_size, ULONG *input_size) PURE; + STDMETHOD(ReturnInput)(THIS_ const char *buffer) PURE; + STDMETHODV(Output)(THIS_ ULONG mask, const char *format, ...) PURE; + STDMETHOD(OutputVaList)(THIS_ ULONG mask, const char *format, __ms_va_list args) PURE; + STDMETHODV(ControlledOutput)(THIS_ ULONG output_control, ULONG mask, const char *format, ...) PURE; + STDMETHOD(ControlledOutputVaList)(THIS_ ULONG output_control, ULONG mask, const char *format, + __ms_va_list args) PURE; + STDMETHODV(OutputPrompt)(THIS_ ULONG output_control, const char *format, ...) PURE; + STDMETHOD(OutputPromptVaList)(THIS_ ULONG output_control, const char *format, __ms_va_list args) PURE; + STDMETHOD(GetPromptText)(THIS_ char *buffer, ULONG buffer_size, ULONG *text_size) PURE; + STDMETHOD(OutputCurrentState)(THIS_ ULONG output_control, ULONG flags) PURE; + STDMETHOD(OutputVersionInformation)(THIS_ ULONG output_control) PURE; + STDMETHOD(GetNotifyEventHandle)(THIS_ ULONG64 *handle) PURE; + STDMETHOD(SetNotifyEventHandle)(THIS_ ULONG64 handle) PURE; + STDMETHOD(Assemble)(THIS_ ULONG64 offset, const char *code, ULONG64 *end_offset) PURE; + STDMETHOD(Disassemble)(THIS_ ULONG64 offset, ULONG flags, char *buffer, ULONG buffer_size, ULONG *disassm_size, + ULONG64 *end_offset) PURE; + STDMETHOD(GetDisassembleEffectiveOffset)(THIS_ ULONG64 *offset) PURE; + STDMETHOD(OutputDisassembly)(THIS_ ULONG output_control, ULONG64 offset, ULONG flags, ULONG64 *end_offset) PURE; + STDMETHOD(OutputDisassemblyLines)(THIS_ ULONG output_control, ULONG prev_lines, ULONG total_lines, ULONG64 offset, + ULONG flags, ULONG *offset_line, ULONG64 *start_offset, ULONG64 *end_offset, ULONG64 *line_offsets) PURE; + STDMETHOD(GetNearInstruction)(THIS_ ULONG64 offset, LONG delta, ULONG64 *instr_offset) PURE; + STDMETHOD(GetStackTrace)(THIS_ ULONG64 frame_offset, ULONG64 stack_offset, ULONG64 instr_offset, + DEBUG_STACK_FRAME *frames, ULONG frames_size, ULONG *frames_filled) PURE; + STDMETHOD(GetReturnOffset)(THIS_ ULONG64 *offset) PURE; + STDMETHOD(OutputStackTrace)(THIS_ ULONG output_control, DEBUG_STACK_FRAME *frames, ULONG frames_size, + ULONG flags) PURE; + STDMETHOD(GetDebuggeeType)(THIS_ ULONG *_class, ULONG *qualifier) PURE; + STDMETHOD(GetActualProcessorType)(THIS_ ULONG *type) PURE; + STDMETHOD(GetExecutingProcessorType)(THIS_ ULONG *type) PURE; + STDMETHOD(GetNumberPossibleExecutingProcessorTypes)(THIS_ ULONG *count) PURE; + STDMETHOD(GetPossibleExecutingProcessorTypes)(THIS_ ULONG start, ULONG count, ULONG *types) PURE; + STDMETHOD(GetNumberProcessors)(THIS_ ULONG *count) PURE; + STDMETHOD(GetSystemVersion)(THIS_ ULONG *platform_id, ULONG *major, ULONG *minor, char *sp_string, + ULONG sp_string_size, ULONG *sp_string_used, ULONG *sp_number, char *build_string, ULONG build_string_size, + ULONG *build_string_used) PURE; + STDMETHOD(GetPageSize)(THIS_ ULONG *size) PURE; + STDMETHOD(IsPointer64Bit)(THIS) PURE; + STDMETHOD(ReadBugCheckData)(THIS_ ULONG *code, ULONG64 *arg1, ULONG64 *arg2, ULONG64 *arg3, ULONG64 *arg4) PURE; + STDMETHOD(GetNumberSupportedProcessorTypes)(THIS_ ULONG *count) PURE; + STDMETHOD(GetSupportedProcessorTypes)(THIS_ ULONG start, ULONG count, ULONG *types) PURE; + STDMETHOD(GetProcessorTypeNames)(THIS_ ULONG type, char *full_name, ULONG full_name_buffer_size, + ULONG *full_name_size, char *abbrev_name, ULONG abbrev_name_buffer_size, ULONG *abbrev_name_size) PURE; + STDMETHOD(GetEffectiveProcessorType)(THIS_ ULONG *type) PURE; + STDMETHOD(SetEffectiveProcessorType)(THIS_ ULONG type) PURE; + STDMETHOD(GetExecutionStatus)(THIS_ ULONG *status) PURE; + STDMETHOD(SetExecutionStatus)(THIS_ ULONG status) PURE; + STDMETHOD(GetCodeLevel)(THIS_ ULONG *level) PURE; + STDMETHOD(SetCodeLevel)(THIS_ ULONG level) PURE; + STDMETHOD(GetEngineOptions)(THIS_ ULONG *options) PURE; + STDMETHOD(AddEngineOptions)(THIS_ ULONG options) PURE; + STDMETHOD(RemoveEngineOptions)(THIS_ ULONG options) PURE; + STDMETHOD(SetEngineOptions)(THIS_ ULONG options) PURE; + STDMETHOD(GetSystemErrorControl)(THIS_ ULONG *output_level, ULONG *break_level) PURE; + STDMETHOD(SetSystemErrorControl)(THIS_ ULONG output_level, ULONG break_level) PURE; + STDMETHOD(GetTextMacro)(THIS_ ULONG slot, char *buffer, ULONG buffer_size, ULONG *macro_size) PURE; + STDMETHOD(SetTextMacro)(THIS_ ULONG slot, const char *macro) PURE; + STDMETHOD(GetRadix)(THIS_ ULONG *radix) PURE; + STDMETHOD(SetRadix)(THIS_ ULONG radix) PURE; + STDMETHOD(Evaluate)(THIS_ const char *expression, ULONG desired_type, DEBUG_VALUE *value, + ULONG *remainder_index) PURE; + STDMETHOD(CoerceValue)(THIS_ DEBUG_VALUE input, ULONG output_type, DEBUG_VALUE *output) PURE; + STDMETHOD(CoerceValues)(THIS_ ULONG count, DEBUG_VALUE *input, ULONG *output_types, DEBUG_VALUE *output) PURE; + STDMETHOD(Execute)(THIS_ ULONG output_control, const char *command, ULONG flags) PURE; + STDMETHOD(ExecuteCommandFile)(THIS_ ULONG output_control, const char *command_file, ULONG flags) PURE; + STDMETHOD(GetNumberBreakpoints)(THIS_ ULONG *count) PURE; + STDMETHOD(GetBreakpointByIndex)(THIS_ ULONG index, IDebugBreakpoint **bp) PURE; + STDMETHOD(GetBreakpointById)(THIS_ ULONG id, IDebugBreakpoint **bp) PURE; + STDMETHOD(GetBreakpointParameters)(THIS_ ULONG count, ULONG *ids, ULONG start, + DEBUG_BREAKPOINT_PARAMETERS *parameters) PURE; + STDMETHOD(AddBreakpoint)(THIS_ ULONG type, ULONG desired_id, IDebugBreakpoint **bp) PURE; + STDMETHOD(RemoveBreakpoint)(THIS_ IDebugBreakpoint *bp) PURE; + STDMETHOD(AddExtension)(THIS_ const char *path, ULONG flags, ULONG64 *handle) PURE; + STDMETHOD(RemoveExtension)(THIS_ ULONG64 handle) PURE; + STDMETHOD(GetExtensionByPath)(THIS_ const char *path, ULONG64 *handle) PURE; + STDMETHOD(CallExtension)(THIS_ ULONG64 handle, const char *function, const char *args) PURE; + STDMETHOD(GetExtensionFunction)(THIS_ ULONG64 handle, const char *name, void *function) PURE; + STDMETHOD(GetWindbgExtensionApis32)(THIS_ PWINDBG_EXTENSION_APIS32 api) PURE; + STDMETHOD(GetWindbgExtensionApis64)(THIS_ PWINDBG_EXTENSION_APIS64 api) PURE; + STDMETHOD(GetNumberEventFilters)(THIS_ ULONG *specific_events, ULONG *specific_exceptions, + ULONG *arbitrary_exceptions) PURE; + STDMETHOD(GetEventFilterText)(THIS_ ULONG index, char *buffer, ULONG buffer_size, ULONG *text_size) PURE; + STDMETHOD(GetEventFilterCommand)(THIS_ ULONG index, char *buffer, ULONG buffer_size, ULONG *command_size) PURE; + STDMETHOD(SetEventFilterCommand)(THIS_ ULONG index, const char *command) PURE; + STDMETHOD(GetSpecificFilterParameters)(THIS_ ULONG start, ULONG count, + DEBUG_SPECIFIC_FILTER_PARAMETERS *parameters) PURE; + STDMETHOD(SetSpecificFilterParameters)(THIS_ ULONG start, ULONG count, + DEBUG_SPECIFIC_FILTER_PARAMETERS *parameters) PURE; + STDMETHOD(GetSpecificFilterArgument)(THIS_ ULONG index, char *buffer, ULONG buffer_size, + ULONG *argument_size) PURE; + STDMETHOD(SetSpecificFilterArgument)(THIS_ ULONG index, const char *argument) PURE; + STDMETHOD(GetExceptionFilterParameters)(THIS_ ULONG count, ULONG *codes, ULONG start, + DEBUG_EXCEPTION_FILTER_PARAMETERS *parameters) PURE; + STDMETHOD(SetExceptionFilterParameters)(THIS_ ULONG count, DEBUG_EXCEPTION_FILTER_PARAMETERS *parameters) PURE; + STDMETHOD(GetExceptionFilterSecondCommand)(THIS_ ULONG index, char *buffer, ULONG buffer_size, + ULONG *command_size) PURE; + STDMETHOD(SetExceptionFilterSecondCommand)(THIS_ ULONG index, const char *command) PURE; + STDMETHOD(WaitForEvent)(THIS_ ULONG flags, ULONG timeout) PURE; + STDMETHOD(GetLastEventInformation)(THIS_ ULONG *type, ULONG *pid, ULONG *tid, void *extra_info, + ULONG extra_info_size, ULONG *extra_info_used, char *description, ULONG desc_size, ULONG *desc_used) PURE; + /* IDebugControl2 */ + STDMETHOD(GetCurrentTimeDate)(THIS_ ULONG timedate) PURE; + STDMETHOD(GetCurrentSystemUpTime)(THIS_ ULONG uptime) PURE; + STDMETHOD(GetDumpFormatFlags)(THIS_ ULONG *flags) PURE; + STDMETHOD(GetNumberTextPlacements)(THIS_ ULONG *count) PURE; + STDMETHOD(GetNumberTextReplacement)(THIS_ const char *src_text, ULONG index, char *src_buffer, + ULONG src_buffer_size, ULONG *src_size, char *dst_buffer, ULONG dst_buffer_size, ULONG *dst_size) PURE; + STDMETHOD(SetTextReplacement)(THIS_ const char *src_text, const char *dst_text) PURE; + STDMETHOD(RemoveTextReplacements)(THIS) PURE; + STDMETHOD(OutputTextReplacements)(THIS_ ULONG output_control, ULONG flags) PURE; +}; +#undef INTERFACE + #ifdef __cplusplus } #endif
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/dbgeng/dbgeng.c | 905 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 905 insertions(+)
diff --git a/dlls/dbgeng/dbgeng.c b/dlls/dbgeng/dbgeng.c index 9ed2718082..348f2b9ad5 100644 --- a/dlls/dbgeng/dbgeng.c +++ b/dlls/dbgeng/dbgeng.c @@ -39,6 +39,7 @@ struct debug_client IDebugClient IDebugClient_iface; IDebugDataSpaces IDebugDataSpaces_iface; IDebugSymbols IDebugSymbols_iface; + IDebugControl2 IDebugControl2_iface; LONG refcount; };
@@ -57,6 +58,11 @@ static struct debug_client *impl_from_IDebugSymbols(IDebugSymbols *iface) return CONTAINING_RECORD(iface, struct debug_client, IDebugSymbols_iface); }
+static struct debug_client *impl_from_IDebugControl2(IDebugControl2 *iface) +{ + return CONTAINING_RECORD(iface, struct debug_client, IDebugControl2_iface); +} + static HRESULT STDMETHODCALLTYPE debugclient_QueryInterface(IDebugClient *iface, REFIID riid, void **obj) { struct debug_client *debug_client = impl_from_IDebugClient(iface); @@ -76,6 +82,11 @@ static HRESULT STDMETHODCALLTYPE debugclient_QueryInterface(IDebugClient *iface, { *obj = &debug_client->IDebugSymbols_iface; } + else if (IsEqualIID(riid, &IID_IDebugControl2) + || IsEqualIID(riid, &IID_IDebugControl)) + { + *obj = &debug_client->IDebugControl2_iface; + } else { WARN("Unsupported interface %s.\n", debugstr_guid(riid)); @@ -1160,6 +1171,899 @@ static const IDebugSymbolsVtbl debugsymbolsvtbl = debugsymbols_GetSourceFileLineOffsets, };
+static HRESULT STDMETHODCALLTYPE debugcontrol_QueryInterface(IDebugControl2 *iface, REFIID riid, void **obj) +{ + struct debug_client *debug_client = impl_from_IDebugControl2(iface); + IUnknown *unk = (IUnknown *)&debug_client->IDebugClient_iface; + return IUnknown_QueryInterface(unk, riid, obj); +} + +static ULONG STDMETHODCALLTYPE debugcontrol_AddRef(IDebugControl2 *iface) +{ + struct debug_client *debug_client = impl_from_IDebugControl2(iface); + IUnknown *unk = (IUnknown *)&debug_client->IDebugClient_iface; + return IUnknown_AddRef(unk); +} + +static ULONG STDMETHODCALLTYPE debugcontrol_Release(IDebugControl2 *iface) +{ + struct debug_client *debug_client = impl_from_IDebugControl2(iface); + IUnknown *unk = (IUnknown *)&debug_client->IDebugClient_iface; + return IUnknown_Release(unk); +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetInterrupt(IDebugControl2 *iface) +{ + FIXME("%p stub.\n", iface); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetInterrupt(IDebugControl2 *iface, ULONG flags) +{ + FIXME("%p, %#x stub.\n", iface, flags); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetInterruptTimeout(IDebugControl2 *iface, ULONG *timeout) +{ + FIXME("%p, %p stub.\n", iface, timeout); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetInterruptTimeout(IDebugControl2 *iface, ULONG timeout) +{ + FIXME("%p, %u stub.\n", iface, timeout); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetLogFile(IDebugControl2 *iface, char *buffer, ULONG buffer_size, + ULONG *file_size, BOOL *append) +{ + FIXME("%p, %p, %u, %p, %p stub.\n", iface, buffer, buffer_size, file_size, append); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_OpenLogFile(IDebugControl2 *iface, const char *file, BOOL append) +{ + FIXME("%p, %s, %d stub.\n", iface, debugstr_a(file), append); + + return E_NOTIMPL; +} +static HRESULT STDMETHODCALLTYPE debugcontrol_CloseLogFile(IDebugControl2 *iface) +{ + FIXME("%p stub.\n", iface); + + return E_NOTIMPL; +} +static HRESULT STDMETHODCALLTYPE debugcontrol_GetLogMask(IDebugControl2 *iface, ULONG *mask) +{ + FIXME("%p, %p stub.\n", iface, mask); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetLogMask(IDebugControl2 *iface, ULONG mask) +{ + FIXME("%p, %#x stub.\n", iface, mask); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_Input(IDebugControl2 *iface, char *buffer, ULONG buffer_size, + ULONG *input_size) +{ + FIXME("%p, %p, %u, %p stub.\n", iface, buffer, buffer_size, input_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_ReturnInput(IDebugControl2 *iface, const char *buffer) +{ + FIXME("%p, %s stub.\n", iface, debugstr_a(buffer)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODVCALLTYPE debugcontrol_Output(IDebugControl2 *iface, ULONG mask, const char *format, ...) +{ + FIXME("%p, %#x, %s stub.\n", iface, mask, debugstr_a(format)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_OutputVaList(IDebugControl2 *iface, ULONG mask, const char *format, + __ms_va_list args) +{ + FIXME("%p, %#x, %s stub.\n", iface, mask, debugstr_a(format)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODVCALLTYPE debugcontrol_ControlledOutput(IDebugControl2 *iface, ULONG output_control, + ULONG mask, const char *format, ...) +{ + FIXME("%p, %u, %#x, %s stub.\n", iface, output_control, mask, debugstr_a(format)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_ControlledOutputVaList(IDebugControl2 *iface, ULONG output_control, + ULONG mask, const char *format, __ms_va_list args) +{ + FIXME("%p, %u, %#x, %s stub.\n", iface, output_control, mask, debugstr_a(format)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODVCALLTYPE debugcontrol_OutputPrompt(IDebugControl2 *iface, ULONG output_control, + const char *format, ...) +{ + FIXME("%p, %u, %s stub.\n", iface, output_control, debugstr_a(format)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_OutputPromptVaList(IDebugControl2 *iface, ULONG output_control, + const char *format, __ms_va_list args) +{ + FIXME("%p, %u, %s stub.\n", iface, output_control, debugstr_a(format)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetPromptText(IDebugControl2 *iface, char *buffer, ULONG buffer_size, + ULONG *text_size) +{ + FIXME("%p, %p, %u, %p stub.\n", iface, buffer, buffer_size, text_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_OutputCurrentState(IDebugControl2 *iface, ULONG output_control, + ULONG flags) +{ + FIXME("%p, %u, %#x stub.\n", iface, output_control, flags); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_OutputVersionInformation(IDebugControl2 *iface, ULONG output_control) +{ + FIXME("%p, %u stub.\n", iface, output_control); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetNotifyEventHandle(IDebugControl2 *iface, ULONG64 *handle) +{ + FIXME("%p, %p stub.\n", iface, handle); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetNotifyEventHandle(IDebugControl2 *iface, ULONG64 handle) +{ + FIXME("%p, %s stub.\n", iface, wine_dbgstr_longlong(handle)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_Assemble(IDebugControl2 *iface, ULONG64 offset, const char *code, + ULONG64 *end_offset) +{ + FIXME("%p, %s, %s, %p stub.\n", iface, wine_dbgstr_longlong(offset), debugstr_a(code), end_offset); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_Disassemble(IDebugControl2 *iface, ULONG64 offset, ULONG flags, + char *buffer, ULONG buffer_size, ULONG *disassm_size, ULONG64 *end_offset) +{ + FIXME("%p, %s, %#x, %p, %u, %p, %p stub.\n", iface, wine_dbgstr_longlong(offset), flags, buffer, buffer_size, + disassm_size, end_offset); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetDisassembleEffectiveOffset(IDebugControl2 *iface, ULONG64 *offset) +{ + FIXME("%p, %p stub.\n", iface, offset); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_OutputDisassembly(IDebugControl2 *iface, ULONG output_control, + ULONG64 offset, ULONG flags, ULONG64 *end_offset) +{ + FIXME("%p, %u, %s, %#x, %p stub.\n", iface, output_control, wine_dbgstr_longlong(offset), flags, end_offset); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_OutputDisassemblyLines(IDebugControl2 *iface, ULONG output_control, + ULONG prev_lines, ULONG total_lines, ULONG64 offset, ULONG flags, ULONG *offset_line, ULONG64 *start_offset, + ULONG64 *end_offset, ULONG64 *line_offsets) +{ + FIXME("%p, %u, %u, %u, %s, %#x, %p, %p, %p, %p stub.\n", iface, output_control, prev_lines, total_lines, + wine_dbgstr_longlong(offset), flags, offset_line, start_offset, end_offset, line_offsets); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetNearInstruction(IDebugControl2 *iface, ULONG64 offset, LONG delta, + ULONG64 *instr_offset) +{ + FIXME("%p, %s, %d, %p stub.\n", iface, wine_dbgstr_longlong(offset), delta, instr_offset); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetStackTrace(IDebugControl2 *iface, ULONG64 frame_offset, + ULONG64 stack_offset, ULONG64 instr_offset, DEBUG_STACK_FRAME *frames, ULONG frames_size, ULONG *frames_filled) +{ + FIXME("%p, %s, %s, %s, %p, %u, %p stub.\n", iface, wine_dbgstr_longlong(frame_offset), + wine_dbgstr_longlong(stack_offset), wine_dbgstr_longlong(instr_offset), frames, frames_size, frames_filled); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetReturnOffset(IDebugControl2 *iface, ULONG64 *offset) +{ + FIXME("%p, %p stub.\n", iface, offset); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_OutputStackTrace(IDebugControl2 *iface, ULONG output_control, + DEBUG_STACK_FRAME *frames, ULONG frames_size, ULONG flags) +{ + FIXME("%p, %u, %p, %u, %#x stub.\n", iface, output_control, frames, frames_size, flags); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetDebuggeeType(IDebugControl2 *iface, ULONG *_class, ULONG *qualifier) +{ + FIXME("%p, %p, %p stub.\n", iface, _class, qualifier); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetActualProcessorType(IDebugControl2 *iface, ULONG *type) +{ + FIXME("%p, %p stub.\n", iface, type); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetExecutingProcessorType(IDebugControl2 *iface, ULONG *type) +{ + FIXME("%p, %p stub.\n", iface, type); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetNumberPossibleExecutingProcessorTypes(IDebugControl2 *iface, + ULONG *count) +{ + FIXME("%p, %p stub.\n", iface, count); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetPossibleExecutingProcessorTypes(IDebugControl2 *iface, ULONG start, + ULONG count, ULONG *types) +{ + FIXME("%p, %u, %u, %p stub.\n", iface, start, count, types); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetNumberProcessors(IDebugControl2 *iface, ULONG *count) +{ + FIXME("%p, %p stub.\n", iface, count); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetSystemVersion(IDebugControl2 *iface, ULONG *platform_id, ULONG *major, + ULONG *minor, char *sp_string, ULONG sp_string_size, ULONG *sp_string_used, ULONG *sp_number, + char *build_string, ULONG build_string_size, ULONG *build_string_used) +{ + FIXME("%p, %p, %p, %p, %p, %u, %p, %p, %p, %u, %p stub.\n", iface, platform_id, major, minor, sp_string, + sp_string_size, sp_string_used, sp_number, build_string, build_string_size, build_string_used); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetPageSize(IDebugControl2 *iface, ULONG *size) +{ + FIXME("%p, %p stub.\n", iface, size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_IsPointer64Bit(IDebugControl2 *iface) +{ + FIXME("%p stub.\n", iface); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_ReadBugCheckData(IDebugControl2 *iface, ULONG *code, ULONG64 *arg1, + ULONG64 *arg2, ULONG64 *arg3, ULONG64 *arg4) +{ + FIXME("%p, %p, %p, %p, %p, %p stub.\n", iface, code, arg1, arg2, arg3, arg4); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetNumberSupportedProcessorTypes(IDebugControl2 *iface, ULONG *count) +{ + FIXME("%p, %p stub.\n", iface, count); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetSupportedProcessorTypes(IDebugControl2 *iface, ULONG start, + ULONG count, ULONG *types) +{ + FIXME("%p, %u, %u, %p stub.\n", iface, start, count, types); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetProcessorTypeNames(IDebugControl2 *iface, ULONG type, char *full_name, + ULONG full_name_buffer_size, ULONG *full_name_size, char *abbrev_name, ULONG abbrev_name_buffer_size, + ULONG *abbrev_name_size) +{ + FIXME("%p, %u, %p, %u, %p, %p, %u, %p stub.\n", iface, type, full_name, full_name_buffer_size, full_name_size, + abbrev_name, abbrev_name_buffer_size, abbrev_name_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetEffectiveProcessorType(IDebugControl2 *iface, ULONG *type) +{ + FIXME("%p, %p stub.\n", iface, type); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetEffectiveProcessorType(IDebugControl2 *iface, ULONG type) +{ + FIXME("%p, %u stub.\n", iface, type); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetExecutionStatus(IDebugControl2 *iface, ULONG *status) +{ + FIXME("%p, %p stub.\n", iface, status); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetExecutionStatus(IDebugControl2 *iface, ULONG status) +{ + FIXME("%p, %u stub.\n", iface, status); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetCodeLevel(IDebugControl2 *iface, ULONG *level) +{ + FIXME("%p, %p stub.\n", iface, level); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetCodeLevel(IDebugControl2 *iface, ULONG level) +{ + FIXME("%p, %u stub.\n", iface, level); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetEngineOptions(IDebugControl2 *iface, ULONG *options) +{ + FIXME("%p, %p stub.\n", iface, options); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_AddEngineOptions(IDebugControl2 *iface, ULONG options) +{ + FIXME("%p, %#x stub.\n", iface, options); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_RemoveEngineOptions(IDebugControl2 *iface, ULONG options) +{ + FIXME("%p, %#x stub.\n", iface, options); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetEngineOptions(IDebugControl2 *iface, ULONG options) +{ + FIXME("%p, %#x stub.\n", iface, options); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetSystemErrorControl(IDebugControl2 *iface, ULONG *output_level, + ULONG *break_level) +{ + FIXME("%p, %p, %p stub.\n", iface, output_level, break_level); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetSystemErrorControl(IDebugControl2 *iface, ULONG output_level, + ULONG break_level) +{ + FIXME("%p, %u, %u stub.\n", iface, output_level, break_level); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetTextMacro(IDebugControl2 *iface, ULONG slot, char *buffer, + ULONG buffer_size, ULONG *macro_size) +{ + FIXME("%p, %u, %p, %u, %p stub.\n", iface, slot, buffer, buffer_size, macro_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetTextMacro(IDebugControl2 *iface, ULONG slot, const char *macro) +{ + FIXME("%p, %u, %s stub.\n", iface, slot, debugstr_a(macro)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetRadix(IDebugControl2 *iface, ULONG *radix) +{ + FIXME("%p, %p stub.\n", iface, radix); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetRadix(IDebugControl2 *iface, ULONG radix) +{ + FIXME("%p, %u stub.\n", iface, radix); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_Evaluate(IDebugControl2 *iface, const char *expression, + ULONG desired_type, DEBUG_VALUE *value, ULONG *remainder_index) +{ + FIXME("%p, %s, %u, %p, %p stub.\n", iface, debugstr_a(expression), desired_type, value, remainder_index); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_CoerceValue(IDebugControl2 *iface, DEBUG_VALUE input, ULONG output_type, + DEBUG_VALUE *output) +{ + FIXME("%p, %u, %p stub.\n", iface, output_type, output); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_CoerceValues(IDebugControl2 *iface, ULONG count, DEBUG_VALUE *input, + ULONG *output_types, DEBUG_VALUE *output) +{ + FIXME("%p, %u, %p, %p, %p stub.\n", iface, count, input, output_types, output); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_Execute(IDebugControl2 *iface, ULONG output_control, const char *command, + ULONG flags) +{ + FIXME("%p, %u, %s, %#x stub.\n", iface, output_control, debugstr_a(command), flags); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_ExecuteCommandFile(IDebugControl2 *iface, ULONG output_control, + const char *command_file, ULONG flags) +{ + FIXME("%p, %u, %s, %#x stub.\n", iface, output_control, debugstr_a(command_file), flags); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetNumberBreakpoints(IDebugControl2 *iface, ULONG *count) +{ + FIXME("%p, %p stub.\n", iface, count); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetBreakpointByIndex(IDebugControl2 *iface, ULONG index, + IDebugBreakpoint **bp) +{ + FIXME("%p, %u, %p stub.\n", iface, index, bp); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetBreakpointById(IDebugControl2 *iface, ULONG id, IDebugBreakpoint **bp) +{ + FIXME("%p, %u, %p stub.\n", iface, id, bp); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetBreakpointParameters(IDebugControl2 *iface, ULONG count, ULONG *ids, + ULONG start, DEBUG_BREAKPOINT_PARAMETERS *parameters) +{ + FIXME("%p, %u, %p, %u, %p stub.\n", iface, count, ids, start, parameters); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_AddBreakpoint(IDebugControl2 *iface, ULONG type, ULONG desired_id, + IDebugBreakpoint **bp) +{ + FIXME("%p, %u, %u, %p stub.\n", iface, type, desired_id, bp); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_RemoveBreakpoint(IDebugControl2 *iface, IDebugBreakpoint *bp) +{ + FIXME("%p, %p stub.\n", iface, bp); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_AddExtension(IDebugControl2 *iface, const char *path, ULONG flags, + ULONG64 *handle) +{ + FIXME("%p, %s, %#x, %p stub.\n", iface, debugstr_a(path), flags, handle); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_RemoveExtension(IDebugControl2 *iface, ULONG64 handle) +{ + FIXME("%p, %s stub.\n", iface, wine_dbgstr_longlong(handle)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetExtensionByPath(IDebugControl2 *iface, const char *path, + ULONG64 *handle) +{ + FIXME("%p, %s, %p stub.\n", iface, debugstr_a(path), handle); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_CallExtension(IDebugControl2 *iface, ULONG64 handle, + const char *function, const char *args) +{ + FIXME("%p, %s, %s, %s stub.\n", iface, wine_dbgstr_longlong(handle), debugstr_a(function), debugstr_a(args)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetExtensionFunction(IDebugControl2 *iface, ULONG64 handle, + const char *name, void *function) +{ + FIXME("%p, %s, %s, %p stub.\n", iface, wine_dbgstr_longlong(handle), debugstr_a(name), function); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetWindbgExtensionApis32(IDebugControl2 *iface, + PWINDBG_EXTENSION_APIS32 api) +{ + FIXME("%p, %p stub.\n", iface, api); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetWindbgExtensionApis64(IDebugControl2 *iface, + PWINDBG_EXTENSION_APIS64 api) +{ + FIXME("%p, %p stub.\n", iface, api); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetNumberEventFilters(IDebugControl2 *iface, ULONG *specific_events, + ULONG *specific_exceptions, ULONG *arbitrary_exceptions) +{ + FIXME("%p, %p, %p, %p stub.\n", iface, specific_events, specific_exceptions, arbitrary_exceptions); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetEventFilterText(IDebugControl2 *iface, ULONG index, char *buffer, + ULONG buffer_size, ULONG *text_size) +{ + FIXME("%p, %u, %p, %u, %p stub.\n", iface, index, buffer, buffer_size, text_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetEventFilterCommand(IDebugControl2 *iface, ULONG index, char *buffer, + ULONG buffer_size, ULONG *command_size) +{ + FIXME("%p, %u, %p, %u, %p stub.\n", iface, index, buffer, buffer_size, command_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetEventFilterCommand(IDebugControl2 *iface, ULONG index, + const char *command) +{ + FIXME("%p, %u, %s stub.\n", iface, index, debugstr_a(command)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetSpecificFilterParameters(IDebugControl2 *iface, ULONG start, + ULONG count, DEBUG_SPECIFIC_FILTER_PARAMETERS *parameters) +{ + FIXME("%p, %u, %u, %p stub.\n", iface, start, count, parameters); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetSpecificFilterParameters(IDebugControl2 *iface, ULONG start, + ULONG count, DEBUG_SPECIFIC_FILTER_PARAMETERS *parameters) +{ + FIXME("%p, %u, %u, %p stub.\n", iface, start, count, parameters); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetSpecificFilterArgument(IDebugControl2 *iface, ULONG index, + char *buffer, ULONG buffer_size, ULONG *argument_size) +{ + FIXME("%p, %u, %p, %u, %p stub.\n", iface, index, buffer, buffer_size, argument_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetSpecificFilterArgument(IDebugControl2 *iface, ULONG index, + const char *argument) +{ + FIXME("%p, %u, %s stub.\n", iface, index, debugstr_a(argument)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetExceptionFilterParameters(IDebugControl2 *iface, ULONG count, + ULONG *codes, ULONG start, DEBUG_EXCEPTION_FILTER_PARAMETERS *parameters) +{ + FIXME("%p, %u, %p, %u, %p stub.\n", iface, count, codes, start, parameters); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetExceptionFilterParameters(IDebugControl2 *iface, ULONG count, + DEBUG_EXCEPTION_FILTER_PARAMETERS *parameters) +{ + FIXME("%p, %u, %p stub.\n", iface, count, parameters); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetExceptionFilterSecondCommand(IDebugControl2 *iface, ULONG index, + char *buffer, ULONG buffer_size, ULONG *command_size) +{ + FIXME("%p, %u, %p, %u, %p stub.\n", iface, index, buffer, buffer_size, command_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetExceptionFilterSecondCommand(IDebugControl2 *iface, ULONG index, + const char *command) +{ + FIXME("%p, %u, %s stub.\n", iface, index, debugstr_a(command)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_WaitForEvent(IDebugControl2 *iface, ULONG flags, ULONG timeout) +{ + FIXME("%p, %#x, %u stub.\n", iface, flags, timeout); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetLastEventInformation(IDebugControl2 *iface, ULONG *type, ULONG *pid, + ULONG *tid, void *extra_info, ULONG extra_info_size, ULONG *extra_info_used, char *description, + ULONG desc_size, ULONG *desc_used) +{ + FIXME("%p, %p, %p, %p, %p, %u, %p, %p, %u, %p stub.\n", iface, type, pid, tid, extra_info, extra_info_size, + extra_info_used, description, desc_size, desc_used); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetCurrentTimeDate(IDebugControl2 *iface, ULONG timedate) +{ + FIXME("%p, %u stub.\n", iface, timedate); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetCurrentSystemUpTime(IDebugControl2 *iface, ULONG uptime) +{ + FIXME("%p, %u stub.\n", iface, uptime); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetDumpFormatFlags(IDebugControl2 *iface, ULONG *flags) +{ + FIXME("%p, %p stub.\n", iface, flags); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetNumberTextPlacements(IDebugControl2 *iface, ULONG *count) +{ + FIXME("%p, %p stub.\n", iface, count); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_GetNumberTextReplacement(IDebugControl2 *iface, const char *src_text, + ULONG index, char *src_buffer, ULONG src_buffer_size, ULONG *src_size, char *dst_buffer, + ULONG dst_buffer_size, ULONG *dst_size) +{ + FIXME("%p, %s, %u, %p, %u, %p, %p, %u, %p stub.\n", iface, debugstr_a(src_text), index, src_buffer, + src_buffer_size, src_size, dst_buffer, dst_buffer_size, dst_size); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_SetTextReplacement(IDebugControl2 *iface, const char *src_text, + const char *dst_text) +{ + FIXME("%p, %s, %s stub.\n", iface, debugstr_a(src_text), debugstr_a(dst_text)); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_RemoveTextReplacements(IDebugControl2 *iface) +{ + FIXME("%p stub.\n", iface); + + return E_NOTIMPL; +} + +static HRESULT STDMETHODCALLTYPE debugcontrol_OutputTextReplacements(IDebugControl2 *iface, ULONG output_control, + ULONG flags) +{ + FIXME("%p, %u, %#x stub.\n", iface, output_control, flags); + + return E_NOTIMPL; +} + +static const IDebugControl2Vtbl debugcontrolvtbl = +{ + debugcontrol_QueryInterface, + debugcontrol_AddRef, + debugcontrol_Release, + debugcontrol_GetInterrupt, + debugcontrol_SetInterrupt, + debugcontrol_GetInterruptTimeout, + debugcontrol_SetInterruptTimeout, + debugcontrol_GetLogFile, + debugcontrol_OpenLogFile, + debugcontrol_CloseLogFile, + debugcontrol_GetLogMask, + debugcontrol_SetLogMask, + debugcontrol_Input, + debugcontrol_ReturnInput, + debugcontrol_Output, + debugcontrol_OutputVaList, + debugcontrol_ControlledOutput, + debugcontrol_ControlledOutputVaList, + debugcontrol_OutputPrompt, + debugcontrol_OutputPromptVaList, + debugcontrol_GetPromptText, + debugcontrol_OutputCurrentState, + debugcontrol_OutputVersionInformation, + debugcontrol_GetNotifyEventHandle, + debugcontrol_SetNotifyEventHandle, + debugcontrol_Assemble, + debugcontrol_Disassemble, + debugcontrol_GetDisassembleEffectiveOffset, + debugcontrol_OutputDisassembly, + debugcontrol_OutputDisassemblyLines, + debugcontrol_GetNearInstruction, + debugcontrol_GetStackTrace, + debugcontrol_GetReturnOffset, + debugcontrol_OutputStackTrace, + debugcontrol_GetDebuggeeType, + debugcontrol_GetActualProcessorType, + debugcontrol_GetExecutingProcessorType, + debugcontrol_GetNumberPossibleExecutingProcessorTypes, + debugcontrol_GetPossibleExecutingProcessorTypes, + debugcontrol_GetNumberProcessors, + debugcontrol_GetSystemVersion, + debugcontrol_GetPageSize, + debugcontrol_IsPointer64Bit, + debugcontrol_ReadBugCheckData, + debugcontrol_GetNumberSupportedProcessorTypes, + debugcontrol_GetSupportedProcessorTypes, + debugcontrol_GetProcessorTypeNames, + debugcontrol_GetEffectiveProcessorType, + debugcontrol_SetEffectiveProcessorType, + debugcontrol_GetExecutionStatus, + debugcontrol_SetExecutionStatus, + debugcontrol_GetCodeLevel, + debugcontrol_SetCodeLevel, + debugcontrol_GetEngineOptions, + debugcontrol_AddEngineOptions, + debugcontrol_RemoveEngineOptions, + debugcontrol_SetEngineOptions, + debugcontrol_GetSystemErrorControl, + debugcontrol_SetSystemErrorControl, + debugcontrol_GetTextMacro, + debugcontrol_SetTextMacro, + debugcontrol_GetRadix, + debugcontrol_SetRadix, + debugcontrol_Evaluate, + debugcontrol_CoerceValue, + debugcontrol_CoerceValues, + debugcontrol_Execute, + debugcontrol_ExecuteCommandFile, + debugcontrol_GetNumberBreakpoints, + debugcontrol_GetBreakpointByIndex, + debugcontrol_GetBreakpointById, + debugcontrol_GetBreakpointParameters, + debugcontrol_AddBreakpoint, + debugcontrol_RemoveBreakpoint, + debugcontrol_AddExtension, + debugcontrol_RemoveExtension, + debugcontrol_GetExtensionByPath, + debugcontrol_CallExtension, + debugcontrol_GetExtensionFunction, + debugcontrol_GetWindbgExtensionApis32, + debugcontrol_GetWindbgExtensionApis64, + debugcontrol_GetNumberEventFilters, + debugcontrol_GetEventFilterText, + debugcontrol_GetEventFilterCommand, + debugcontrol_SetEventFilterCommand, + debugcontrol_GetSpecificFilterParameters, + debugcontrol_SetSpecificFilterParameters, + debugcontrol_GetSpecificFilterArgument, + debugcontrol_SetSpecificFilterArgument, + debugcontrol_GetExceptionFilterParameters, + debugcontrol_SetExceptionFilterParameters, + debugcontrol_GetExceptionFilterSecondCommand, + debugcontrol_SetExceptionFilterSecondCommand, + debugcontrol_WaitForEvent, + debugcontrol_GetLastEventInformation, + debugcontrol_GetCurrentTimeDate, + debugcontrol_GetCurrentSystemUpTime, + debugcontrol_GetDumpFormatFlags, + debugcontrol_GetNumberTextPlacements, + debugcontrol_GetNumberTextReplacement, + debugcontrol_SetTextReplacement, + debugcontrol_RemoveTextReplacements, + debugcontrol_OutputTextReplacements, +}; + /************************************************************ * DebugExtensionInitialize (DBGENG.@) * @@ -1203,6 +2107,7 @@ HRESULT WINAPI DebugCreate(REFIID riid, void **obj) debug_client->IDebugClient_iface.lpVtbl = &debugclientvtbl; debug_client->IDebugDataSpaces_iface.lpVtbl = &debugdataspacesvtbl; debug_client->IDebugSymbols_iface.lpVtbl = &debugsymbolsvtbl; + debug_client->IDebugControl2_iface.lpVtbl = &debugcontrolvtbl; debug_client->refcount = 1;
unk = (IUnknown *)&debug_client->IDebugClient_iface;