* gdb-if.c (sim_do_command): Add a "sim verbose noisy" command.
This commit is contained in:
parent
9d82ec3801
commit
12cb73884e
2 changed files with 14 additions and 1 deletions
|
@ -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>
|
2010-04-14 Mike Frysinger <vapier@gentoo.org>
|
||||||
|
|
||||||
* gdb-if.c (sim_write): Add const to buf arg.
|
* gdb-if.c (sim_write): Add const to buf arg.
|
||||||
|
|
|
@ -36,6 +36,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
||||||
#include "load.h"
|
#include "load.h"
|
||||||
#include "syscalls.h"
|
#include "syscalls.h"
|
||||||
#include "err.h"
|
#include "err.h"
|
||||||
|
#include "trace.h"
|
||||||
|
|
||||||
/* Ideally, we'd wrap up all the minisim's data structures in an
|
/* Ideally, we'd wrap up all the minisim's data structures in an
|
||||||
object and pass that around. However, neither GDB nor run needs
|
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:
|
case sim_rx_fpsw_regnum:
|
||||||
size = sizeof (regs.r_fpsw);
|
size = sizeof (regs.r_fpsw);
|
||||||
break;
|
break;
|
||||||
|
case sim_rx_acc_regnum:
|
||||||
|
size = sizeof (regs.r_acc);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
size = 0;
|
size = 0;
|
||||||
break;
|
break;
|
||||||
|
@ -503,6 +507,9 @@ sim_fetch_register (SIM_DESC sd, int regno, unsigned char *buf, int length)
|
||||||
case sim_rx_fpsw_regnum:
|
case sim_rx_fpsw_regnum:
|
||||||
val = get_reg (fpsw);
|
val = get_reg (fpsw);
|
||||||
break;
|
break;
|
||||||
|
case sim_rx_acc_regnum:
|
||||||
|
val = ((DI) get_reg (acchi) << 32) | get_reg (acclo);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
fprintf (stderr, "rx minisim: unrecognized register number: %d\n",
|
fprintf (stderr, "rx minisim: unrecognized register number: %d\n",
|
||||||
regno);
|
regno);
|
||||||
|
@ -829,10 +836,12 @@ sim_do_command (SIM_DESC sd, char *cmd)
|
||||||
{
|
{
|
||||||
if (strcmp (args, "on") == 0)
|
if (strcmp (args, "on") == 0)
|
||||||
verbose = 1;
|
verbose = 1;
|
||||||
|
else if (strcmp (args, "noisy") == 0)
|
||||||
|
verbose = 2;
|
||||||
else if (strcmp (args, "off") == 0)
|
else if (strcmp (args, "off") == 0)
|
||||||
verbose = 0;
|
verbose = 0;
|
||||||
else
|
else
|
||||||
printf ("The 'sim verbose' command expects 'on' or 'off'"
|
printf ("The 'sim verbose' command expects 'on', 'noisy', or 'off'"
|
||||||
" as an argument.\n");
|
" as an argument.\n");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue