mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 11:59:27 +08:00
* Makefile.in (mingw-hdep.o, posix-hdep.o): New dependencies.
(ALLDEPFILES): Add mingw-hdep.c and posix-hdep.c. * configure.ac: Add gdb_host_obs to CONFIG_OBS. Set gdb_host_obs to posix-hdep.o by default. * configure: Regenerated. * configure.host: Document gdb_host_obs. Add an entry for i[34567]86-*-mingw32*. * mingw-hdep.c, posix-hdep.c: New files. * utils.c (safe_strerror): Remove, moved to posix-hdep.o.
This commit is contained in:
19
gdb/utils.c
19
gdb/utils.c
@ -839,25 +839,6 @@ internal_warning (const char *file, int line, const char *string, ...)
|
||||
va_end (ap);
|
||||
}
|
||||
|
||||
/* The strerror() function can return NULL for errno values that are
|
||||
out of range. Provide a "safe" version that always returns a
|
||||
printable string. */
|
||||
|
||||
char *
|
||||
safe_strerror (int errnum)
|
||||
{
|
||||
char *msg;
|
||||
|
||||
msg = strerror (errnum);
|
||||
if (msg == NULL)
|
||||
{
|
||||
static char buf[32];
|
||||
xsnprintf (buf, sizeof buf, "(undocumented errno %d)", errnum);
|
||||
msg = buf;
|
||||
}
|
||||
return (msg);
|
||||
}
|
||||
|
||||
/* Print the system error message for errno, and also mention STRING
|
||||
as the file name for which the error was encountered.
|
||||
Then return to command level. */
|
||||
|
Reference in New Issue
Block a user