-- Added a M68K exception catch check in the Alpine tab settings
-- Added a specific breakpoint for the M68K bus error exception
21) Project has switched to libdwarf 20210305 library 64bits for VS 2017
+22) Breakpoint list window is now refreshed after a new breakpoint is set
Release 4a (15th August 2019)
-----------------------------
// Who When What
// --- ---------- -----------------------------------------------------------
// JPM 10/19/2018 Created this file
+// JPM March/2021 Breakpoint list window refresh
//
// STILL TO DO:
setLayout(layout);
connect(add, SIGNAL(clicked()), this, SLOT(AddBreakpointAddress()));
+ connect(address, SIGNAL(cursorPositionChanged(int, int)), this, SLOT(SelectBreakpointAddress()));
}
}
+//
+void NewFnctBreakpointWindow::SetFnctBreakpointWin(BreakpointsWindow* BpW)
+{
+ BPWin = BpW;
+}
+
+
+void NewFnctBreakpointWindow::SelectBreakpointAddress(void)
+{
+ address->setStyleSheet("color: black");
+}
+
+
// Add a breakpoint to the address
// Address can be an hexa, decimal or a symbol name
void NewFnctBreakpointWindow::AddBreakpointAddress(void)
S_BrkInfo Brk;
memset(&Brk, 0, sizeof(Brk));
- QPalette p = address->palette();
newAddress = address->text();
if ((len = newAddress.size()))
Brk.Adr = adr;
// Add the breakpoint
- if (m68k_brk_add(&Brk))
+ if (!m68k_brk_add(&Brk))
{
- p.setColor(QPalette::Text, Qt::black);
+ address->setStyleSheet("color: green");
}
else
{
- p.setColor(QPalette::Text, Qt::darkYellow);
+ address->setText("");
}
}
else
{
// Address is not valid
- p.setColor(QPalette::Text, Qt::red);
+ address->setStyleSheet("color: red");
}
- address->setPalette(p);
+ // update the breakpoint functions window
+ BPWin->RefreshContents();
}
}
+
+
+//
+NewFnctBreakpointWindow::~NewFnctBreakpointWindow()
+{
+}
#include <QtWidgets/QtWidgets>
#include <stdint.h>
+#include "debugger/BreakpointsWin.h"
class NewFnctBreakpointWindow: public QWidget
{
public:
NewFnctBreakpointWindow(QWidget * parent = 0);
+ void SetFnctBreakpointWin(BreakpointsWindow* BpW);
+ ~NewFnctBreakpointWindow();
public slots:
protected slots:
void AddBreakpointAddress(void);
+ void SelectBreakpointAddress(void);
private:
QVBoxLayout *layout;
QLineEdit *address;
QPushButton *add;
+ BreakpointsWindow* BPWin;
};
#endif // __NEWFNCTBREAKPOINTWIN_H__