]> granicus.if.org Git - fortune-mod/commitdiff
appveyor crash debug 6 - gdb+remove code
authorShlomi Fish <shlomif@shlomifish.org>
Mon, 24 Feb 2020 12:33:19 +0000 (14:33 +0200)
committerShlomi Fish <shlomif@shlomifish.org>
Mon, 24 Feb 2020 12:33:19 +0000 (14:33 +0200)
CI-testing/continuous-integration-testing.pl
fortune-mod/fortune/fortune.c

index 079ba18bfc9533a6fd1c1a9e252cfc1fec9a098b..331b50da3b09539332f851594e6ea42d2df40f3d 100644 (file)
@@ -116,10 +116,12 @@ do_system(
 );
 if ($IS_WIN)
 {
+    my $gdb_cmds_fn = "cmds.gdb";
+    path($gdb_cmds_fn)->spew_utf8("r\nbt\nq\n");
     do_system(
         {
             cmd => [
-"$WIN32__DOUBLE_AMPERSAND__PROPER_HANDLING__NEEDED_PREFIX c:/foo/games/fortune.exe"
+"$WIN32__DOUBLE_AMPERSAND__PROPER_HANDLING__NEEDED_PREFIX gdb --command=$gdb_cmds_fn c:/foo/games/fortune.exe"
             ]
         }
     );
index 5f991faa08bbcbb95833d96916585fb769db2a71..cf3b5ecf03830118c5b1f22cec06bc71a5877303 100644 (file)
@@ -1777,6 +1777,7 @@ int main(int ac, char *av[])
     request = recode_new_request (outer);
 #endif
 
+#ifndef REMOVE_CODE
     setlocale(LC_ALL,"");
 #ifdef _WIN32
     ctype = "C";
@@ -1791,6 +1792,7 @@ int main(int ac, char *av[])
         ctype="ISO-8859-1";
     }
 #endif
+#endif
 
 #ifdef WITH_RECODE
     crequest = malloc(strlen(ctype) + 7 + 1);