aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-08-20 17:32:23 +0200
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-08-20 17:32:23 +0200
commitddaf44a6df4f6abd3eebbb07b44dba55596ca33c (patch)
tree216dfbffa7e3e9bb5ce06dd4987c624b618d02f0
parent95cdb19691afd5133b75b65f6e88c19a59851f7b (diff)
downloadqtmips-ddaf44a6df4f6abd3eebbb07b44dba55596ca33c.tar.gz
qtmips-ddaf44a6df4f6abd3eebbb07b44dba55596ca33c.tar.bz2
qtmips-ddaf44a6df4f6abd3eebbb07b44dba55596ca33c.zip
Make program and memory window visible when address requested from symbol dialog.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
-rw-r--r--qtmips_gui/mainwindow.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qtmips_gui/mainwindow.cpp b/qtmips_gui/mainwindow.cpp
index a344fc6..c78deb8 100644
--- a/qtmips_gui/mainwindow.cpp
+++ b/qtmips_gui/mainwindow.cpp
@@ -389,8 +389,12 @@ void MainWindow::show_symbol_dialog(){
delete symnames;
connect(gotosyboldialog, SIGNAL(program_focus_addr(std::uint32_t)),
program, SIGNAL(focus_addr_with_save(std::uint32_t)));
+ connect(gotosyboldialog, SIGNAL(program_focus_addr(std::uint32_t)),
+ this, SLOT(show_program()));
connect(gotosyboldialog, SIGNAL(memory_focus_addr(std::uint32_t)),
memory, SIGNAL(focus_addr(std::uint32_t)));
+ connect(gotosyboldialog, SIGNAL(memory_focus_addr(std::uint32_t)),
+ this, SLOT(show_memory()));
connect(gotosyboldialog, SIGNAL(obtain_value_for_name(std::uint32_t&,QString)),
machine->symbol_table(), SLOT(name_to_value(std::uint32_t&,QString)));
gotosyboldialog->setAttribute(Qt::WA_DeleteOnClose);