https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f9bc55610e2ba23a5bd1b…
commit f9bc55610e2ba23a5bd1b3d3e84c61cf335aab5a
Author: winesync <ros-dev(a)reactos.org>
AuthorDate: Fri Sep 11 16:03:20 2020 +0200
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Sep 16 10:35:41 2020 +0200
[WINESYNC] dbghelp: Support S_HEAPALLOCSITE entry.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair(a)hotmail.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
wine commit id 48a74277f5f9e0c87d8c01457236a89d94cb71d3 by Alistair Leslie-Hughes
<leslie_alistair(a)hotmail.com>
---
dll/win32/dbghelp/msc.c | 5 +++++
sdk/include/reactos/wine/mscvpdb.h | 10 ++++++++++
sdk/tools/winesync/dbghelp.cfg | 2 +-
3 files changed, 16 insertions(+), 1 deletion(-)
diff --git a/dll/win32/dbghelp/msc.c b/dll/win32/dbghelp/msc.c
index 54fbe36596c..4be0cb244da 100644
--- a/dll/win32/dbghelp/msc.c
+++ b/dll/win32/dbghelp/msc.c
@@ -2011,6 +2011,11 @@ static BOOL codeview_snarf(const struct msc_debug_info* msc_dbg,
const BYTE* roo
case S_ALIGN_V1:
TRACE("S-Align V1\n");
break;
+ case S_HEAPALLOCSITE:
+ TRACE("heap site: offset=0x%08x at sect_idx 0x%04x, inst_len 0x%08x,
index 0x%08x\n",
+ sym->heap_alloc_site.offset, sym->heap_alloc_site.sect_idx,
+ sym->heap_alloc_site.inst_len, sym->heap_alloc_site.index);
+ break;
/* the symbols we can safely ignore for now */
case S_TRAMPOLINE:
diff --git a/sdk/include/reactos/wine/mscvpdb.h b/sdk/include/reactos/wine/mscvpdb.h
index af521ffe56f..29d67bec4a3 100644
--- a/sdk/include/reactos/wine/mscvpdb.h
+++ b/sdk/include/reactos/wine/mscvpdb.h
@@ -1646,6 +1646,16 @@ union codeview_symbol
unsigned short eh_sect; /* section for exception handler */
unsigned int flags;
} frame_info_v2;
+
+ struct
+ {
+ unsigned short len;
+ unsigned short id;
+ unsigned int offset;
+ unsigned short sect_idx;
+ unsigned short inst_len;
+ unsigned int index;
+ } heap_alloc_site;
};
#define S_COMPILAND_V1 0x0001
diff --git a/sdk/tools/winesync/dbghelp.cfg b/sdk/tools/winesync/dbghelp.cfg
index 7fe31aca91f..fb8b2e28649 100644
--- a/sdk/tools/winesync/dbghelp.cfg
+++ b/sdk/tools/winesync/dbghelp.cfg
@@ -4,4 +4,4 @@ files:
include/dbghelp.h: sdk/include/psdk/dbghelp.h
include/wine/mscvpdb.h: sdk/include/reactos/wine/mscvpdb.h
tags:
- wine: 594a5878d0ac3b5a3aa31c27b0651b7f4bd175e1
+ wine: 48a74277f5f9e0c87d8c01457236a89d94cb71d3