* 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.
This commit is contained in:
parent
91f4687cf0
commit
6eb7ee032e
5 changed files with 15 additions and 2 deletions
|
@ -1,3 +1,13 @@
|
||||||
|
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>
|
2008-08-09 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
* go32-nat.c: Include "gdbthread.h".
|
* go32-nat.c: Include "gdbthread.h".
|
||||||
|
|
|
@ -547,7 +547,7 @@ start_subfile (char *name, char *dirname)
|
||||||
&& !IS_ABSOLUTE_PATH (subfile->name)
|
&& !IS_ABSOLUTE_PATH (subfile->name)
|
||||||
&& subfile->dirname != NULL)
|
&& subfile->dirname != NULL)
|
||||||
subfile_name = concat (subfile->dirname, SLASH_STRING,
|
subfile_name = concat (subfile->dirname, SLASH_STRING,
|
||||||
subfile->name, NULL);
|
subfile->name, (char *) NULL);
|
||||||
else
|
else
|
||||||
subfile_name = subfile->name;
|
subfile_name = subfile->name;
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@ Boston, MA 02110-1301, USA. */
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
#include "safe-ctype.h"
|
#include "safe-ctype.h"
|
||||||
#include "libiberty.h"
|
#include "libiberty.h"
|
||||||
#include "demangle.h"
|
#include "demangle.h"
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
|
|
||||||
#ifdef HAVE_SYS_SELECT_H
|
#ifdef HAVE_SYS_SELECT_H
|
||||||
#include <sys/select.h>
|
#include <sys/select.h>
|
||||||
|
#else
|
||||||
|
#include <sys/time.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_WIN32API
|
#ifdef USE_WIN32API
|
||||||
|
|
|
@ -443,7 +443,7 @@ fetch_xml_from_file (const char *filename, void *baton)
|
||||||
|
|
||||||
if (dirname && *dirname)
|
if (dirname && *dirname)
|
||||||
{
|
{
|
||||||
char *fullname = concat (dirname, "/", filename, NULL);
|
char *fullname = concat (dirname, "/", filename, (char *) NULL);
|
||||||
if (fullname == NULL)
|
if (fullname == NULL)
|
||||||
nomem (0);
|
nomem (0);
|
||||||
file = fopen (fullname, FOPEN_RT);
|
file = fopen (fullname, FOPEN_RT);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue