diff options
author | Yao Qi <yao.qi@linaro.org> | 2017-04-13 08:29:44 +0100 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2017-04-13 08:29:44 +0100 |
commit | ad3d022a77afdbaba4bb36ff4aa99be52892de42 (patch) | |
tree | 1c99e2ac115766ad750f7415a10353efc6e35c15 | |
parent | e6ddc3bfedb4665c9d4baa2c85037af25167cdf3 (diff) | |
download | gdb-ad3d022a77afdbaba4bb36ff4aa99be52892de42.zip gdb-ad3d022a77afdbaba4bb36ff4aa99be52892de42.tar.gz gdb-ad3d022a77afdbaba4bb36ff4aa99be52892de42.tar.bz2 |
Fix a typo in rx_fpsw_type
gdb:
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.
-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"); |