Nikolay Sivov : dbgeng: Add IDebugAdvanced stub.
Alexandre Julliard
julliard at winehq.org
Wed Apr 24 16:33:29 CDT 2019
Module: wine
Branch: master
Commit: a36e03494e63ffe41cb6ffa8c103fe8b4b1f9706
URL: https://source.winehq.org/git/wine.git/?a=commit;h=a36e03494e63ffe41cb6ffa8c103fe8b4b1f9706
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Wed Apr 24 08:35:34 2019 +0300
dbgeng: Add IDebugAdvanced stub.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dbgeng/dbgeng.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 58 insertions(+)
diff --git a/dlls/dbgeng/dbgeng.c b/dlls/dbgeng/dbgeng.c
index 95a95b6..b62e4ad 100644
--- a/dlls/dbgeng/dbgeng.c
+++ b/dlls/dbgeng/dbgeng.c
@@ -67,6 +67,7 @@ struct debug_client
IDebugDataSpaces IDebugDataSpaces_iface;
IDebugSymbols3 IDebugSymbols3_iface;
IDebugControl2 IDebugControl2_iface;
+ IDebugAdvanced IDebugAdvanced_iface;
LONG refcount;
ULONG engine_options;
struct list targets;
@@ -259,6 +260,11 @@ static struct debug_client *impl_from_IDebugControl2(IDebugControl2 *iface)
return CONTAINING_RECORD(iface, struct debug_client, IDebugControl2_iface);
}
+static struct debug_client *impl_from_IDebugAdvanced(IDebugAdvanced *iface)
+{
+ return CONTAINING_RECORD(iface, struct debug_client, IDebugAdvanced_iface);
+}
+
static HRESULT STDMETHODCALLTYPE debugclient_QueryInterface(IDebugClient *iface, REFIID riid, void **obj)
{
struct debug_client *debug_client = impl_from_IDebugClient(iface);
@@ -285,6 +291,10 @@ static HRESULT STDMETHODCALLTYPE debugclient_QueryInterface(IDebugClient *iface,
{
*obj = &debug_client->IDebugControl2_iface;
}
+ else if (IsEqualIID(riid, &IID_IDebugAdvanced))
+ {
+ *obj = &debug_client->IDebugAdvanced_iface;
+ }
else
{
WARN("Unsupported interface %s.\n", debugstr_guid(riid));
@@ -3289,6 +3299,53 @@ static const IDebugControl2Vtbl debugcontrolvtbl =
debugcontrol_OutputTextReplacements,
};
+static HRESULT STDMETHODCALLTYPE debugadvanced_QueryInterface(IDebugAdvanced *iface, REFIID riid, void **obj)
+{
+ struct debug_client *debug_client = impl_from_IDebugAdvanced(iface);
+ IUnknown *unk = (IUnknown *)&debug_client->IDebugClient_iface;
+ return IUnknown_QueryInterface(unk, riid, obj);
+}
+
+static ULONG STDMETHODCALLTYPE debugadvanced_AddRef(IDebugAdvanced *iface)
+{
+ struct debug_client *debug_client = impl_from_IDebugAdvanced(iface);
+ IUnknown *unk = (IUnknown *)&debug_client->IDebugClient_iface;
+ return IUnknown_AddRef(unk);
+}
+
+static ULONG STDMETHODCALLTYPE debugadvanced_Release(IDebugAdvanced *iface)
+{
+ struct debug_client *debug_client = impl_from_IDebugAdvanced(iface);
+ IUnknown *unk = (IUnknown *)&debug_client->IDebugClient_iface;
+ return IUnknown_Release(unk);
+}
+
+static HRESULT STDMETHODCALLTYPE debugadvanced_GetThreadContext(IDebugAdvanced *iface, void *context,
+ ULONG context_size)
+{
+ FIXME("%p, %p, %u stub.\n", iface, context, context_size);
+
+ return E_NOTIMPL;
+}
+
+static HRESULT STDMETHODCALLTYPE debugadvanced_SetThreadContext(IDebugAdvanced *iface, void *context,
+ ULONG context_size)
+{
+ FIXME("%p, %p, %u stub.\n", iface, context, context_size);
+
+ return E_NOTIMPL;
+}
+
+static const IDebugAdvancedVtbl debugadvancedvtbl =
+{
+ debugadvanced_QueryInterface,
+ debugadvanced_AddRef,
+ debugadvanced_Release,
+ /* IDebugAdvanced */
+ debugadvanced_GetThreadContext,
+ debugadvanced_SetThreadContext,
+};
+
/************************************************************
* DebugExtensionInitialize (DBGENG.@)
*
@@ -3333,6 +3390,7 @@ HRESULT WINAPI DebugCreate(REFIID riid, void **obj)
debug_client->IDebugDataSpaces_iface.lpVtbl = &debugdataspacesvtbl;
debug_client->IDebugSymbols3_iface.lpVtbl = &debugsymbolsvtbl;
debug_client->IDebugControl2_iface.lpVtbl = &debugcontrolvtbl;
+ debug_client->IDebugAdvanced_iface.lpVtbl = &debugadvancedvtbl;
debug_client->refcount = 1;
list_init(&debug_client->targets);
More information about the wine-cvs
mailing list