mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
2002-01-20 Daniel Jacobowitz <drow@mvista.com>
* gdbtypes.h (struct cplus_struct_type): Add is_artificial to member function fields. Add accessor macro TYPE_FN_FIELD_ARTIFICIAL. * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods. * c-typeprint.c (c_type_print_base): Skip artificial member functions.
This commit is contained in:
@@ -619,6 +619,7 @@ struct cplus_struct_type
|
||||
unsigned int is_final:1;
|
||||
unsigned int is_synchronized:1;
|
||||
unsigned int is_native:1;
|
||||
unsigned int is_artificial:1;
|
||||
|
||||
/* A stub method only has some fields valid (but they are enough
|
||||
to reconstruct the rest of the fields). */
|
||||
@@ -628,7 +629,7 @@ struct cplus_struct_type
|
||||
unsigned int is_inlined:1;
|
||||
|
||||
/* Unused. */
|
||||
unsigned int dummy:4;
|
||||
unsigned int dummy:3;
|
||||
|
||||
/* Index into that baseclass's virtual function table,
|
||||
minus 2; else if static: VOFFSET_STATIC; else: 0. */
|
||||
@@ -867,6 +868,7 @@ extern void allocate_cplus_struct_type (struct type *);
|
||||
#define TYPE_FN_FIELD_FINAL(thisfn, n) ((thisfn)[n].is_final)
|
||||
#define TYPE_FN_FIELD_SYNCHRONIZED(thisfn, n) ((thisfn)[n].is_synchronized)
|
||||
#define TYPE_FN_FIELD_NATIVE(thisfn, n) ((thisfn)[n].is_native)
|
||||
#define TYPE_FN_FIELD_ARTIFICIAL(thisfn, n) ((thisfn)[n].is_artificial)
|
||||
#define TYPE_FN_FIELD_ABSTRACT(thisfn, n) ((thisfn)[n].is_abstract)
|
||||
#define TYPE_FN_FIELD_STUB(thisfn, n) ((thisfn)[n].is_stub)
|
||||
#define TYPE_FN_FIELD_INLINED(thisfn, n) ((thisfn)[n].is_inlined)
|
||||
|
||||
Reference in New Issue
Block a user