aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-08-10 18:41:33 +0000
committerPedro Alves <palves@redhat.com>2008-08-10 18:41:33 +0000
commit6eb7ee032e6d1ab881dae7e5ef42d101d94f1cbd (patch)
tree55f10f37832e0a87b21b37f65dda187008b0a781
parent91f4687cf05df5b7e2c74e326764081a52afdfc0 (diff)
downloadgdb-6eb7ee032e6d1ab881dae7e5ef42d101d94f1cbd.zip
gdb-6eb7ee032e6d1ab881dae7e5ef42d101d94f1cbd.tar.gz
gdb-6eb7ee032e6d1ab881dae7e5ef42d101d94f1cbd.tar.bz2
* 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.
-rw-r--r--gdb/ChangeLog10
-rw-r--r--gdb/buildsym.c2
-rw-r--r--gdb/cp-name-parser.y1
-rw-r--r--gdb/gdb_select.h2
-rw-r--r--gdb/xml-tdesc.c2
5 files changed, 15 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ffcbe3c..60dac52 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,15 @@
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.
+
+2008-08-09 Pedro Alves <pedro@codesourcery.com>
+
* go32-nat.c: Include "gdbthread.h".
(go32_stop, go32_kill_inferior): Delete the main thread.
(go32_create_inferior): Add it.
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index f3850a2..e8bf973 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -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;
diff --git a/gdb/cp-name-parser.y b/gdb/cp-name-parser.y
index 18c959e..1cfbcfb 100644
--- a/gdb/cp-name-parser.y
+++ b/gdb/cp-name-parser.y
@@ -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"
diff --git a/gdb/gdb_select.h b/gdb/gdb_select.h
index 5bcdcf3..407ec9a 100644
--- a/gdb/gdb_select.h
+++ b/gdb/gdb_select.h
@@ -22,6 +22,8 @@
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
+#else
+#include <sys/time.h>
#endif
#ifdef USE_WIN32API
diff --git a/gdb/xml-tdesc.c b/gdb/xml-tdesc.c
index e1aefd1..d66c0e3 100644
--- a/gdb/xml-tdesc.c
+++ b/gdb/xml-tdesc.c
@@ -443,7 +443,7 @@ fetch_xml_from_file (const char *filename, void *baton)
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);