From 300d028478a0e0f52fe934488be96acc74e12e44 Mon Sep 17 00:00:00 2001 From: Pierre Muller Date: Mon, 8 Jun 2009 15:45:39 +0000 Subject: [PATCH] * cli/cli-decode.c (add_alias_cmd): Correct assertion. --- gdb/ChangeLog | 4 ++++ gdb/cli/cli-decode.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a9d908809d2..22aa1fff812 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-06-08 Pierre Muller + + * cli/cli-decode.c (add_alias_cmd): Correct assertion. + 2009-06-07 Pedro Alves * hppa-tdep.c (_initialize_hppa_tdep): Add declaration. diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index db7789f796a..e748ee6ea8d 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -251,7 +251,7 @@ add_alias_cmd (char *name, char *oldname, enum command_class class, &prehook, &prehookee, &posthook, &posthookee); /* If this happens, it means a programmer error somewhere. */ - gdb_assert (!aliases && !prehook && prehookee + gdb_assert (!aliases && !prehook && !prehookee && !posthook && ! posthookee); return 0; } -- 2.30.2