aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/main.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-10-02 18:19:17 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-10-02 18:19:17 +0000
commit83d96c6e3ef740fa40558b4a12bfa832838fcc8e (patch)
treeb1c803117e0de74519082309450efb600f3a5a37 /sim/ppc/main.c
parent3d7c42c988b599c12302a1d5786be79b7097248e (diff)
downloadgdb-83d96c6e3ef740fa40558b4a12bfa832838fcc8e.zip
gdb-83d96c6e3ef740fa40558b4a12bfa832838fcc8e.tar.gz
gdb-83d96c6e3ef740fa40558b4a12bfa832838fcc8e.tar.bz2
Add support to count the number of instructions issued.
Diffstat (limited to 'sim/ppc/main.c')
-rw-r--r--sim/ppc/main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sim/ppc/main.c b/sim/ppc/main.c
index 31c85e0..5ce3a0d 100644
--- a/sim/ppc/main.c
+++ b/sim/ppc/main.c
@@ -81,10 +81,11 @@ main(int argc, char **argv)
psim_status status;
int letter;
int i;
+ int print_info = 0;
/* check for arguments -- note sim_calls.c also contains argument processing
code for the simulator linked within gdb. */
- while ((letter = getopt (argc, argv, "acCipst")) != EOF)
+ while ((letter = getopt (argc, argv, "acCiIpst")) != EOF)
{
switch (letter) {
case 'a':
@@ -106,6 +107,9 @@ main(int argc, char **argv)
case 'i':
trace[trace_icu_device] = 1;
break;
+ case 'I':
+ print_info = 1;
+ break;
case 't':
trace[trace_device_tree] = 1;
break;
@@ -133,6 +137,9 @@ main(int argc, char **argv)
psim_run(system);
+ if (print_info)
+ psim_print_info (system, 1);
+
/* why did we stop */
status = psim_get_status(system);
switch (status.reason) {