+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.
#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
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;
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);
{
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