diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-09-23 23:43:13 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-10-29 16:44:21 -0400 |
commit | 3a543e211e963c6ff131e9275524d4632309f15b (patch) | |
tree | 56ab4d72be7729aa1e013f4b00476a66856127fb /gdb/stabsread.c | |
parent | 8d939e8ea4b05a263579b533850a983668ccd1fa (diff) | |
download | fsf-binutils-gdb-3a543e211e963c6ff131e9275524d4632309f15b.zip fsf-binutils-gdb-3a543e211e963c6ff131e9275524d4632309f15b.tar.gz fsf-binutils-gdb-3a543e211e963c6ff131e9275524d4632309f15b.tar.bz2 |
gdb: remove FIELD_BITPOS macro
Remove FIELD_BITPOD, replace its uses with field::loc_bitpos.
Change-Id: Idb99297e0170661254276c206383a7e9bf1a935a
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index 64734b7..04f5210 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -2846,7 +2846,7 @@ read_one_struct_field (struct stab_field_info *fip, const char **pp, } } - if (FIELD_BITPOS (fip->list->field) == 0 + if (fip->list->field.loc_bitpos () == 0 && FIELD_BITSIZE (fip->list->field) == 0) { /* This can happen in two cases: (1) at least for gcc 2.4.5 or so, @@ -2889,7 +2889,7 @@ read_one_struct_field (struct stab_field_info *fip, const char **pp, == gdbarch_int_bit (gdbarch)) ) && - FIELD_BITPOS (fip->list->field) % 8 == 0) + fip->list->field.loc_bitpos () % 8 == 0) { FIELD_BITSIZE (fip->list->field) = 0; } |