From f30de55f1830757d14e1c9502f60878223d3bdd9 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 2 Nov 2016 01:44:55 -0700 Subject: [PATCH] SCP: Fix help to only display breakpoint help for the proper device or CPU --- scp.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/scp.c b/scp.c index f5fe4a9d..ee1e7ead 100644 --- a/scp.c +++ b/scp.c @@ -2440,7 +2440,7 @@ BRKTYPTAB *brkt = dptr->brk_types; char gbuf[CBUFSIZE]; if (sim_brk_types == 0) { - if (!silent) { + if ((dptr != sim_dflt_dev) && (!silent)) { fprintf (st, "Breakpoints are not supported in the %s simulator\n", sim_name); if (dptr->help) dptr->help (st, dptr, NULL, 0, NULL); @@ -2450,14 +2450,16 @@ if (sim_brk_types == 0) { if (brkt == NULL) { int i; - if (sim_brk_types & ~sim_brk_dflt) { - fprintf (st, "%s supports the following breakpoint types:\n", sim_dname (dptr)); - for (i=0; i<26; i++) { - if (sim_brk_types & (1<