Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 have a simple code:
I am using ghidra python api to get the variables used. Something like:
function.getStackFrame().getStackVariables()
But, buffer
buf
doesn't show up (it shows up in the ghidra gui, in the code disassembly section). Is there any way to get these using python api? My guess is that, as it is definedstatic
it doesn't show up.Edit:
I found that these variables are defined in the namespaces. So, in the case, buf is defined in
namespaces->main->buf
. I was able to get the namespace for the function -currentProgram.getSymbolTable().getNamespace(entrypoint)
, but was not able to find the variables.Beta Was this translation helpful? Give feedback.
All reactions