From: Nathan Froyd Date: Thu, 8 Jan 2009 19:19:27 +0000 (+0000) Subject: * remote-sim.c (gdb_os_error): Mark as a noreturn function. X-Git-Tag: sid-snapshot-20090201~248 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=72ee87972ebc7459e26d7d73fbacd7483dacacd5;p=platform%2Fupstream%2Fbinutils.git * remote-sim.c (gdb_os_error): Mark as a noreturn function. Call exit to make it obvious to GCC. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8e4acbf..04437be 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2009-01-08 Nathan Froyd + + * remote-sim.c (gdb_os_error): Mark as a noreturn function. + Call exit to make it obvious to GCC. + 2009-01-08 Tom Tromey PR breakpoints/9350: diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 26e59f5..6bd0508 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -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