register names for instrtrace primitives when using embedded bytecode library #5597
Original bug ID: 5597
When using caml_trace_flag=1 with an embedded bytecode application (linked with ocamlc -output-obj -o x.c), the names of primitives are not registered in caml_startup_code. Thus the instrtrace looks like:
and after registering them, looks like:
Steps to reproduce
./run.sh in the attached tar ball will show the before after.
The only way to activate caml_trace_flag is via manually compiling the debug libasmrun.d and setting the flag, as parsing command line parameters is not done by caml_startup_code. Would a patch to add "t" to OCAMLRUNPARAM for debug bytecode builds be ok?
diff --git a/byterun/dynlink.c b/byterun/dynlink.c
#endif /* NATIVE_CODE */
The text was updated successfully, but these errors were encountered: