diff options
author | Michael Chastain <mec@google.com> | 2004-01-07 13:22:09 +0000 |
---|---|---|
committer | Michael Chastain <mec@google.com> | 2004-01-07 13:22:09 +0000 |
commit | 9f9057daeff42378383f399a6dce0b7958df5c3f (patch) | |
tree | 733369a5a1f5fe750a94181b149ff9ee2670cb31 /gdb | |
parent | 753ccc7a8b5f1475df9dce7b0c6c84cdee196b7f (diff) | |
download | gdb-9f9057daeff42378383f399a6dce0b7958df5c3f.zip gdb-9f9057daeff42378383f399a6dce0b7958df5c3f.tar.gz gdb-9f9057daeff42378383f399a6dce0b7958df5c3f.tar.bz2 |
2004-01-07 Michael Chastain <mec.gnu@mindspring.com>
* hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME
properly for static fields.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/hpread.c | 13 |
2 files changed, 13 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index de7c816..5a4b719 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-01-07 Michael Chastain <mec.gnu@mindspring.com> + + * hpread.c (hpread_read_struct_type): Call SET_FIELD_PHYSNAME + properly for static fields. + 2004-01-06 Jeff Johnston <jjohnstn@redhat.com> Jason Molenda <jmolenda@apple.com> diff --git a/gdb/hpread.c b/gdb/hpread.c index 40875f7..246f77e 100644 --- a/gdb/hpread.c +++ b/gdb/hpread.c @@ -1,6 +1,6 @@ /* Read hp debug symbols and convert to internal format, for GDB. - Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 - Free Software Foundation, Inc. + Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, + 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of GDB. @@ -4160,16 +4160,19 @@ hpread_read_struct_type (dnttpointer hp_type, union dnttentry *dn_bufp, list->field.name = VT (objfile) + fieldp->dfield.name; - /* A FIELD by itself (without a GENFIELD) can also be a static member */ - FIELD_STATIC_KIND (list->field) = 0; + /* A FIELD by itself (without a GENFIELD) can also be a static + member. Mark it as static with a physname of NULL. + fix_static_member_physnames will assign the physname later. */ if (fieldp->dfield.staticmem) { - FIELD_BITPOS (list->field) = -1; + SET_FIELD_PHYSNAME (list->field, NULL); + FIELD_BITPOS (list->field) = 0; FIELD_BITSIZE (list->field) = 0; } else /* Non-static data member */ { + FIELD_STATIC_KIND (list->field) = 0; FIELD_BITPOS (list->field) = fieldp->dfield.bitoffset; if (fieldp->dfield.bitlength % 8) FIELD_BITSIZE (list->field) = fieldp->dfield.bitlength; |