forked from mxe/mxe
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgcc-2-stabs.patch
More file actions
26 lines (22 loc) · 875 Bytes
/
gcc-2-stabs.patch
File metadata and controls
26 lines (22 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 9310d8332533fed2ccc898b54dad7448d0f05c34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20Gl=C3=B6ckner?= <daniel-gl@gmx.net>
Date: Mon, 29 May 2023 15:04:54 +0200
Subject: [PATCH] Prefer stabs debugging info on 32 bit Windows
That's what the Free Pascal backtrace code expects by default.
---
gcc/config/i386/cygming.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/i386/cygming.h b/gcc/config/i386/cygming.h
index cfbca34f9..6e655fbbb 100644
--- a/gcc/config/i386/cygming.h
+++ b/gcc/config/i386/cygming.h
@@ -25,7 +25,7 @@ along with GCC; see the file COPYING3. If not see
#undef PREFERRED_DEBUGGING_TYPE
#if (DWARF2_DEBUGGING_INFO)
-#define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
+#define PREFERRED_DEBUGGING_TYPE (TARGET_64BIT ? DWARF2_DEBUG : DBX_DEBUG)
#else
#define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
#endif
--
2.20.1