mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* values.c (value_primitive_field): If we're extracting a base
class, then the type of the result should be the base class being extracted, not the type of which it is a base class.
This commit is contained in:
@@ -856,7 +856,7 @@ value_primitive_field (register value_ptr arg1, int offset,
|
||||
entire object's contents for later references to virtual
|
||||
bases, etc. */
|
||||
v = allocate_value (VALUE_ENCLOSING_TYPE (arg1));
|
||||
VALUE_TYPE (v) = arg_type;
|
||||
VALUE_TYPE (v) = type;
|
||||
if (VALUE_LAZY (arg1))
|
||||
VALUE_LAZY (v) = 1;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user