From: Pedro Alves Date: Sun, 10 Aug 2008 18:41:33 +0000 (+0000) Subject: * buildsym.c (start_subfile): Properly cast sentinel in concat X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6eb7ee032e6d1ab881dae7e5ef42d101d94f1cbd;p=binutils-gdb.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ffcbe3cf24f..60dac5219e8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +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. + 2008-08-09 Pedro Alves * go32-nat.c: Include "gdbthread.h". diff --git a/gdb/buildsym.c b/gdb/buildsym.c index f3850a2fa42..e8bf973f810 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 18c959e13b1..1cfbcfbce83 100644 --- a/gdb/cp-name-parser.y +++ b/gdb/cp-name-parser.y @@ -36,6 +36,7 @@ Boston, MA 02110-1301, USA. */ #include #include +#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 5bcdcf3016a..407ec9ab484 100644 --- a/gdb/gdb_select.h +++ b/gdb/gdb_select.h @@ -22,6 +22,8 @@ #ifdef HAVE_SYS_SELECT_H #include +#else +#include #endif #ifdef USE_WIN32API diff --git a/gdb/xml-tdesc.c b/gdb/xml-tdesc.c index e1aefd17add..d66c0e3e6b0 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);