mingw --enable-tui

gmail Vladimir Koković via Gdb-patches
2020-11-22T11:45:04Z

[-- Attachment #1: Type: text/plain, Size: 185 bytes --]

Hi,

I managed to make mingw cross build 32 and 64, but I had to change
gdb/tui//tui-win.c because of mingw64.

Vladimir Koković, DP senior(70),

Serbia, Belgrade, 22.November 2020

[-- Attachment #2: tui-win-c.patch --]
[-- Type: text/x-patch, Size: 948 bytes --]

# This patch file was generated by NetBeans IDE
# It uses platform neutral UTF-8 encoding and \n newlines.
--- a/tui-win.c
+++ b/tui-win.c
@@ -118,6 +118,17 @@
The list of values must be terminated by a NULL.
After the NULL value, an entry defines the default. */
static struct tui_translate tui_border_mode_translate[] = {
+#ifdef __MINGW64__
+ { "normal", (int)A_NORMAL },
+ { "standout", (int)A_STANDOUT },
+ { "reverse", (int)A_REVERSE },
+ { "half", (int)A_DIM },
+ { "half-standout", (int)A_DIM | (int)A_STANDOUT },
+ { "bold", (int)A_BOLD },
+ { "bold-standout", (int)A_BOLD | (int)A_STANDOUT },
+ { 0, 0 },
+ { "normal", (int)A_NORMAL }
+#else
{ "normal", A_NORMAL },
{ "standout", A_STANDOUT },
{ "reverse", A_REVERSE },
@@ -127,6 +138,7 @@
{ "bold-standout", A_BOLD | A_STANDOUT },
{ 0, 0 },
{ "normal", A_NORMAL }
+#endif
};

/* Translation tables for border-kind, one for each border