diff options
author | Evgeny Pavlov <lucenticus@gmail.com> | 2017-01-27 01:52:31 +0300 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2017-01-26 23:52:31 +0100 |
commit | 04549885287571dfb9ca59c986ad1211b27bcf39 (patch) | |
tree | 4b9e1cf74a7cda7f304b2b12f1a71fdb2310e566 /src/vm/gdbjit.cpp | |
parent | 69b5d5c46e007cbb580c411b60dc501362af0486 (diff) | |
download | coreclr-04549885287571dfb9ca59c986ad1211b27bcf39.tar.gz coreclr-04549885287571dfb9ca59c986ad1211b27bcf39.tar.bz2 coreclr-04549885287571dfb9ca59c986ad1211b27bcf39.zip |
[GDB-JIT][Linux] Fix incorrect DWARF offset for primitive types with typedef node (char, byte and sbyte) (#9106)
Diffstat (limited to 'src/vm/gdbjit.cpp')
-rw-r--r-- | src/vm/gdbjit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vm/gdbjit.cpp b/src/vm/gdbjit.cpp index e7049b5c2f..557898cb0c 100644 --- a/src/vm/gdbjit.cpp +++ b/src/vm/gdbjit.cpp @@ -1021,8 +1021,10 @@ void ByteTypeInfo::DumpStrings(char* ptr, int& offset) void ByteTypeInfo::DumpDebugInfo(char *ptr, int &offset) { m_typedef_info->DumpDebugInfo(ptr, offset); - m_type_offset = m_typedef_info->m_typedef_type_offset; PrimitiveTypeInfo::DumpDebugInfo(ptr, offset); + // Replace offset from real type to typedef + if (ptr != nullptr) + m_type_offset = m_typedef_info->m_typedef_type_offset; } void PrimitiveTypeInfo::DumpDebugInfo(char* ptr, int& offset) |