From 5a03a07e1b90e1423118b50214244e62ba99acec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Sun, 11 Nov 2018 11:56:13 +0100 Subject: [PATCH] Simplify SidebarWidget::setFcnName() to not use S --- src/widgets/SidebarWidget.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/widgets/SidebarWidget.cpp b/src/widgets/SidebarWidget.cpp index dee80b29..6f15bf71 100644 --- a/src/widgets/SidebarWidget.cpp +++ b/src/widgets/SidebarWidget.cpp @@ -207,18 +207,7 @@ void SidebarWidget::fillOffsetInfo(QString off) void SidebarWidget::setFcnName(RVA addr) { - RAnalFunction *fcn; - QString addr_string; - - fcn = Core()->functionAt(addr); - if (fcn) { - QString segment = Core()->cmd("S. @ " + QString::number(addr)).split(" ").last(); - addr_string = segment.trimmed() + ":" + fcn->name; - } else { - addr_string = Core()->cmdFunctionAt(addr); - } - - ui->fcnNameEdit->setText(addr_string); + ui->fcnNameEdit->setText(Core()->cmdFunctionAt(addr)); } void SidebarWidget::setScrollMode()