Closed LittleSec closed 5 years ago
I'm able to reproduce the issue. The plugin-cpp feature is experimental and was not tested in the last update, sorry for this, I will check whether I can fix this.
Actually this seems to be an ancient work around that has to be reverted (revert commit f647ed966634c7e81da5ac6e2aee5239ea530768).
@LittleSec Can you please test the proposed patch in pr #7 and feeback.
@second-reality Can you reproduce the issue supposed to be fixed by commit f647ed9 which is reverted by this fix.
Thank you. It can work now. By the way, I want to code some plugins in qemu recently with cpp, but I have some questions and I want to ask you. I don't know if you are convenient. If yes, how can I contact you.
Hi Guillon,
indeed, this issue has probably been fixed with newer version of QEMU. By reverting commit f647ed9, current issue is fixed (tested on my side). Well done!
@LittleSec Please prefer opening an issue there for any discussions, we do not have discussion forum unfortunately.
Issue closed by pr #7
For information, the issue with the warning in plugin_api.h has been fixed by pr #11.
I want to use cpp-plugin, and I build successfully since I add the option
-Wno-unused-variable
in Makefile.target(if not do that, it will occur build error:). When I use cpp-plugin as README:
./x86_64-linux-user/qemu-x86_64 -tcg-plugin cpp /bin/true
, it will occur:PLUGIN_CPP: ERROR - reporting memory access for unknown block
, and stop(no any other outputs). Even I use PLUGIN_CPP=null, the same result. Do my computer lose something? or I should not-Wno-unused-variable
?