diff options
author | Fred Fish <fnf@specifix.com> | 2001-12-09 07:29:46 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 2001-12-09 07:29:46 +0000 |
commit | 878ac5308a9a65e453ac6cff615092d88df836e3 (patch) | |
tree | 877d15a9a0aa36d77ad4ee9320e4c741b97d5081 | |
parent | f5ef7c67f8899c3d822c64e9317c62b55c9d2623 (diff) | |
download | gdb-878ac5308a9a65e453ac6cff615092d88df836e3.zip gdb-878ac5308a9a65e453ac6cff615092d88df836e3.tar.gz gdb-878ac5308a9a65e453ac6cff615092d88df836e3.tar.bz2 |
Approved by Jim Blandy:
2001-12-08 Fred Fish <fnf@redhat.com>
* dwarf2read.c (TYPE_FLAG_VARARGS): Remove from here.
* gdbtypes.h (TYPE_FLAG_VARARGS): Add here and change value to
not collide with other flag bits.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 4 | ||||
-rw-r--r-- | gdb/gdbtypes.h | 6 |
3 files changed, 12 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a8576c9..b276741 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2001-12-08 Fred Fish <fnf@redhat.com> + * dwarf2read.c (TYPE_FLAG_VARARGS): Remove from here. + * gdbtypes.h (TYPE_FLAG_VARARGS): Add here and change value to + not collide with other flag bits. + +2001-12-08 Fred Fish <fnf@redhat.com> + * dwarf2read.c (read_base_type): Rename is_unsigned to type_flags. For unsigned types set TYPE_FLAG_UNSIGNED and pass it to init_type(). diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 17d81f9..fc149cd 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -474,10 +474,6 @@ struct field_info int nfnfields; }; -/* FIXME: Kludge to mark a varargs function type for C++ member function - argument processing. */ -#define TYPE_FLAG_VARARGS (1 << 10) - /* Dwarf2 has no clean way to discern C++ static and non-static member functions. G++ helps GDB by marking the first parameter for non-static member functions (which is the this pointer) as artificial. diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h index de27f8e..1cac4f0 100644 --- a/gdb/gdbtypes.h +++ b/gdb/gdbtypes.h @@ -228,6 +228,12 @@ enum type_code #define TYPE_FLAG_CODE_SPACE (1 << 9) #define TYPE_FLAG_DATA_SPACE (1 << 10) +/* FIXME: Kludge to mark a varargs function type for C++ member + function argument processing. Currently only used in dwarf2read.c, + but put it here so we won't accidentally overload the bit with + another flag. */ + +#define TYPE_FLAG_VARARGS (1 << 11) struct type { |