So I am trying to build/use hsdis with openJDK-11. if I try to build it with binutils I get the following errors:
hsdis.c:316:32: error: incompatible type for argument 1 of ‘disassembler'
app_data->dfn = disassembler(native_bfd);
hsdis.c:316:19: error: too few arguments to function ‘disassembler’
app_data->dfn = disassembler(native_bfd);
I have tried building it with binutils 2.29, 2.30, 2.31 and 2.32. Got same error with all of them.
If I take a prebuilt binary from JDK-8 and place it in my build folder of JDK, netbeans refuses to acknowledge it is present in the folder. I have set up OpenJDK in netbeans and generated a slowdebug build. I tried running it step by step to see where exactly hsdis is being searched for, to my surprise it does look in the folder where I placed the file however it still says no such file or directory. For me that folder is
home/ubuntu/jdk11u-dev/build/linux-x86_64-normal-server-slowdebug/images/jdk/lib/server
I am using VMWare and running Ubuntu 18.04. Any ideas what I can do?