From: Pierre Muller Date: Mon, 19 Aug 2002 12:08:07 +0000 (+0000) Subject: 2002-08-19 Pierre Muller X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ed8f822aaf4a6d0614ce35522f646a784c479881;p=binutils-gdb.git 2002-08-19 Pierre Muller * p-valprint.c (pascal_val_print): Add support for TYPE_CODE_FLAGS. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4b90dc8e0d4..9f56d5f957c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2002-08-19 Pierre Muller + + * p-valprint.c (pascal_val_print): Add support for TYPE_CODE_FLAGS. + 2002-08-19 Pierre Muller * i387-tdep.c (i387_print_float_info): Fix typo in comment. diff --git a/gdb/p-valprint.c b/gdb/p-valprint.c index 06a821605fe..747223cb6c5 100644 --- a/gdb/p-valprint.c +++ b/gdb/p-valprint.c @@ -36,6 +36,7 @@ #include "target.h" #include "annotate.h" #include "p-lang.h" +#include "c-lang.h" #include "cp-abi.h" @@ -72,6 +73,10 @@ pascal_val_print (struct type *type, char *valaddr, int embedded_offset, CHECK_TYPEDEF (type); switch (TYPE_CODE (type)) { + case TYPE_CODE_FLAGS: + return c_val_print (type, valaddr, embedded_offset, address, stream, + format, deref_ref, recurse, pretty); + case TYPE_CODE_ARRAY: if (TYPE_LENGTH (type) > 0 && TYPE_LENGTH (TYPE_TARGET_TYPE (type)) > 0) {