Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Martin Benda <martin.benda@omsquare.com>
To: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: [PATCH] Fix compilation error in readline/util.c in environments with missing strcasecmp
Date: Sat, 21 Sep 2013 09:05:00 -0000	[thread overview]
Message-ID: <04BF4C19-304E-4CEB-964B-06CEF63E3DCC@omsquare.com> (raw)

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

             reply	other threads:[~2013-09-21  9:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-21  9:05 Martin Benda [this message]
2013-09-21 13:48 ` Joel Brobecker
2013-09-22 16:59   ` [Bug-readline] " Chet Ramey
2013-09-23 16:06     ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=04BF4C19-304E-4CEB-964B-06CEF63E3DCC@omsquare.com \
    --to=martin.benda@omsquare.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox