Resolve register names, print memory piece size information.
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
#include "FunctionInstance.h"
|
#include "FunctionInstance.h"
|
||||||
#include "GUISettingsUtils.h"
|
#include "GUISettingsUtils.h"
|
||||||
#include "MessageCodes.h"
|
#include "MessageCodes.h"
|
||||||
|
#include "Register.h"
|
||||||
#include "SettingsMenu.h"
|
#include "SettingsMenu.h"
|
||||||
#include "StackFrame.h"
|
#include "StackFrame.h"
|
||||||
#include "StackFrameValues.h"
|
#include "StackFrameValues.h"
|
||||||
@@ -1183,13 +1184,17 @@ VariablesView::VariableTableModel::GetToolTipForTablePath(
|
|||||||
BString pieceData;
|
BString pieceData;
|
||||||
switch (piece.type) {
|
switch (piece.type) {
|
||||||
case VALUE_PIECE_LOCATION_MEMORY:
|
case VALUE_PIECE_LOCATION_MEMORY:
|
||||||
pieceData.SetToFormat("\n\t(%ld): Address: 0x%llx",
|
pieceData.SetToFormat("\n\t(%ld): Address: 0x%llx, Size: "
|
||||||
i, piece.address);
|
"%lld bytes", i, piece.address, piece.size);
|
||||||
break;
|
break;
|
||||||
case VALUE_PIECE_LOCATION_REGISTER:
|
case VALUE_PIECE_LOCATION_REGISTER:
|
||||||
pieceData.SetToFormat("\n\t(%ld): Register (%lu)",
|
{
|
||||||
i, piece.reg);
|
Architecture* architecture = fThread->GetTeam()->GetArchitecture();
|
||||||
|
pieceData.SetToFormat("\n\t(%ld): Register (%s)",
|
||||||
|
i, architecture->Registers()[piece.reg].Name());
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user