From 872f0337802a081229fb2947f271c0acccac9800 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Thu, 19 Nov 2009 22:45:56 +0000 Subject: [PATCH] * ada-lang.c (discrete_type_p): TYPE_CODE_BOOL is also a discrete type. --- gdb/ChangeLog | 4 ++++ gdb/ada-lang.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6ff3c3d5724..ea55fb18420 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-11-19 Joel Brobecker + + * ada-lang.c (discrete_type_p): TYPE_CODE_BOOL is also a discrete type. + 2009-11-19 Joel Brobecker * completer.c (complete_line_internal): Make sure the command diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 6cea84e83ff..289c59691fb 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -3585,6 +3585,7 @@ discrete_type_p (struct type *type) case TYPE_CODE_INT: case TYPE_CODE_RANGE: case TYPE_CODE_ENUM: + case TYPE_CODE_BOOL: return 1; default: return 0; -- 2.30.2