diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-01-14 01:20:38 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-01-14 01:20:38 +0000 |
commit | 3cc179d89ef26522483cec8cabb8d99f965bf19d (patch) | |
tree | bdfd05d111fd20025b4bd3f029fa01ea60ed846e /gdb/main.c | |
parent | 34051975e3c54d01de3f7c2eff4f3e5d43e861c6 (diff) | |
download | gdb-3cc179d89ef26522483cec8cabb8d99f965bf19d.tar.gz |
2005-01-13 Andrew Cagney <cagney@gnu.org>
* defs.h (error_last_message, error_init): Delete declaration.
* utils.c (fatal, vfatal): Call throw_vfatal.
(error, verror): Call throw_verror;
(do_write, error_stream_1): Delete function.
(error_stream): Simplify, call error.
(error_last_message, error_init, gdb_lasterr): Delete.
(error_silent): Simplify, call throw_vsilent.
* mi/mi-interp.c (mi_cmd_interpreter_exec): Dup the message.
* main.c (captured_main): Delete call to error_init.
* exceptions.c (throw_verror, throw_verror)
(throw_vsilent): New functions.
(do_write, print_and_throw): New functions.
(last_message): New global.
(throw_reason): Replace error_last_message with last_message.
(catch_exceptions_with_msg): Dup the message.
* exceptions.h (throw_verror, throw_vfatal, throw_vsilent):
Declare.
Diffstat (limited to 'gdb/main.c')
-rw-r--r-- | gdb/main.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gdb/main.c b/gdb/main.c index df93e5e51dd..2a8bba56f2d 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -191,9 +191,6 @@ captured_main (void *data) gdb_stdtargerr = gdb_stderr; /* for moment */ gdb_stdtargin = gdb_stdin; /* for moment */ - /* initialize error() */ - error_init (); - /* Set the sysroot path. */ #ifdef TARGET_SYSTEM_ROOT_RELOCATABLE gdb_sysroot = make_relative_prefix (argv[0], BINDIR, TARGET_SYSTEM_ROOT); |