From: Michael Snyder Date: Fri, 21 Jul 2000 20:03:08 +0000 (+0000) Subject: 2000-07-20 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3dd3139b536d7cbc0ad0cf689c52b4e8c175c2d9;p=binutils-gdb.git 2000-07-20 Michael Snyder * valarith.c (value_sub): Call check_typedef. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c2cd85f375f..1bb70e9f0a8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2000-07-20 Michael Snyder + + * valarith.c (value_sub): Call check_typedef. + 2000-07-19 Nicholas Duffek * thread.c (free_thread): New function. diff --git a/gdb/valarith.c b/gdb/valarith.c index 2db71fdc938..922bdcc2140 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -110,8 +110,8 @@ value_sub (arg1, arg2) - (sz * value_as_long (arg2)))); } else if (TYPE_CODE (type2) == TYPE_CODE_PTR - && TYPE_LENGTH (TYPE_TARGET_TYPE (type1)) - == TYPE_LENGTH (TYPE_TARGET_TYPE (type2))) + && TYPE_LENGTH (check_typedef (TYPE_TARGET_TYPE (type1))) + == TYPE_LENGTH (check_typedef (TYPE_TARGET_TYPE (type2)))) { /* pointer to - pointer to . */ LONGEST sz = TYPE_LENGTH (check_typedef (TYPE_TARGET_TYPE (type1)));