diff options
author | chunseok lee <chunseoklee@gmail.com> | 2017-09-27 01:15:38 -0400 |
---|---|---|
committer | chunseok lee <chunseoklee@gmail.com> | 2017-09-27 01:16:34 -0400 |
commit | bb775f145721fba5683307a6089269e19396b597 (patch) | |
tree | b64801236c55d0d90c4f21e3ad4dd1486053c653 /packaging/0033-Specify-C-language-in-DWARF-debug-information.patch | |
parent | fa221f1b039348ceaeb4a35b65133437e2781bbe (diff) | |
download | coreclr-33ae505988bd830bad81124a35fdb716466e3061.tar.gz coreclr-33ae505988bd830bad81124a35fdb716466e3061.tar.bz2 coreclr-33ae505988bd830bad81124a35fdb716466e3061.zip |
Specify C# language in DWARF debug informationsubmit/tizen_4.0/20170927.091815
To correctly support C# language in lldb DWARF debug information
should contain correct information about language.
Now we use 0x9e57 constant for specify C# language.
Introduce FEATURE_GDBJIT_LANGID_CS
If this feature is set gdbjit will use 0x9e57 as c# lang id,
otherwise it will use DW_LANG_C89.
Change-Id: I06e8dce6bf9b2506e62edaa6b2629cd5cfacfc0d
Diffstat (limited to 'packaging/0033-Specify-C-language-in-DWARF-debug-information.patch')
-rw-r--r-- | packaging/0033-Specify-C-language-in-DWARF-debug-information.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/packaging/0033-Specify-C-language-in-DWARF-debug-information.patch b/packaging/0033-Specify-C-language-in-DWARF-debug-information.patch new file mode 100644 index 0000000000..b06a4f0588 --- /dev/null +++ b/packaging/0033-Specify-C-language-in-DWARF-debug-information.patch @@ -0,0 +1,39 @@ +From 8a9a359a078b0332bf1ba5cf0dd7c538177527f0 Mon Sep 17 00:00:00 2001 +From: Konstantin Baladurin <k.baladurin@partner.samsung.com> +Date: Thu, 31 Aug 2017 15:09:32 +0300 +Subject: [PATCH] Specify C# language in DWARF debug information + +To correctly support C# language in lldb DWARF debug information +should contain correct information about language. + +Now we use 0x9e57 constant for specify C# language. +--- + src/vm/gdbjit.cpp | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/src/vm/gdbjit.cpp b/src/vm/gdbjit.cpp +index 50f1bb2..9b70a6b 100644 +--- a/src/vm/gdbjit.cpp ++++ b/src/vm/gdbjit.cpp +@@ -740,6 +740,9 @@ const int AbbrevTableSize = sizeof(AbbrevTable); + #define DWARF_LINE_RANGE 14 + #define DWARF_OPCODE_BASE 13 + ++/* TODO: use corresponding constant when it will be added to llvm */ ++#define DW_LANG_MICROSOFT_CSHARP 0x9e57 ++ + DwarfLineNumHeader LineNumHeader = { + 0, 2, 0, 1, 1, DWARF_LINE_BASE, DWARF_LINE_RANGE, DWARF_OPCODE_BASE, {0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1} + }; +@@ -753,7 +756,7 @@ struct __attribute__((packed)) DebugInfoCU + uint32_t m_cu_name; + uint32_t m_line_num; + } debugInfoCU = { +- 1, 0, DW_LANG_C89, 0, 0 ++ 1, 0, DW_LANG_MICROSOFT_CSHARP, 0, 0 + }; + + struct __attribute__((packed)) DebugInfoTryCatchSub +-- +2.7.4 + |