]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
202001-10-15 Jim Ingham <jingham@inghji.apple.com>
authorAndrew Cagney <cagney@redhat.com>
Tue, 16 Oct 2001 01:18:27 +0000 (01:18 +0000)
committerAndrew Cagney <cagney@redhat.com>
Tue, 16 Oct 2001 01:18:27 +0000 (01:18 +0000)
* valarith.c (value_sub): Don't pass a raw type to
value_from_pointer, it has to go through check_typedef first.

gdb/ChangeLog
gdb/valarith.c

index 4659ddb139a557af43e2e1eeedb63623f224d0d3..4e326b62cae100dd7178c3f99a97ca19fc6e9319 100644 (file)
@@ -1,4 +1,9 @@
-2001-10-15  Kevin Buettner  <kevinb@redhat.com>
+202001-10-15  Jim Ingham  <jingham@inghji.apple.com>
+
+        * valarith.c (value_sub): Don't pass a raw type to
+        value_from_pointer, it has to go through check_typedef first.
+
+01-10-15  Kevin Buettner  <kevinb@redhat.com>
 
        * dbxread.c (process_one_symbol): Don't use error result from
        find_stab_function_addr().
index aaa393f4b100650da62655a2c67e406408eb3a92..7cd4e9d316445e89d6c8324a0c4bcce523c7a337 100644 (file)
@@ -103,7 +103,7 @@ value_sub (value_ptr arg1, value_ptr arg2)
        {
          /* pointer - integer.  */
          LONGEST sz = TYPE_LENGTH (check_typedef (TYPE_TARGET_TYPE (type1)));
-         return value_from_pointer (VALUE_TYPE (arg1),
+         return value_from_pointer (type1,
                                     (value_as_pointer (arg1)
                                      - (sz * value_as_long (arg2))));
        }