diff options
author | Pierre Muller <muller@sourceware.org> | 2011-02-18 14:17:38 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2011-02-18 14:17:38 +0000 |
commit | 13163d8050012d1c79f1ec764c1f621aa47f1c27 (patch) | |
tree | b0ddb628cd5fea1884b8b4c94c3dfb1823aaab79 /gdb/c-valprint.c | |
parent | b434a28f71a481451dbd0719c6ca3fdf072d9407 (diff) | |
download | gdb-13163d8050012d1c79f1ec764c1f621aa47f1c27.zip gdb-13163d8050012d1c79f1ec764c1f621aa47f1c27.tar.gz gdb-13163d8050012d1c79f1ec764c1f621aa47f1c27.tar.bz2 |
* c-valprint.c (c_val_print): Add embedded_offset to address
for arrays of unspecified length.
* p-valprint.c (pascal_val_print): Likewise.
Diffstat (limited to 'gdb/c-valprint.c')
-rw-r--r-- | gdb/c-valprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index 8e4f932..76579d2 100644 --- a/gdb/c-valprint.c +++ b/gdb/c-valprint.c @@ -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: |