This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit/rx sim] Add a "sim noisy verbose" command
- From: Kevin Buettner <kevinb at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 28 May 2010 10:20:12 -0700
- Subject: [commit/rx sim] Add a "sim noisy verbose" command
I've just committed the patch below.
As noted in the ChangeLog entry, it adds a "sim verbose noisy" command.
This command turns on all internal diagnostics for the rx simulator.
Kevin
* gdb-if.c (sim_do_command): Add a "sim verbose noisy" command.
Index: sim/rx/gdb-if.c
===================================================================
RCS file: /cvs/src/src/sim/rx/gdb-if.c,v
retrieving revision 1.3
diff -u -p -r1.3 gdb-if.c
--- sim/rx/gdb-if.c 14 Apr 2010 07:38:05 -0000 1.3
+++ sim/rx/gdb-if.c 28 May 2010 17:09:42 -0000
@@ -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