* debug-mono-symfile.c (load_symfile): Check the major version
first; if it's wrong, don't print the minor version in the error message.
svn path=/trunk/mono/; revision=105305
+2008-06-09 Martin Baulig <martin@ximian.com>
+
+ * debug-mono-symfile.c (load_symfile): Check the major version
+ first; if it's wrong, don't print the minor version in the error message.
+
2008-06-09 Zoltan Varga <vargaz@gmail.com>
* appdomain.c (set_domain_search_path): Make this use the domain assemblies
minor = read32(ptr);
ptr += sizeof(guint32);
- if ((major != MONO_SYMBOL_FILE_MAJOR_VERSION) || (minor != MONO_SYMBOL_FILE_MINOR_VERSION)) {
+ if (major != MONO_SYMBOL_FILE_MAJOR_VERSION) {
+ if (!in_the_debugger)
+ g_warning ("Symbol file %s has incorrect version (expected %d, got %d)",
+ symfile->filename, MONO_SYMBOL_FILE_MAJOR_VERSION, major);
+ return FALSE;
+ }
+
+ if (minor != MONO_SYMBOL_FILE_MINOR_VERSION) {
if (!in_the_debugger)
g_warning ("Symbol file %s has incorrect version "
"(expected %d.%d, got %d.%d)", symfile->filename,