Add enum for mips breakpoint kinds
authorYao Qi <yao.qi@linaro.org>
Thu, 3 Nov 2016 14:35:13 +0000 (14:35 +0000)
committerYao Qi <yao.qi@linaro.org>
Thu, 3 Nov 2016 14:35:13 +0000 (14:35 +0000)
commit44f1c4d7b0160a51ecf7fe1af42416f1d2a71356
tree4558461fea9c59ecd26a82212206db5affe52234
parent598cc9dc84aeaa66e4a77efa9dc8ff03d5532620
Add enum for mips breakpoint kinds

This patch adds an enum mips_breakpoint_kind to avoid using magic
numbers as much as possible.

gdb:

2016-11-03  Yao Qi  <yao.qi@linaro.org>

* mips-tdep.c (mips_breakpoint_kind): New enum.
(mips_breakpoint_from_pc): Use it.
(mips_remote_breakpoint_from_pc): Likewise.
gdb/ChangeLog
gdb/mips-tdep.c