aboutsummaryrefslogtreecommitdiff
path: root/opcodes
diff options
context:
space:
mode:
authorWANG Xuerui <git@xen0n.name>2023-06-30 00:34:59 +0800
committerliuzhensong <liuzhensong@loongson.cn>2023-06-30 10:17:58 +0800
commit22be1ca342fb4273fb1b9de2189612398ceff579 (patch)
tree7e3ac46263a0ee5412d0c97d6a5c7c47211e745e /opcodes
parent17f9439038257b1de0c130a416a9a7645c653cb0 (diff)
downloadgdb-22be1ca342fb4273fb1b9de2189612398ceff579.zip
gdb-22be1ca342fb4273fb1b9de2189612398ceff579.tar.gz
gdb-22be1ca342fb4273fb1b9de2189612398ceff579.tar.bz2
opcodes/loongarch: remove unused code
Remove some unused declarations and code. include/ChangeLog: * opcode/loongarch.h: Remove unused declarations. opcodes/ChangeLog: * loongarch-dis.c (loongarch_parse_dis_options): Remove. (my_print_address_func): Likewise. (loongarch_disassemble_one): Likewise. Signed-off-by: WANG Xuerui <git@xen0n.name>
Diffstat (limited to 'opcodes')
-rw-r--r--opcodes/loongarch-dis.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/opcodes/loongarch-dis.c b/opcodes/loongarch-dis.c
index 3a08da1..116b666 100644
--- a/opcodes/loongarch-dis.c
+++ b/opcodes/loongarch-dis.c
@@ -322,38 +322,3 @@ with the -M switch (multiple options should be separated by commas):\n"));
numeric Print numeric register names, rather than ABI names.\n"));
fprintf (stream, _("\n"));
}
-
-int
-loongarch_parse_dis_options (const char *opts_in)
-{
- return parse_loongarch_dis_options (opts_in);
-}
-
-static void
-my_print_address_func (bfd_vma addr, struct disassemble_info *dinfo)
-{
- dinfo->fprintf_func (dinfo->stream, "0x%llx", (long long) addr);
-}
-
-void
-loongarch_disassemble_one (int64_t pc, insn_t insn,
- int (*fprintf_func) (void *stream,
- const char *format, ...),
- void *stream)
-{
- static struct disassemble_info my_disinfo =
- {
- .print_address_func = my_print_address_func,
- };
- static int not_init_yet = 1;
- if (not_init_yet)
- {
- loongarch_parse_dis_options (NULL);
- not_init_yet = 0;
- }
-
- my_disinfo.fprintf_func = fprintf_func;
- my_disinfo.stream = stream;
- my_disinfo.target = pc;
- disassemble_one (insn, &my_disinfo);
-}