From 47f1c5a993ed34e5f1e4783360019613d0f9682a Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Sun, 29 Mar 2020 21:02:03 +0200 Subject: [PATCH] dbghelp: Clear N_PEXT flag of stab type in macho files. Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/dbghelp/stabs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/dbghelp/stabs.c b/dlls/dbghelp/stabs.c index 744ccfa9df6..fedb1084ab8 100644 --- a/dlls/dbghelp/stabs.c +++ b/dlls/dbghelp/stabs.c @@ -1349,7 +1349,10 @@ BOOL stabs_parse(struct module* module, ULONG_PTR load_offset, if (stab_ptr->n_type & N_STAB) type = stab_ptr->n_type; else + { type = (stab_ptr->n_type & N_TYPE); + if (module->type == DMT_MACHO) type &= ~N_PEXT; + } /* only symbol entries contain a typedef */ switch (type)