diff options
author | Jeff Law <law@redhat.com> | 1994-09-29 05:03:18 +0000 |
---|---|---|
committer | Jeff Law <law@redhat.com> | 1994-09-29 05:03:18 +0000 |
commit | e042d326f98b020e7f1376d908007ccb57e44c09 (patch) | |
tree | 22ffbfc35956ddc51e1e3c76d9e7c0200dd7826a /gdb/hpread.c | |
parent | 510ceea939b789df3ae14b8fa34e93c20f34ff74 (diff) | |
download | gdb-e042d326f98b020e7f1376d908007ccb57e44c09.zip gdb-e042d326f98b020e7f1376d908007ccb57e44c09.tar.gz gdb-e042d326f98b020e7f1376d908007ccb57e44c09.tar.bz2 |
* hpread.c (hpread_read_array_type): Do not change the type code
to TYPE_CODE_PTR for "char foo[]". Just make it a zero length
array type.
Diffstat (limited to 'gdb/hpread.c')
-rw-r--r-- | gdb/hpread.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/hpread.c b/gdb/hpread.c index f070d3e..ad142a8 100644 --- a/gdb/hpread.c +++ b/gdb/hpread.c @@ -1556,9 +1556,8 @@ hpread_read_array_type (hp_type, dn_bufp, objfile) { /* The HP debug format represents char foo[]; as an array with length 0x7fffffff. Internally GDB wants to represent this - as a pointer. Ugh. */ - TYPE_CODE (type) = TYPE_CODE_PTR; - TYPE_LENGTH (type) = 4; + as an array of length zero. */ + TYPE_LENGTH (type) = 0; } else TYPE_LENGTH (type) = dn_bufp->darray.arraylength / 8; |