]> git.siccegge.de Git - frida/frida.git/commitdiff
Display blocks when appearing in different functions
authorChristoph Egger <Christoph.Egger@fau.de>
Tue, 10 Mar 2015 11:28:19 +0000 (12:28 +0100)
committerChristoph Egger <Christoph.Egger@fau.de>
Tue, 10 Mar 2015 11:28:19 +0000 (12:28 +0100)
If some block is part of multiple functions now include it in all the
functions and not only in the first one

src/gui/Mainwindow.cxx

index 654dc16aafd6f7ad386b7840a15f155ba0b84531..ce16476dd9f00cc04a1c207c4dcc9af7ab2cf897 100644 (file)
@@ -245,8 +245,9 @@ void Mainwindow::addFunction(Function* fun) {
                        start_address = b.first;
        }
 
                        start_address = b.first;
        }
 
+       std::map<uint64_t, BasicBlockWidget*> _blocks;
        local__add_basic_block(block, this,
        local__add_basic_block(block, this,
-                              manager, blocks, scene, start_address, 100);
+                              manager, _blocks, scene, start_address, 100);
 
        QGraphicsView * view = new QGraphicsView(scene);
        w->addTab(view, "CFG");
 
        QGraphicsView * view = new QGraphicsView(scene);
        w->addTab(view, "CFG");