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]

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


Hi Chet,

Martin just sent us this patch, which indedd looks trivial, but we
thought we'd run it by you first so you could apply it in the official
repository first if you agree. On our end, we'll apply the fix you
decide to apply.

Thank you both!

> 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

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

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


-- 
Joel


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