From b929c77fbae1a7ef580cb30886af6e27e86b1a3c Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sun, 29 Jan 2006 21:19:31 +0000 Subject: [PATCH] * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL. Fixes PR tdep/2075. --- gdb/ChangeLog | 5 +++++ gdb/amd64-tdep.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f9f6cd1..ec2c9d7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-01-29 Mark Kettenis + + * amd64-tdep.c (amd64_classify): Handle TYPE_CODE_BOOL. + Fixes PR tdep/2075. + 2006-01-27 Joel Brobecker * MAINTAINERS: Use a consistent email address for brobecker. diff --git a/gdb/amd64-tdep.c b/gdb/amd64-tdep.c index 31a1281..647edcd 100644 --- a/gdb/amd64-tdep.c +++ b/gdb/amd64-tdep.c @@ -404,7 +404,7 @@ amd64_classify (struct type *type, enum amd64_reg_class class[2]) range types, used by languages such as Ada, are also in the INTEGER class. */ if ((code == TYPE_CODE_INT || code == TYPE_CODE_ENUM - || code == TYPE_CODE_RANGE + || code == TYPE_CODE_BOOL || code == TYPE_CODE_RANGE || code == TYPE_CODE_PTR || code == TYPE_CODE_REF) && (len == 1 || len == 2 || len == 4 || len == 8)) class[0] = AMD64_INTEGER; -- 2.7.4