* remote-sim.c (gdb_os_error): Mark as a noreturn function.

Call exit to make it obvious to GCC.
This commit is contained in:
Nathan Froyd 2009-01-08 19:19:27 +00:00
parent f75455520e
commit 72ee87972e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-01-08 Nathan Froyd <froydnj@codesourcery.com>
* remote-sim.c (gdb_os_error): Mark as a noreturn function.
Call exit to make it obvious to GCC.
2009-01-08 Tom Tromey <tromey@redhat.com>
PR breakpoints/9350:

View File

@ -70,7 +70,7 @@ static void gdb_os_vprintf_filtered (host_callback *, const char *, va_list);
static void gdb_os_evprintf_filtered (host_callback *, const char *, va_list);
static void gdb_os_error (host_callback *, const char *, ...);
static void gdb_os_error (host_callback *, const char *, ...) ATTR_NORETURN;
static void gdbsim_fetch_register (struct regcache *regcache, int regno);
@ -273,6 +273,7 @@ gdb_os_error (host_callback * p, const char *format,...)
verror (format, args);
va_end (args);
}
exit (1);
}
int