File tree 2 files changed +13
-2
lines changed
src/coreclr/debug/createdump
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
1
// Licensed to the .NET Foundation under one or more agreements.
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
+ #include " specialdiaginfo.h"
5
+
4
6
#if !defined(PAGE_SIZE) && (defined(__arm__) || defined(__aarch64__) || defined(__loongarch64)) || defined(__riscv)
5
7
extern long g_pageSize;
6
8
#define PAGE_SIZE g_pageSize
@@ -44,8 +46,15 @@ struct MemoryRegion
44
46
m_endAddress (end),
45
47
m_offset (0 )
46
48
{
47
- assert ((start & ~PAGE_MASK) == 0 );
48
- assert ((end & ~PAGE_MASK) == 0 );
49
+ if (start == SpecialDiagInfoAddress)
50
+ {
51
+ assert (end == (SpecialDiagInfoAddress + SpecialDiagInfoSize));
52
+ }
53
+ else
54
+ {
55
+ assert ((start & ~PAGE_MASK) == 0 );
56
+ assert ((end & ~PAGE_MASK) == 0 );
57
+ }
49
58
}
50
59
51
60
// copy with new flags constructor. The file name is not copied.
Original file line number Diff line number Diff line change 11
11
// information like the exception record address for a NativeAOT app crash or the runtime module
12
12
// base address. The exception record contains the pointer to the JSON formatted crash info.
13
13
14
+ #pragma once
15
+
14
16
#define SPECIAL_DIAGINFO_SIGNATURE "DIAGINFOHEADER"
15
17
#define SPECIAL_DIAGINFO_VERSION 2
16
18
You can’t perform that action at this time.
0 commit comments