This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [commit] Add "struct exception"
- From: "Eli Zaretskii" <eliz at gnu dot org>
- To: Andrew Cagney <cagney at gnu dot org>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 13 Jan 2005 06:51:14 +0200
- Subject: Re: [commit] Add "struct exception"
- References: <41E5B980.7030502@gnu.org>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Wed, 12 Jan 2005 18:57:52 -0500
> From: Andrew Cagney <cagney@gnu.org>
>
> clash, callers updated). This lets users write a rough equivalent:
>
> struct exception e = catch_exceptions (....)
> switch (exception.reason)
Please don't call it ``struct exception'', as that clashes with the
same struct defined by math.h and used by library function `matherr',
and would not compile in C++ at all.
Something like ``struct gdb_exception'' would probably be better.