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
variables = list(function.getLocalVariables())
Say the output I get is:
[[B b@Stack[-0x10]:4], [int ptr@Stack[-0xc]:4]]
Here, I know that the object of a structure B (b) is being stored at -0x10. Now, lets assume that the structure is defined as follows:
struct B
{
int x;
int* y;
};
I am using both x and *y in my function. I get the values of the these objects like b.x and b.y, if I observe the labeled instructions. Is there any way of getting where these are being stored on the stack, something like (this is just an example):
This discussion was converted from issue #798 on March 21, 2023 14:34.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I can get the function variables using:
variables = list(function.getStackFrame().getStackVariables())or
variables = list(function.getLocalVariables())Say the output I get is:
[[B b@Stack[-0x10]:4], [int ptr@Stack[-0xc]:4]]Here, I know that the object of a structure B (b) is being stored at
-0x10. Now, lets assume that the structure is defined as follows:I am using both x and *y in my function. I get the values of the these objects like b.x and b.y, if I observe the labeled instructions. Is there any way of getting where these are being stored on the stack, something like (this is just an example):
[[B b.x@Stack[-0x20]:4] [B b.*y@Stack[-0x18]:8] [int ptr@Stack[-0x8]:4]]Beta Was this translation helpful? Give feedback.
All reactions