To fix the issue of enable reading embedded pdb everywhere the problem was that when the roslyn tests are compiling sources it creates embedded pdb with source file "", and before enable reading the embedded pdb we don't read this information, and now we read and our StackTrace corlib doesn't expect a source file "", it's okay if it's NULL but not "".
I could fix in corlib or in mono, I prefer to fix on mono because I don't know if there is any other place in corlib that doesn't expect source file "".
Co-authored-by: Thays Grazia <thaystg@gmail.com>
#
# Support is a separate library because it is not valid C++.
#
-if !ENABLE_NETCORE
support_libraries = libmonoruntime-support.la
libmonoruntime_support_la_SOURCES = support.c
libmonoruntime_support_la_LDFLAGS = $(Z_LIBS)
libmonoruntime_support_la_CFLAGS = $(filter-out @CXX_REMOVE_CFLAGS@, @CFLAGS@) @ZLIB_CFLAGS@
-endif
#
# This library contains the icall tables if the runtime was configured with --disable-icall-tables
return NULL;
}
-// Temporarily disabled to unblock Roslyn
-#if HOST_WIN32 || HOST_WASM
+#if HOST_WIN32 || HOST_WASM || HAVE_SYS_ZLIB
if (ppdb_data) {
/* Embedded PPDB data */
/* ppdb_size is the uncompressed size */
}
location = g_new0 (MonoDebugSourceLocation, 1);
- location->source_file = docname;
+ if (docname && docname [0])
+ location->source_file = docname;
location->row = start_line;
location->column = start_col;
location->il_offset = iloffset;