mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-21 20:36:09 +00:00
Revert changes in functionAt (#2941)
This commit is contained in:
parent
6345604172
commit
493ff68365
@ -1266,16 +1266,7 @@ RzAnalysisFunction *CutterCore::functionIn(ut64 addr)
|
||||
RzAnalysisFunction *CutterCore::functionAt(ut64 addr)
|
||||
{
|
||||
CORE_LOCK();
|
||||
RzAnalysisFunction *fcn = rz_analysis_get_function_at(core->analysis, addr);
|
||||
if (fcn) {
|
||||
return fcn;
|
||||
}
|
||||
RzList *list = rz_analysis_get_functions_in(core->analysis, addr);
|
||||
if (rz_list_length(list) == 1) {
|
||||
fcn = static_cast<RzAnalysisFunction *>(rz_list_first(list));
|
||||
}
|
||||
rz_list_free(list);
|
||||
return fcn;
|
||||
return rz_analysis_get_function_at(core->analysis, addr);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -84,7 +84,7 @@ QString GraphWidget::getWidgetType()
|
||||
|
||||
void GraphWidget::prepareHeader()
|
||||
{
|
||||
RzAnalysisFunction *f = Core()->functionAt(seekable->getOffset());
|
||||
RzAnalysisFunction *f = Core()->functionIn(seekable->getOffset());
|
||||
char *str = f ? rz_analysis_function_get_signature(f) : nullptr;
|
||||
if (!str) {
|
||||
header->hide();
|
||||
|
Loading…
Reference in New Issue
Block a user