[debugger] Enabling PPDB on Wasm. (#32188)
authormonojenkins <jo.shields+jenkins@xamarin.com>
Fri, 14 Feb 2020 11:57:35 +0000 (06:57 -0500)
committerGitHub <noreply@github.com>
Fri, 14 Feb 2020 11:57:35 +0000 (12:57 +0100)
We are investigating to turn on PPDB everywhere, but for now, WASM is already working using it.

Co-authored-by: Thays Grazia <thaystg@gmail.com>
src/mono/mono/metadata/debug-mono-ppdb.c

index 3a76e35..9a6bdf7 100644 (file)
@@ -29,7 +29,7 @@
 #include <mono/utils/bsearch.h>
 #include <mono/utils/mono-logger-internals.h>
 
-#if HOST_WIN32
+#if HOST_WIN32 || HOST_WASM
 #include "../zlib/zlib.h"
 #elif HAVE_SYS_ZLIB
 #include <zlib.h>
@@ -173,7 +173,7 @@ mono_ppdb_load_file (MonoImage *image, const guint8 *raw_contents, int size)
        }
 
 // Temporarily disabled to unblock Roslyn
-#if HOST_WIN32 //|| HAVE_SYS_ZLIB
+#if HOST_WIN32 || HOST_WASM
        if (ppdb_data) {
                /* Embedded PPDB data */
                /* ppdb_size is the uncompressed size */