Brian Knudson

Results 6 comments of Brian Knudson

Use ui context to get more information regarding the selection.

The solution is to expose the m_SelectionStartPos in the Python API.

current_il_instructions does not work properly in some cases. In order to reproduce: 1. Open the attached binary (httpd) 2. Go to function sub_18fe8 3. Highlight the HLIL lines shown in...

Also, if you output the following in the Python console, you should see the incorrect value that is taken from getCurrentILInstructionIndex() ``` >>> current_ui_action_context.instrIndex 18446744073709551615 ```

It would appear that getCurrentILInstructionIndex() is invalid in some cases for unknown reasons. If you highlight just 0x1906c, current_ui_action_context.instrIndex is 18446744073709551615.

Actually, what we would really like to have is something along the lines of: View.getCurrentLineNumber() and View.getSelectionStartLineNumber() This will allow us to capture what we need.