projects
/
riscv-tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix tests to work in multi-gdb mode.
[riscv-tests.git]
/
debug
/
targets.py
diff --git
a/debug/targets.py
b/debug/targets.py
index d09b5764edf51e7c2b922f6c70bf0ad8c83a42e5..624eb7106d9aa220387c128961dd163dc428b7b5 100644
(file)
--- a/
debug/targets.py
+++ b/
debug/targets.py
@@
-96,6
+96,8
@@
class Target(object):
self.openocd_config_path)
for i, hart in enumerate(self.harts):
hart.index = i
+ if not hasattr(hart, 'id'):
+ hart.id = i
if not hart.name:
hart.name = "%s-%d" % (self.name, i)
# Default link script to <name>.lds