blob: 96684643d222c39ac69f800db873cce6bc7f098f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
From 7702a18197fa51dfbb19c352a0371d95d6030156 Mon Sep 17 00:00:00 2001
From: chunseok lee <chunseok.lee@samsung.com>
Date: Thu, 14 Dec 2017 10:04:03 +0900
Subject: [PATCH] Enable gdbjit while NI file exist
Signed-off-by: chunseok lee <chunseok.lee@samsung.com>
---
src/vm/gdbjit.cpp | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/vm/gdbjit.cpp b/src/vm/gdbjit.cpp
index 50f1bb2..5bf0524 100644
--- a/src/vm/gdbjit.cpp
+++ b/src/vm/gdbjit.cpp
@@ -2477,6 +2477,18 @@ void NotifyGdb::OnMethodCompiled(MethodDesc* methodDescPtr)
}
#endif
+ // remove '.ni.dll' or '.ni.exe' suffix from wszModuleFile
+ LPWSTR pNIExt = const_cast<LPWSTR>(wcsstr(wszModuleFile, W(".ni.exe"))); // where '.ni.exe' start at
+ if (!pNIExt)
+ {
+ pNIExt = const_cast<LPWSTR>(wcsstr(wszModuleFile, W(".ni.dll"))); // where '.ni.dll' start at
+ }
+
+ if (pNIExt)
+ {
+ wcscpy(pNIExt, W(".dll"));
+ }
+
if (isListedModule(wszModuleFile))
{
bool bEmitted = EmitDebugInfo(elfBuilder, methodDescPtr, pCode, codeSize, szModuleFile);
--
2.7.4
|