[merp] Fix image size reported (mono/mono#13847)
authorAlexander Kyte <alexmkyte@gmail.com>
Fri, 5 Apr 2019 19:26:13 +0000 (15:26 -0400)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Fri, 5 Apr 2019 19:26:13 +0000 (21:26 +0200)
* [merp] Point managed image_size at correct size field

* [merp] Bump merp version number

Fixes mono/mono#13834

Commit migrated from https://github.com/mono/mono/commit/5f5c51f3ef40a91053b38cc4ef9673098bab2fe9

src/mono/mono/mini/mini-exceptions.c
src/mono/mono/utils/mono-state.h

index 783bf19..daef57c 100644 (file)
@@ -1585,7 +1585,7 @@ summarize_frame_internal (MonoMethod *method, gpointer ip, size_t native_offset,
                dest->managed_data.filename = image->module_name;
 
                MonoDotNetHeader *header = &image->image_info->cli_header;
-               dest->managed_data.image_size = header->pe.pe_code_size;
+               dest->managed_data.image_size = header->nt.pe_image_size;
 
                dest->managed_data.time_date_stamp = image->time_date_stamp;
 
index 0b3c07e..4f8abdd 100644 (file)
@@ -18,7 +18,7 @@
 #include <mono/metadata/threads-types.h>
 #include <mono/utils/json.h>
 
-#define MONO_NATIVE_STATE_PROTOCOL_VERSION "0.0.3"
+#define MONO_NATIVE_STATE_PROTOCOL_VERSION "0.0.4"
 
 typedef enum {
        MonoSummaryNone,