debugger: implement gdb python dumper fuer std::array

Change-Id: I32d353ec332d39fa80fab9780a0b084156842666
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-02-04 00:59:31 +01:00
parent e15912d7fe
commit 1731911c40
3 changed files with 45 additions and 3 deletions

View File

@@ -278,7 +278,12 @@ def numericTemplateArgument(type, position):
except RuntimeError, error:
# ": No type named 30."
msg = str(error)
return int(msg[14:-1])
msg = msg[14:-1]
# gdb at least until 7.4 produces for std::array<int, 4u>
# for template_argument(1): RuntimeError: No type named 4u.
if msg[-1] == 'u':
msg = msg[0:-1]
return int(msg)
def showException(msg, exType, exValue, exTraceback):