aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-sim.c
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@codesourcery.com>2009-01-08 19:19:27 +0000
committerNathan Froyd <froydnj@codesourcery.com>2009-01-08 19:19:27 +0000
commit72ee87972ebc7459e26d7d73fbacd7483dacacd5 (patch)
tree293b9b25908aca103461a5a6defe03ccaac436e2 /gdb/remote-sim.c
parentf75455520e7d4fa0f867d2f4a8f3dffd1a0595fc (diff)
downloadgdb-72ee87972ebc7459e26d7d73fbacd7483dacacd5.zip
gdb-72ee87972ebc7459e26d7d73fbacd7483dacacd5.tar.gz
gdb-72ee87972ebc7459e26d7d73fbacd7483dacacd5.tar.bz2
* remote-sim.c (gdb_os_error): Mark as a noreturn function.
Call exit to make it obvious to GCC.
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r--gdb/remote-sim.c3
1 files changed, 2 insertions, 1 deletions
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