7160895: tools/launcher/VersionCheck.java attempts to launch .debuginfo
Summary: Do not install .debuginfo files in bin dir.
Reviewed-by: ksrini, sspitsyn
diff --git a/make/common/Program.gmk b/make/common/Program.gmk
index 5cc8342..4e211d8 100644
--- a/make/common/Program.gmk
+++ b/make/common/Program.gmk
@@ -268,6 +268,11 @@
 	   $(ZIPEXE) -q $(@F).diz $(@F).debuginfo ; \
 	   $(RM) $(@F).debuginfo ; \
 	  )
+          # save ZIP'ed debug info with rest of the program's build artifacts
+	  $(MV) $@.diz $(OBJDIR)
+        else
+          # save debug info with rest of the program's build artifacts
+	  $(MV) $@.debuginfo $(OBJDIR)
         endif
       endif # PROGRAM_SUPPORTS_FULL_DEBUG_SYMBOLS
     endif # ENABLE_FULL_DEBUG_SYMBOLS