mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 03:46:11 +00:00
Simplify SidebarWidget::setFcnName() to not use S
This commit is contained in:
parent
87026dfe28
commit
5a03a07e1b
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user