Date: | Tue, 22 Aug 2017 14:50:04 +0200 |
---|---|
From: | Thomas Dullien <thomasdullien@xxxxxxxxxx> |
Subject: | Re: [DynInst_API:] where to find the code for handling switch() statements? |
Hey there, I gave the fork a try, but it does not seem to have handled the switch I encounter either. The construct looks as follows: .text:5A6E59FA         push  Âebp .text:5A6E59FB         mov   ebp, esp .text:5A6E59FD         sub   esp, 18h .text:5A6E5A00         imul  Âeax, [ebp+arg_4], 28h .text:5A6E5A04         push  Âebx .text:5A6E5A05         mov   ebx, [ebp+arg_0] .text:5A6E5A08         push  Âesi .text:5A6E5A09         mov   esi, ecx .text:5A6E5A0B         mov   [ebp+var_8], 17D7840h .text:5A6E5A12         add   eax, ebx .text:5A6E5A14         mov   [ebp+var_14], esi .text:5A6E5A17         mov   [ebp+var_C], ebx .text:5A6E5A1A         mov   [ebp+var_18], eax .text:5A6E5A1D         push  Âedi .text:5A6E5A1E         cmp   ebx, eax .text:5A6E5A20         jnb   loc_5A6E608A .text:5A6E5A26         lea   eax, [ebx+8] .text:5A6E5A29         mov   ecx, esi .text:5A6E5A2B         push  Âeax .text:5A6E5A2C         call  Â(..) .text:5A6E5A31         mov   edi, eax .text:5A6E5A33         lea   eax, [ebx+18h] .text:5A6E5A36         push  Âeax .text:5A6E5A37         call  Â(...) .text:5A6E5A3C         mov   ecx, eax .text:5A6E5A3E         mov   eax, [ebx] .text:5A6E5A40         cmp   eax, 36h    Â; switch 55 cases .text:5A6E5A43         ja   Âloc_5A6E6095  Â; jumptable 5A6E5A49 default case .text:5A6E5A49         jmp   ds:off_5A6E609A[eax*4] ; switch jump Any advice on where in the dyninst codebase I should go digging for the switch handling code? Cheers, Thomas On Tue, Aug 22, 2017 at 1:26 PM, Thomas Dullien <thomasdullien@xxxxxxxxxx> wrote:
|
[← Prev in Thread] | Current Thread | [Next in Thread→] |
---|---|---|
|
Previous by Date: | Re: [DynInst_API:] where to find the code for handling switch() statements?, Thomas Dullien |
---|---|
Next by Date: | Re: [DynInst_API:] where to find the code for handling switch() statements?, Xiaozhu Meng |
Previous by Thread: | Re: [DynInst_API:] where to find the code for handling switch() statements?, Thomas Dullien |
Next by Thread: | Re: [DynInst_API:] where to find the code for handling switch() statements?, Xiaozhu Meng |
Indexes: | [Date] [Thread] |