This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v7 1/4] gdb: Add OpenRISC or1k and or1knd target support


Stafford Horne <shorne@gmail.com> writes:

> diff --git a/gdb/features/or1k.xml b/gdb/features/or1k.xml
> new file mode 100644
> index 0000000..c138a02
> --- /dev/null
> +++ b/gdb/features/or1k.xml
> @@ -0,0 +1,12 @@
> +<?xml version="1.0"?>
> +<!-- Copyright (C) 2016 Free Software Foundation, Inc.

2017.

> +
> +  set_gdbarch_print_insn (gdbarch, print_insn_or1k);
> +

Don't need to set gdbarch_print_insn, so remove this line.  GDB will use
the default one, which selects the right disassembler in opcodes.

Otherwise, patch is good to me.

-- 
Yao (齐尧)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]