From: "Ying Huang" <ying.huang@oss.cipunited.com>
To: <gdb-patches@sourceware.org>
Cc: <yunqiang.su@oss.cipunited.com>,
"Ying Huang" <ying.huang@oss.cipunited.com>
Subject: [PATCH 1/2] gdb: mips: Change E_MIPS_* to EF_MIPS_*
Date: Tue, 14 Nov 2023 17:45:34 +0800 [thread overview]
Message-ID: <20231114094535.434194-2-ying.huang@oss.cipunited.com> (raw)
In-Reply-To: <20231114094535.434194-1-ying.huang@oss.cipunited.com>
From: Ying Huang <ying.huang@oss.cipunited.com>
---
gdb/mips-tdep.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index d40d28e85de..066c7c80669 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -8109,16 +8109,16 @@ mips_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
/* Check ELF_FLAGS to see if it specifies the ABI being used. */
switch ((elf_flags & EF_MIPS_ABI))
{
- case E_MIPS_ABI_O32:
+ case EF_MIPS_ABI_O32:
found_abi = MIPS_ABI_O32;
break;
- case E_MIPS_ABI_O64:
+ case EF_MIPS_ABI_O64:
found_abi = MIPS_ABI_O64;
break;
- case E_MIPS_ABI_EABI32:
+ case EF_MIPS_ABI_EABI32:
found_abi = MIPS_ABI_EABI32;
break;
- case E_MIPS_ABI_EABI64:
+ case EF_MIPS_ABI_EABI64:
found_abi = MIPS_ABI_EABI64;
break;
default:
@@ -8924,16 +8924,16 @@ mips_dump_tdep (struct gdbarch *gdbarch, struct ui_file *file)
/* Determine the ISA. */
switch (tdep->elf_flags & EF_MIPS_ARCH)
{
- case E_MIPS_ARCH_1:
+ case EF_MIPS_ARCH_1:
ef_mips_arch = 1;
break;
- case E_MIPS_ARCH_2:
+ case EF_MIPS_ARCH_2:
ef_mips_arch = 2;
break;
- case E_MIPS_ARCH_3:
+ case EF_MIPS_ARCH_3:
ef_mips_arch = 3;
break;
- case E_MIPS_ARCH_4:
+ case EF_MIPS_ARCH_4:
ef_mips_arch = 4;
break;
default:
--
2.30.2
next prev parent reply other threads:[~2023-11-14 9:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-14 9:45 [PATCH 0/2] Change all " Ying Huang
2023-11-14 9:45 ` Ying Huang [this message]
2023-11-14 9:45 ` [PATCH 2/2] sim: mips: Change " Ying Huang
2023-11-14 11:43 ` [PATCH 0/2] Change all " Pedro Alves
2023-11-15 2:19 ` Ying Huang
2023-11-16 2:25 ` YunQiang Su
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20231114094535.434194-2-ying.huang@oss.cipunited.com \
--to=ying.huang@oss.cipunited.com \
--cc=gdb-patches@sourceware.org \
--cc=yunqiang.su@oss.cipunited.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox