Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Fix compilation error in readline/util.c in environments with missing strcasecmp
@ 2013-09-21  9:05 Martin Benda
  2013-09-21 13:48 ` Joel Brobecker
  0 siblings, 1 reply; 4+ messages in thread
From: Martin Benda @ 2013-09-21  9:05 UTC (permalink / raw)
  To: gdb-patches

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

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 #2: gdb-7.6.1.patch --]
[-- Type: application/octet-stream, Size: 341 bytes --]

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);
 }

[-- Attachment #3: changelog.txt --]
[-- Type: text/plain, Size: 177 bytes --]

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).

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-09-23 16:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-21  9:05 [PATCH] Fix compilation error in readline/util.c in environments with missing strcasecmp Martin Benda
2013-09-21 13:48 ` Joel Brobecker
2013-09-22 16:59   ` [Bug-readline] " Chet Ramey
2013-09-23 16:06     ` Joel Brobecker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox