From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Subject: Re: Patches to build on DJGPP
Date: Sun, 10 Aug 2008 18:44:00 -0000 [thread overview]
Message-ID: <200808101943.55328.pedro@codesourcery.com> (raw)
In-Reply-To: <200808101826.m7AIQq3a031494@brahms.sibelius.xs4all.nl>
[-- Attachment #1: Type: text/plain, Size: 57 bytes --]
I've checked in the gdb bits, as below.
--
Pedro Alves
[-- Attachment #2: go32_fixes_gdb.diff --]
[-- Type: text/x-diff, Size: 2339 bytes --]
2008-08-09 Pedro Alves <pedro@codesourcery.com>
* 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 <unistd.h>
#include <string.h>
+#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 <sys/select.h>
+#else
+#include <sys/time.h>
#endif
#ifdef USE_WIN32API
prev parent reply other threads:[~2008-08-10 18:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-09 21:42 Pedro Alves
2008-08-10 0:10 ` Daniel Jacobowitz
2008-08-10 3:19 ` Eli Zaretskii
2008-08-10 20:47 ` Pedro Alves
2008-08-10 3:20 ` Eli Zaretskii
2008-08-10 8:33 ` Mark Kettenis
2008-08-10 19:38 ` Eli Zaretskii
2008-08-10 15:39 ` Mark Kettenis
2008-08-10 16:06 ` Daniel Jacobowitz
2008-08-10 17:41 ` Pedro Alves
2008-08-10 17:49 ` Pedro Alves
2008-08-10 18:29 ` Mark Kettenis
2008-08-10 18:44 ` Pedro Alves [this message]
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=200808101943.55328.pedro@codesourcery.com \
--to=pedro@codesourcery.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