This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Display var_zinteger as signed
- From: Andreas Schwab <schwab at redhat dot com>
- To: "Andrew Burgess" <aburgess at broadcom dot com>
- Cc: "gdb-patches\ at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Mon, 04 Jul 2011 13:26:06 +0200
- Subject: Re: [PATCH] Display var_zinteger as signed
- References: <4E11976B.9030100@broadcom.com>
"Andrew Burgess" <aburgess@broadcom.com> writes:
> @@ -373,8 +372,9 @@ do_setshow_command (char *arg, int from_tty,
> struct cmd_list_element *c)
> {
> fputs_filtered ("unlimited", stb->stream);
> }
> - else
> - fprintf_filtered (stb->stream, "%d", *(int *) c->var);
> + /* else fall through */
> + case var_zinteger:
> + fprintf_filtered (stb->stream, "%d", *(int *) c->var);
> break;
The "unlimited" case should not fall through.
Andreas.
--
Andreas Schwab, schwab@redhat.com
GPG Key fingerprint = D4E8 DBE3 3813 BB5D FA84 5EC7 45C6 250E 6F00 984E
"And now for something completely different."