forked from qt-creator/qt-creator
debugger: implement gdb python dumper fuer std::array
Change-Id: I32d353ec332d39fa80fab9780a0b084156842666 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user