forked from qt-creator/qt-creator
Debugger: Made menu captions more explicit
This commit is contained in:
@@ -318,27 +318,25 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev)
|
|||||||
// Offer to open address pointed to or variable address.
|
// Offer to open address pointed to or variable address.
|
||||||
const bool createPointerActions = pointerValue && pointerValue != address;
|
const bool createPointerActions = pointerValue && pointerValue != address;
|
||||||
|
|
||||||
const QString openMemoryEditorFormat = tr("Open Memory Editor at 0x%1");
|
|
||||||
if (canShowMemory && address)
|
if (canShowMemory && address)
|
||||||
actOpenMemoryEditAtVariableAddress =
|
actOpenMemoryEditAtVariableAddress =
|
||||||
new QAction(openMemoryEditorFormat.arg(address, 0, 16), &menu);
|
new QAction(tr("Open Memory Editor at Object's Address (0x%1)").arg(address, 0, 16), &menu);
|
||||||
if (createPointerActions)
|
if (createPointerActions)
|
||||||
actOpenMemoryEditAtPointerValue =
|
actOpenMemoryEditAtPointerValue =
|
||||||
new QAction(openMemoryEditorFormat.arg(pointerValue, 0, 16), &menu);
|
new QAction(tr("Open Memory Editor at Referenced Address (0x%1)").arg(pointerValue, 0, 16), &menu);
|
||||||
menu.addSeparator();
|
menu.addSeparator();
|
||||||
|
|
||||||
QAction *actSetWatchPointAtVariableAddress = 0;
|
QAction *actSetWatchPointAtVariableAddress = 0;
|
||||||
QAction *actSetWatchPointAtPointerValue= 0;
|
QAction *actSetWatchPointAtPointerValue= 0;
|
||||||
const bool canSetWatchpoint = engineCapabilities & WatchpointCapability;
|
const bool canSetWatchpoint = engineCapabilities & WatchpointCapability;
|
||||||
if (canSetWatchpoint && address) {
|
if (canSetWatchpoint && address) {
|
||||||
const QString watchPointFormat = tr("Break on Changing Contents of 0x%1");
|
|
||||||
actSetWatchPointAtVariableAddress =
|
actSetWatchPointAtVariableAddress =
|
||||||
new QAction(watchPointFormat.arg(address, 0, 16), &menu);
|
new QAction(tr("Break on Changes at Object's Address (0x%1)").arg(address, 0, 16), &menu);
|
||||||
actSetWatchPointAtVariableAddress->setCheckable(true);
|
actSetWatchPointAtVariableAddress->setCheckable(true);
|
||||||
actSetWatchPointAtVariableAddress->setChecked(m_manager->breakHandler()->watchPointAt(address));
|
actSetWatchPointAtVariableAddress->setChecked(m_manager->breakHandler()->watchPointAt(address));
|
||||||
if (createPointerActions) {
|
if (createPointerActions) {
|
||||||
actSetWatchPointAtPointerValue =
|
actSetWatchPointAtPointerValue =
|
||||||
new QAction(watchPointFormat.arg(pointerValue, 0, 16), &menu);
|
new QAction(tr("Break on Changes at Referenced Address (0x%1)").arg(pointerValue, 0, 16), &menu);
|
||||||
actSetWatchPointAtPointerValue->setCheckable(true);
|
actSetWatchPointAtPointerValue->setCheckable(true);
|
||||||
actSetWatchPointAtPointerValue->setChecked(m_manager->breakHandler()->watchPointAt(pointerValue));
|
actSetWatchPointAtPointerValue->setChecked(m_manager->breakHandler()->watchPointAt(pointerValue));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user