diff options
Diffstat (limited to 'src/target/target.h')
-rw-r--r-- | src/target/target.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/target/target.h b/src/target/target.h index 61bc68ae..15003c65 100644 --- a/src/target/target.h +++ b/src/target/target.h @@ -159,6 +159,12 @@ struct target long long halt_issued_time; /* Note time when halt was issued */ }; +/** Returns the instance-specific name of the specified target. */ +static inline const char *target_name(struct target *target) +{ + return target->cmd_name; +} + enum target_event { /* LD historical names |