Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit f5ec46e

Browse files
committed
fix issue 18536 - Bad stack traces when building with -m32mscoff
dmdDecodeString is harmful for non-mangled names, disable it for anything but OMF
1 parent d784c1c commit f5ec46e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/sys/windows/stacktrace.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,9 @@ private:
293293

294294
auto res = formatStackFrame(pc);
295295
res ~= " in ";
296-
const(char)[] tempSymName = symName[0 .. strlen(symName)];
296+
const(char)[] tempSymName = symName[0 .. strlen(symName)];
297297
//Deal with dmd mangling of long names
298-
version(DigitalMars) version(Win32)
298+
version(CRuntime_DigitalMars)
299299
{
300300
size_t decodeIndex = 0;
301301
tempSymName = decodeDmdString(tempSymName, decodeIndex);

0 commit comments

Comments
 (0)