This is the mail archive of the gdb-prs@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]

[Bug gdb/15960] Error during build gdb with MinGW on Windows -> util.c


https://sourceware.org/bugzilla/show_bug.cgi?id=15960

--- Comment #3 from Yao Qi <qiyao at gcc dot gnu.org> ---
(In reply to hager-markus from comment #2)
> gcc version: 4.8.1
> 
> error message:
> util.c: In function '_rl_strnicmp':
> util.c:394:3: error: expected ';' before 'return'
>     return (0);
>     ^
> 
> I guess this occurs only during the build on windows because otherwise I
> couldn't imagine why this error wasn't discovered earlier. By the way, if
> you look into the util.c I think this error is quite obvious, or is there
> any case where the ; could be missed?
> 

I am using i686-pc-mingw32-gcc to cross compile GDB for windows.  I didn't see
the error before.  This piece of code is surrounded by #if !defined
(HAVE_STRCASECMP) and #endif, HAVE_STRCASECMP is defined in my config.h.  This
piece of code is not compiled for me, and probably that is the reason why I
didn't see this error before.

GDB is using readline from
(http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html).  Please report this
error to bug-readline@gnu.org, get it fixed, and then backport the fix to GDB.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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