diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/rx-tdep.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 58c4b5e..979f239 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2017-04-13 Yao Qi <yao.qi@linaro.org> + * rx-tdep.c (rx_fpsw_type): Check tdep->rx_fpsw_type instead of + tdep->rx_psw_type. + +2017-04-13 Yao Qi <yao.qi@linaro.org> + * rl78-tdep.c (rl78_gdbarch_init): Use XCNEW instead of XNEW. * rx-tdep.c (rx_gdbarch_init): Likewise. diff --git a/gdb/rx-tdep.c b/gdb/rx-tdep.c index 1a3d103..83bb3ec 100644 --- a/gdb/rx-tdep.c +++ b/gdb/rx-tdep.c @@ -182,7 +182,7 @@ rx_fpsw_type (struct gdbarch *gdbarch) { struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); - if (tdep->rx_psw_type == NULL) + if (tdep->rx_fpsw_type == NULL) { tdep->rx_fpsw_type = arch_flags_type (gdbarch, "rx_fpsw_type", 4); append_flags_type_flag (tdep->rx_fpsw_type, 0, "RM0"); |