diff options
author | Dhananjay Balan <mb.dhananjay@gmail.com> | 2013-08-24 20:26:06 +0530 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-08-25 09:52:41 +1000 |
commit | 7a415d4e43de67e0eabcca3a1375c4e530f37a07 (patch) | |
tree | ec23de4245f303b20e3713d006ba91397981ea74 /tools/gdb/python/threads.py | |
parent | a245635a2e3c7b9ef5ebfc480b6115544c3d4340 (diff) |
Catch empty task names,
- All the tasks do not have a name.
Diffstat (limited to '')
-rw-r--r-- | tools/gdb/python/threads.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/gdb/python/threads.py b/tools/gdb/python/threads.py index 77c7efa..7098481 100644 --- a/tools/gdb/python/threads.py +++ b/tools/gdb/python/threads.py @@ -6,7 +6,6 @@ # import gdb - import chains import objects @@ -134,7 +133,10 @@ class control: return self.object.id() def name(self): - return self.object.name() + val = self.object.name() + if val == "": + val = '*' + return val def current_state(self): return state(self.ctrl['current_state']).to_string() |