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.
This commit is contained in:
parent
97c185659a
commit
ad6aff7dea
5 changed files with 17 additions and 8 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue