From 3a1a81c3ddd8340432ecd2687d3a25195cc97d40 Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 6 Jun 2025 16:22:48 -0600 Subject: Add UI action and API to control switch recovery in HLIL --- ui/linearview.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui/linearview.h') diff --git a/ui/linearview.h b/ui/linearview.h index eea40d7f..9ba28407 100644 --- a/ui/linearview.h +++ b/ui/linearview.h @@ -322,6 +322,8 @@ class BINARYNINJAUIAPI LinearView : public QAbstractScrollArea, public View, pub bool getCurrentConditionInverted(); std::optional getCurrentEarlyReturnAddress(); BNEarlyReturn getCurrentEarlyReturn(); + std::optional getCurrentSwitchRecoveryAddress(); + BNSwitchRecovery getCurrentSwitchRecovery(); void setDataButtonVisible(bool visible); std::optional> getMergeVariablesAtCurrentLocation(); @@ -415,6 +417,7 @@ private Q_SLOTS: void setCurrentExprFolding(BNExprFolding folding); void toggleConditionInverted(); void setCurrentEarlyReturn(BNEarlyReturn earlyReturn); + void setCurrentSwitchRecovery(BNSwitchRecovery recovery); Q_SIGNALS: void notifyResizeEvent(int width, int height); -- cgit v1.3.1