summaryrefslogtreecommitdiffstats
path: root/libpdbg/htm.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpdbg/htm.c')
-rw-r--r--libpdbg/htm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libpdbg/htm.c b/libpdbg/htm.c
index 33fe64c..692b4e0 100644
--- a/libpdbg/htm.c
+++ b/libpdbg/htm.c
@@ -168,8 +168,10 @@ struct htm_status {
static struct htm *check_and_convert(struct pdbg_target *target)
{
- if (strcmp(target->class, "nhtm"))
- return NULL;
+
+ if (!pdbg_target_is_class(target, "nhtm") &&
+ !pdbg_target_is_class(target, "chtm"))
+ return NULL;
return target_to_htm(target);
}
OpenPOWER on IntegriCloud