Remove v850_dbtrap_breakpoint_from_pc
authorYao Qi <yao.qi@linaro.org>
Mon, 10 Oct 2016 09:28:30 +0000 (10:28 +0100)
committerYao Qi <yao.qi@linaro.org>
Mon, 10 Oct 2016 09:28:30 +0000 (10:28 +0100)
commitff12a6593a1675aa9ba5340aa2984af19cf8966c
treedb3bb8e18a35d55c009349436034753c3ecc9b89
parent7b3860278cb1543774294cb07c38c15b813bc70a
Remove v850_dbtrap_breakpoint_from_pc

v850 has two functions to install to gdbarch_breakpoint_from_pc,
and it selects one according to info.bfd_arch_info->mach.  However,
we can select the kind/length of breakpoint instruction inside
v850_breakpoint_from_pc by gdbarch_bfd_arch_info (gdbarch)->mach.
This patch is to do that, and remove v850_dbtrap_breakpoint_from_pc.

gdb:

2016-08-30  Yao Qi  <yao.qi@linaro.org>

* v850-tdep.c (v850_breakpoint_from_pc): Use the right
breakpoint instruction.
(v850_dbtrap_breakpoint_from_pc): Remove.
(v850_gdbarch_init): Update.
gdb/ChangeLog
gdb/v850-tdep.c