diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-01-28 10:51:22 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2022-04-11 10:47:54 -0400 |
commit | e165fcef1e79529442d6a5d8def71681c088cd18 (patch) | |
tree | 04a54d159a5b232767bafc818c97c8d5b4dabfd8 /gdb/mips-tdep.h | |
parent | 5bbfd12ddaff56898d5791241cabd1a7b781a416 (diff) | |
download | fsf-binutils-gdb-e165fcef1e79529442d6a5d8def71681c088cd18.zip fsf-binutils-gdb-e165fcef1e79529442d6a5d8def71681c088cd18.tar.gz fsf-binutils-gdb-e165fcef1e79529442d6a5d8def71681c088cd18.tar.bz2 |
gdb: remove MSYMBOL_TARGET_FLAG_{1,2} macros
Replace with equivalent getter/setter macros.
Change-Id: I1042564dd47347337374762bd64ec31b5c573ee2
Diffstat (limited to 'gdb/mips-tdep.h')
-rw-r--r-- | gdb/mips-tdep.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gdb/mips-tdep.h b/gdb/mips-tdep.h index f0a7440..4d2664d 100644 --- a/gdb/mips-tdep.h +++ b/gdb/mips-tdep.h @@ -50,8 +50,17 @@ enum mips_isa }; /* Corresponding MSYMBOL_TARGET_FLAG aliases. */ -#define MSYMBOL_TARGET_FLAG_MIPS16 MSYMBOL_TARGET_FLAG_1 -#define MSYMBOL_TARGET_FLAG_MICROMIPS MSYMBOL_TARGET_FLAG_2 +#define MSYMBOL_TARGET_FLAG_MIPS16(sym) \ + (sym)->target_flag_1 () + +#define SET_MSYMBOL_TARGET_FLAG_MIPS16(sym) \ + (sym)->set_target_flag_1 (true) + +#define MSYMBOL_TARGET_FLAG_MICROMIPS(sym) \ + (sym)->target_flag_2 () + +#define SET_MSYMBOL_TARGET_FLAG_MICROMIPS(sym) \ + (sym)->set_target_flag_2 (true) /* Return the MIPS ISA's register size. Just a short cut to the BFD architecture's word size. */ |