diff options
author | Pedro Alves <palves@redhat.com> | 2015-02-09 14:59:12 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2015-02-27 17:43:10 +0000 |
commit | ad6aff7dead678cc0fa4f786fa59c6040c6fa758 (patch) | |
tree | 606bde04e1aeaaf96e07dbe7d1f2a47f8efc4af7 /gdb/common/common-exceptions.h | |
parent | 97c185659a35d249aa20c89674e3da2baf4b4352 (diff) | |
download | gdb-ad6aff7dead678cc0fa4f786fa59c6040c6fa758.zip gdb-ad6aff7dead678cc0fa4f786fa59c6040c6fa758.tar.gz gdb-ad6aff7dead678cc0fa4f786fa59c6040c6fa758.tar.bz2 |
Move exception_none to common code, and use it
gdb/ChangeLog:
2015-02-27 Pedro Alves <palves@redhat.com>
* common/common-exceptions.h (exception_none): Declare.
* common/common-exceptions.c (exception_none): Moved from
exceptions.c.
(exceptions_state_mc_init): Use exception_none.
* exceptions.c (exception_none): Move to
common/common-exceptions.c.
* exceptions.h (exception_none): Move to
common/common-exceptions.h.
Diffstat (limited to 'gdb/common/common-exceptions.h')
-rw-r--r-- | gdb/common/common-exceptions.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/common/common-exceptions.h b/gdb/common/common-exceptions.h index e349ed0..a32e6f9 100644 --- a/gdb/common/common-exceptions.h +++ b/gdb/common/common-exceptions.h @@ -188,4 +188,7 @@ extern void throw_error (enum errors error, const char *fmt, ...) extern void throw_quit (const char *fmt, ...) ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF (1, 2); +/* A pre-defined non-exception. */ +extern const struct gdb_exception exception_none; + #endif /* COMMON_EXCEPTIONS_H */ |