debugger: fix off-by-one in address display in symbols view

Change-Id: If7857d728be059c16c2d0458dd8ebf0a49cf544c
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2012-06-13 13:13:26 +02:00
committed by hjk
parent e85886d638
commit 30ab7ea087

View File

@@ -3326,7 +3326,7 @@ void GdbEngine::handleShowModuleSymbols(const GdbResponse &response)
if (posAddress == -1)
continue;
int posName = line.indexOf(" ", posAddress);
int lenAddress = posName - posAddress - 1;
int lenAddress = posName - posAddress;
int posSection = line.indexOf(" section ");
int lenName = 0;
int lenSection = 0;