diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-09-18 23:53:52 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-09-18 23:53:52 +0000 |
commit | dec43320d95c180b5601a515fa18bfe541df0448 (patch) | |
tree | c900791d7b4563b4faf1a96ea7236a80337a8583 /gdb/defs.h | |
parent | b81654f1c061cfbadd7e270a2920b014d4c9cfdd (diff) | |
download | gdb-dec43320d95c180b5601a515fa18bfe541df0448.zip gdb-dec43320d95c180b5601a515fa18bfe541df0448.tar.gz gdb-dec43320d95c180b5601a515fa18bfe541df0448.tar.bz2 |
2002-09-18 Andrew Cagney <ac131313@redhat.com>
* maint.c (maintenance_internal_error): Print the parameter as the
error message.
(maintenance_internal_warning): New function.
(_initialize_maint_cmds): Add command `maint internal-warning'.
* defs.h (internal_warning, internal_vwarning): Declare.
* utils.c (struct internal_problem): Define.
(internal_vproblem): New function.
(internal_warning): New function.
(internal_vwarning): New function.
(internal_warning_problem, internal_error_problem): New variables.
(internal_verror): Just call internal_vproblem.
Index: testsuite/ChangeLog
2002-09-18 Andrew Cagney <ac131313@redhat.com>
* gdb.base/maint.exp: Check `help maint internal-warning'.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -889,6 +889,12 @@ extern NORETURN void internal_verror (const char *file, int line, extern NORETURN void internal_error (const char *file, int line, const char *, ...) ATTR_NORETURN ATTR_FORMAT (printf, 3, 4); +extern void internal_vwarning (const char *file, int line, + const char *, va_list ap); + +extern void internal_warning (const char *file, int line, + const char *, ...) ATTR_FORMAT (printf, 3, 4); + extern NORETURN void nomem (long) ATTR_NORETURN; /* Reasons for calling throw_exception(). NOTE: all reason values |