You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Select any file. Answer OK or Yes to all questions (if any).
Click anywhere inside the input file in the IDA View-A window.
Start decompilation.
Right after the decompilation is started, click inside the Output window.
Behavior
After the decompilation finishes, its output is shown in a window right next to the Output window:
Expected behavior
The decompilation output should be shown in a window right next to the IDA View-A window, which is where it opens when skipping step 5 above. That is, it should appear in the usual place.
Rewrite to IDA SDK 7.0 did not help. This is still happening.
I tried to solve it, but I did not succeed. I tried to play with different WOPN_ combinations, different parent widgets for create_custom_viewer(), and looked for related functionality in kernwin.hpp, but nothing helped.
This issue is even worse I realized. Weird RetDec window jumping is also happening when function renaming action happens. The window gets docked to the right of the current ASM output window. I played around with set_dock_pos(), get_current_widget(), and get_current_viewer(), but so far no luck.
Getting a get_current_widget() when decompilation is triggered and activate_widget() it before display_widget() of decompilation result works, but the problem is if the widget that was taken is closed in the meantime. That will cause segfault.
Simple solution is to use jumpto(decompiled_function->start_ea) before showing the function. This should be always safe and it should take care of all the problems I can think of at the moment. The only downside is that we are changing position in IDA view without users requesting it. But it is probably not a big problem.
fengjixuchui
added a commit
to fengjixuchui/retdec-idaplugin
that referenced
this issue
Oct 8, 2019
Steps to reproduce
IDA View-A
window.Output window
.Behavior
After the decompilation finishes, its output is shown in a window right next to the
Output window
:Expected behavior
The decompilation output should be shown in a window right next to the
IDA View-A
window, which is where it opens when skipping step 5 above. That is, it should appear in the usual place.Configuration
master
)The text was updated successfully, but these errors were encountered: