This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] new macro: gdb_assert_not_reached
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Doug Evans <dje at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 17 Aug 2010 09:16:53 +0200
- Subject: Re: [patch] new macro: gdb_assert_not_reached
- References: <20100817000113.6467684B8F@ruffy.mtv.corp.google.com>
> This patch adds new macro gdb_assert_not_reached, and replaces
> all existing uses of gdb_assert (0) with the new macro.
FWIW, this looks good to me. I was a little surprised by the use
of a message parameter, but I think it's nice too (rather than
always reporting a bland `Unreachable code assertion failed').
--
Joel