forked from Imagelibrary/binutils-gdb
* gdbtypes.h: Re-interpret struct field. Suppport address of static.
Add a bunch of macros. * coffread.c, dwarf2read.c, dwarfread.c, mdebugread.c, stabsread.c: Update to use new macros. * coffread.c, hpread.c, stabsread.c: Remove bugus TYPE_FIELD_VALUE. * value.h, values.c (value_static_field): New function. * cp-valprint.c, valops.c: Modify to use value_static_field.
This commit is contained in:
@@ -1124,10 +1124,10 @@ parse_symbol (sh, ax, ext_sh, bigend, section_offsets)
|
||||
if (tsym.st != stMember)
|
||||
break;
|
||||
|
||||
f->bitpos = tsym.value;
|
||||
f->type = t;
|
||||
f->name = debug_info->ss + cur_fdr->issBase + tsym.iss;
|
||||
f->bitsize = 0;
|
||||
FIELD_BITPOS (*f) = tsym.value;
|
||||
FIELD_TYPE (*f) = t;
|
||||
FIELD_NAME (*f) = debug_info->ss + cur_fdr->issBase + tsym.iss;
|
||||
FIELD_BITSIZE (*f) = 0;
|
||||
|
||||
enum_sym = ((struct symbol *)
|
||||
obstack_alloc (¤t_objfile->symbol_obstack,
|
||||
@@ -1314,11 +1314,11 @@ parse_symbol (sh, ax, ext_sh, bigend, section_offsets)
|
||||
|
||||
case stMember: /* member of struct or union */
|
||||
f = &TYPE_FIELDS (top_stack->cur_type)[top_stack->cur_field++];
|
||||
f->name = name;
|
||||
f->bitpos = sh->value;
|
||||
FIELD_NAME (*f) = name;
|
||||
FIELD_BITPOS (*f) = sh->value;
|
||||
bitsize = 0;
|
||||
f->type = parse_type (cur_fd, ax, sh->index, &bitsize, bigend, name);
|
||||
f->bitsize = bitsize;
|
||||
FIELD_TYPE (*f) = parse_type (cur_fd, ax, sh->index, &bitsize, bigend, name);
|
||||
FIELD_BITSIZE (*f) = bitsize;
|
||||
break;
|
||||
|
||||
case stIndirect: /* forward declaration on Irix5 */
|
||||
|
||||
Reference in New Issue
Block a user