Attn: Default special attention changed to TI
When a special attention occurs the attention handler uses the get TI
info chipop to determine whether to service either a TI or a
breakipoint. If this chipop is not available or is not functional the
attention handler will assume a TI has occurred. With this new behavior
an additional attention handler configuration option was added
(--defaultbreakpoint) which will allow breakpoints to be handled on
systems where the get TI info chipop is not available or not functional.
Signed-off-by: Ben Tyner <ben.tyner@ibm.com>
Change-Id: I1b386b5daf06021acd6567fdad39c21903e2ac3b
diff --git a/cli.cpp b/cli.cpp
index bc8b23d..d68e041 100644
--- a/cli.cpp
+++ b/cli.cpp
@@ -89,5 +89,14 @@
o_config->setFlag(attn::enBreakpoints);
}
}
+
+ // This option determines whether we service a TI or breakpoint in the
+ // case where we cannot retrieve the TI info succesfully. The default
+ // setting of this is "clear" meaning handle TI by default. This
+ // flag is not affected by the set/clear all command line option.
+ if (true == getCliOption(i_begin, i_end, "--defaultbreakpoint"))
+ {
+ o_config->setFlag(attn::dfltBreakpoint);
+ }
}
}