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/objects.py | |
parent | Add subcommand (diff) | |
download | rtems-tools-7a415d4e43de67e0eabcca3a1375c4e530f37a07.tar.bz2 |
Catch empty task names,
- All the tasks do not have a name.
Diffstat (limited to 'tools/gdb/python/objects.py')
-rw-r--r-- | tools/gdb/python/objects.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tools/gdb/python/objects.py b/tools/gdb/python/objects.py index 58c2730..f4ae5e1 100644 --- a/tools/gdb/python/objects.py +++ b/tools/gdb/python/objects.py @@ -253,4 +253,11 @@ class control: def name(self): is_string = information.is_string(self._id.api(), self._id._class()) - return str(name(self.object['name'], is_string))
\ No newline at end of file + val = str(name(self.object['name'],is_string)) + + # Normal comaprision is a bit tricky with quotes + # 0 '\000' in hex == '3020275c30303027' + if val.encode('hex') == '3020275c30303027': + val = "" + + return val
\ No newline at end of file |