mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 22:05:25 +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)
|
void SidebarWidget::setFcnName(RVA addr)
|
||||||
{
|
{
|
||||||
RAnalFunction *fcn;
|
ui->fcnNameEdit->setText(Core()->cmdFunctionAt(addr));
|
||||||
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void SidebarWidget::setScrollMode()
|
void SidebarWidget::setScrollMode()
|
||||||
|
Loading…
Reference in New Issue
Block a user