From e22964dd6b7b93601ca8f504cf8a07e98c165e98 Mon Sep 17 00:00:00 2001 From: Christoph Egger Date: Tue, 10 Mar 2015 12:28:19 +0100 Subject: [PATCH] Display blocks when appearing in different functions 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/Mainwindow.cxx b/src/gui/Mainwindow.cxx index 654dc16..ce16476 100644 --- a/src/gui/Mainwindow.cxx +++ b/src/gui/Mainwindow.cxx @@ -245,8 +245,9 @@ void Mainwindow::addFunction(Function* fun) { start_address = b.first; } + std::map _blocks; 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"); -- 2.39.5