Request to push patches for PR17982 to release 3.4 branch

This set of patches add support for debug info metadata version and debug info metadata will be dropped if a loaded bit code has no version or an outdated version.

195494: Debug Info: add a constant for debug info version number.
195495: Debug Info: add a “Debug Info Version” module flag to output the current debug info version number.
195504: Debug Info: update testing cases to specify the debug info version number.
195505: Debug Info: move StripDebugInfo from StripSymbols.cpp to DebugInfo.cpp.
195535: Debug Info: update testing cases to specify the debug info version number.
196143: Expand comments for Debug Info Version.
196144: Debug Info: Move the constant for Debug Info Version from Dwarf.h to Metadata.h.
196145: Debug Info: Move the constant for Debug Info Version from Dwarf.h to Metadata.h.
196156: Update Ocaml/vmcore.ml to emit a “Debug Info Version” module flag.
196157(dragonegg): Debug info metadata without a version or with an outdated version will be dropped. Add a version here to avoid that.
196158: Debug Info: drop debug info via upgrading path if version number does not match.

196172: Debug Info: rename getDebugInfoVersionFromModule to getDebugMetadataVersionFromModule.

Thanks a lot,
Manman

I request that we hold off until the final review is done.

-eric

Final review is done. Feel free to merge :slight_smile:

Thanks for the wait.

-eric

These don’t apply cleanly to the 3.4 branch. Could you add them in yourself?

-bw

Yes, I merged the changes in.

-Manman