@@ -255,7 +255,7 @@ fail:
int run_htm(int optind, int argc, char *argv[])
{
- struct pdbg_target *target;
+ struct pdbg_target *target, *nhtm;
enum htm_type type;
struct pdbg_target *core_target = NULL;
int i, rc = 0;
@@ -322,6 +322,16 @@ int run_htm(int optind, int argc, char *argv[])
}
}
+ if (type == HTM_NEST) {
+ pdbg_for_each_class_target("pib", target) {
+ if (!target_selected(target))
+ continue;
+
+ pdbg_for_each_target("nhtm", target, nhtm)
+ target_select(nhtm);
+ }
+ }
+
optind++;
for (i = 0; i < ARRAY_SIZE(actions); i++) {
if (strcmp(argv[optind], actions[i].name) == 0) {
Without this, nest HTM commands target nothing. Signed-off-by: Michael Neuling <mikey@neuling.org> --- src/htm.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)