diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-02-03 21:50:25 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-02-03 21:50:25 +0000 |
commit | 7b871fabb11aa463fdd81d8eec64447c7cbc5caf (patch) | |
tree | a9e07691b195f52b4f405a8e65c4b114162bd489 /gdb | |
parent | 219eec718492540b65c71055742b679f5710b38d (diff) | |
download | gdb-7b871fabb11aa463fdd81d8eec64447c7cbc5caf.zip gdb-7b871fabb11aa463fdd81d8eec64447c7cbc5caf.tar.gz gdb-7b871fabb11aa463fdd81d8eec64447c7cbc5caf.tar.bz2 |
* exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR.
* exceptions.c (exception_none, exceptions_state_mc_init)
(throw_vfatal): Use GDB_NO_ERROR.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/exceptions.c | 10 | ||||
-rw-r--r-- | gdb/exceptions.h | 6 |
3 files changed, 14 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a419107..74e8246 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2006-02-03 Daniel Jacobowitz <dan@codesourcery.com> + + * exceptions.h (enum errors): Rename NO_ERROR to GDB_NO_ERROR. + * exceptions.c (exception_none, exceptions_state_mc_init) + (throw_vfatal): Use GDB_NO_ERROR. + 2006-02-02 Mark Kettenis <kettenis@gnu.org> * solib-svr4.h (struct link_map_offsets): Remove r_debug_size and diff --git a/gdb/exceptions.c b/gdb/exceptions.c index 861b328..4486979 100644 --- a/gdb/exceptions.c +++ b/gdb/exceptions.c @@ -1,8 +1,8 @@ /* Exception (throw catch) mechanism, for GDB, the GNU debugger. Copyright (C) 1986, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, - 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free - Software Foundation, Inc. + 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. This file is part of GDB. @@ -32,7 +32,7 @@ #include "gdb_string.h" #include "serial.h" -const struct gdb_exception exception_none = { 0, NO_ERROR, NULL }; +const struct gdb_exception exception_none = { 0, GDB_NO_ERROR, NULL }; /* Possible catcher states. */ enum catcher_state { @@ -79,7 +79,7 @@ exceptions_state_mc_init (struct ui_out *func_uiout, /* Start with no exception, save it's address. */ exception->reason = 0; - exception->error = NO_ERROR; + exception->error = GDB_NO_ERROR; exception->message = NULL; new_catcher->exception = exception; @@ -404,7 +404,7 @@ throw_verror (enum errors error, const char *fmt, va_list ap) NORETURN void throw_vfatal (const char *fmt, va_list ap) { - throw_it (RETURN_QUIT, NO_ERROR, fmt, ap); + throw_it (RETURN_QUIT, GDB_NO_ERROR, fmt, ap); } NORETURN void diff --git a/gdb/exceptions.h b/gdb/exceptions.h index a0bf60b..3cdc537 100644 --- a/gdb/exceptions.h +++ b/gdb/exceptions.h @@ -1,8 +1,8 @@ /* Exception (throw catch) mechanism, for GDB, the GNU debugger. Copyright (C) 1986, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, - 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free - Software Foundation, Inc. + 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. This file is part of GDB. @@ -50,7 +50,7 @@ typedef int return_mask; /* Describe all exceptions. */ enum errors { - NO_ERROR, + GDB_NO_ERROR, /* Any generic error, the corresponding text is in exception.message. */ GENERIC_ERROR, |