mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-25 02:53:48 +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:
parent
b434a28f71
commit
13163d8050
@ -1,3 +1,9 @@
|
||||
2011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||
|
||||
* c-valprint.c (c_val_print): Add embedded_offset to address
|
||||
for arrays of unspecified length.
|
||||
* p-valprint.c (pascal_val_print): Likewise.
|
||||
|
||||
2011-02-18 Yao Qi <yao@codesourcery.com>
|
||||
|
||||
* gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
|
||||
|
@ -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:
|
||||
|
@ -128,7 +128,7 @@ pascal_val_print (struct type *type, const gdb_byte *valaddr,
|
||||
break;
|
||||
}
|
||||
/* Array of unspecified length: treat like pointer to first elt. */
|
||||
addr = address;
|
||||
addr = address + embedded_offset;
|
||||
goto print_unpacked_pointer;
|
||||
|
||||
case TYPE_CODE_PTR:
|
||||
|
Loading…
Reference in New Issue
Block a user