Fixed entering address.

This commit is contained in:
Ernie Pasveer
2023-05-20 09:51:09 -05:00
parent 3d0ed7e7e7
commit cb64155ec8
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -160,6 +160,8 @@ void SeerMemoryVisualizerWidget::handleText (const QString& text) {
QString value_text = Seer::parseFirst(text, "value=", '"', '"', false);
QString address = "";
qDebug() << value_text;
// Look for an address in the value.
if (address == "") {
QRegularExpression re("0[xX][0-9a-fA-F]+");
@@ -172,7 +174,7 @@ void SeerMemoryVisualizerWidget::handleText (const QString& text) {
// Look for a number in the value.
if (address == "") {
QRegularExpression re("0[xX][0-9a-fA-F]+");
QRegularExpression re("[0-9]+");
QRegularExpressionMatch match = re.match(value_text);
if (match.hasMatch()) {
+2 -2
View File
@@ -1,6 +1,6 @@
helloada
helloada.ali
helloada.o
*.ali
*.o
b~helloada.*
*.seer
core.*