From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5529 invoked by alias); 10 Aug 2008 18:44:29 -0000 Received: (qmail 5514 invoked by uid 22791); 10 Aug 2008 18:44:28 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 10 Aug 2008 18:43:54 +0000 Received: (qmail 18058 invoked from network); 10 Aug 2008 18:43:52 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 10 Aug 2008 18:43:52 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: Patches to build on DJGPP Date: Sun, 10 Aug 2008 18:44:00 -0000 User-Agent: KMail/1.9.9 References: <200808092241.46195.pedro@codesourcery.com> <200808101848.48133.pedro@codesourcery.com> <200808101826.m7AIQq3a031494@brahms.sibelius.xs4all.nl> In-Reply-To: <200808101826.m7AIQq3a031494@brahms.sibelius.xs4all.nl> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_rbznIKdTz/7R27T" Message-Id: <200808101943.55328.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-08/txt/msg00282.txt.bz2 --Boundary-00=_rbznIKdTz/7R27T Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 57 I've checked in the gdb bits, as below. -- Pedro Alves --Boundary-00=_rbznIKdTz/7R27T Content-Type: text/x-diff; charset="utf-8"; name="go32_fixes_gdb.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="go32_fixes_gdb.diff" Content-length: 2339 2008-08-09 Pedro Alves * buildsym.c (start_subfile): Properly cast sentinel in concat call. * cp-name-parser.y: Include "config.h". * xml-tdesc.c (fetch_xml_from_file): Properly cast sentinel in concat call. * gdb_select.h: Include sys/time.h if sys/select.h is not available. --- gdb/buildsym.c | 2 +- gdb/cp-name-parser.y | 1 + gdb/gdb_select.h | 2 ++ gdb/xml-tdesc.c | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-) Index: src/gdb/buildsym.c =================================================================== --- src.orig/gdb/buildsym.c 2008-08-10 19:36:43.000000000 +0100 +++ src/gdb/buildsym.c 2008-08-10 19:37:09.000000000 +0100 @@ -547,7 +547,7 @@ start_subfile (char *name, char *dirname && !IS_ABSOLUTE_PATH (subfile->name) && subfile->dirname != NULL) subfile_name = concat (subfile->dirname, SLASH_STRING, - subfile->name, NULL); + subfile->name, (char *) NULL); else subfile_name = subfile->name; Index: src/gdb/cp-name-parser.y =================================================================== --- src.orig/gdb/cp-name-parser.y 2008-08-10 19:36:43.000000000 +0100 +++ src/gdb/cp-name-parser.y 2008-08-10 19:37:09.000000000 +0100 @@ -36,6 +36,7 @@ Boston, MA 02110-1301, USA. */ #include #include +#include "config.h" #include "safe-ctype.h" #include "libiberty.h" #include "demangle.h" Index: src/gdb/xml-tdesc.c =================================================================== --- src.orig/gdb/xml-tdesc.c 2008-08-10 19:36:43.000000000 +0100 +++ src/gdb/xml-tdesc.c 2008-08-10 19:37:10.000000000 +0100 @@ -443,7 +443,7 @@ fetch_xml_from_file (const char *filenam if (dirname && *dirname) { - char *fullname = concat (dirname, "/", filename, NULL); + char *fullname = concat (dirname, "/", filename, (char *) NULL); if (fullname == NULL) nomem (0); file = fopen (fullname, FOPEN_RT); Index: src/gdb/gdb_select.h =================================================================== --- src.orig/gdb/gdb_select.h 2008-08-10 19:36:43.000000000 +0100 +++ src/gdb/gdb_select.h 2008-08-10 19:37:10.000000000 +0100 @@ -22,6 +22,8 @@ #ifdef HAVE_SYS_SELECT_H #include +#else +#include #endif #ifdef USE_WIN32API --Boundary-00=_rbznIKdTz/7R27T--