aboutsummaryrefslogtreecommitdiff
path: root/sim/rx
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2010-05-28 17:10:32 +0000
committerKevin Buettner <kevinb@redhat.com>2010-05-28 17:10:32 +0000
commit12cb73884e6508867721011858d4c3ce791496e8 (patch)
treee77c90e61f7bd0e36f6899fa53634f61504bc7e1 /sim/rx
parent9d82ec38013ba007963adfae2de0d1a88f965009 (diff)
downloadgdb-12cb73884e6508867721011858d4c3ce791496e8.zip
gdb-12cb73884e6508867721011858d4c3ce791496e8.tar.gz
gdb-12cb73884e6508867721011858d4c3ce791496e8.tar.bz2
* gdb-if.c (sim_do_command): Add a "sim verbose noisy" command.
Diffstat (limited to 'sim/rx')
-rw-r--r--sim/rx/ChangeLog4
-rw-r--r--sim/rx/gdb-if.c11
2 files changed, 14 insertions, 1 deletions
diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog
index 5f5ee20..8e60f52 100644
--- a/sim/rx/ChangeLog
+++ b/sim/rx/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-28 Kevin Buettner <kevinb@redhat.com>
+
+ * gdb-if.c (sim_do_command): Add a "sim verbose noisy" command.
+
2010-04-14 Mike Frysinger <vapier@gentoo.org>
* gdb-if.c (sim_write): Add const to buf arg.
diff --git a/sim/rx/gdb-if.c b/sim/rx/gdb-if.c
index 873817f..b92c01d 100644
--- a/sim/rx/gdb-if.c
+++ b/sim/rx/gdb-if.c
@@ -36,6 +36,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "load.h"
#include "syscalls.h"
#include "err.h"
+#include "trace.h"
/* Ideally, we'd wrap up all the minisim's data structures in an
object and pass that around. However, neither GDB nor run needs
@@ -403,6 +404,9 @@ reg_size (enum sim_rx_regnum regno)
case sim_rx_fpsw_regnum:
size = sizeof (regs.r_fpsw);
break;
+ case sim_rx_acc_regnum:
+ size = sizeof (regs.r_acc);
+ break;
default:
size = 0;
break;
@@ -503,6 +507,9 @@ sim_fetch_register (SIM_DESC sd, int regno, unsigned char *buf, int length)
case sim_rx_fpsw_regnum:
val = get_reg (fpsw);
break;
+ case sim_rx_acc_regnum:
+ val = ((DI) get_reg (acchi) << 32) | get_reg (acclo);
+ break;
default:
fprintf (stderr, "rx minisim: unrecognized register number: %d\n",
regno);
@@ -829,10 +836,12 @@ sim_do_command (SIM_DESC sd, char *cmd)
{
if (strcmp (args, "on") == 0)
verbose = 1;
+ else if (strcmp (args, "noisy") == 0)
+ verbose = 2;
else if (strcmp (args, "off") == 0)
verbose = 0;
else
- printf ("The 'sim verbose' command expects 'on' or 'off'"
+ printf ("The 'sim verbose' command expects 'on', 'noisy', or 'off'"
" as an argument.\n");
}
else