mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* c-valprint.c (c_val_print): Add embedded_offset to address
for arrays of unspecified length. * p-valprint.c (pascal_val_print): Likewise.
This commit is contained in:
@ -240,7 +240,7 @@ c_val_print (struct type *type, const gdb_byte *valaddr,
|
||||
}
|
||||
/* Array of unspecified length: treat like pointer to first
|
||||
elt. */
|
||||
addr = address;
|
||||
addr = address + embedded_offset;
|
||||
goto print_unpacked_pointer;
|
||||
|
||||
case TYPE_CODE_MEMBERPTR:
|
||||
|
Reference in New Issue
Block a user