This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix compilation error in readline/util.c in environments with missing strcasecmp


Hi,

when building GDB 7.6.1 in MinGW (Windows 7) for the arm-none-eabi target, I got compilation error in readline/util.c:392 --- missing semicolon after do { ... } while (...) loop. The attached patch fixes this trivial error.


2013-09-21  Martin Benda  <martin.benda@omsquare.com>

	* readline/util.c: Add missing semicolon to fix compilation error
	in environments with missing strcasecmp (e.g. MinGW).


diff -Naur gdb-7.6.1/readline/util.c dist-patched/gdb-7.6.1/readline/util.c
--- gdb-7.6.1/readline/util.c	2013-09-21 09:28:03.000000000 +0200
+++ gdb-7.6.1-patched/readline/util.c	2013-09-21 09:41:12.000000000 +0200
@@ -389,7 +389,7 @@
       break;
     s2++;
   }
-  while (--count != 0)
+  while (--count != 0);

 return (0);
}


Martin Benda

Attachment: gdb-7.6.1.patch
Description: Binary data

Attachment: changelog.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]