panda icon indicating copy to clipboard operation
panda copied to clipboard

How to expose a qemu function to PyPANDA?

Open AndrewFasano opened this issue 3 years ago • 0 comments

I'd like to expose a function defined in panda/target/i386/cpu.h to pypanda. On a branch, I've done this by manually changing panda_datatypes_X86_64.h (see 596c0cb6fde1406fc83059d93be8002edef2a07e) and it works but I'm sure that's not right.

I know for the files in panda/include/panda and panda/panda/plugins we do this through the PYPANDA_NEEDS_THIS markers in header files, but I'm not sure how to best do it for core qemu headers, in particular with one that's architecture specific.

It's been a while since I've made such a change and I can't find any docs so I figured I'd start a public thread to ask for help and maybe I'll answer my own question later.

AndrewFasano avatar Jan 23 '22 15:01 AndrewFasano