summaryrefslogtreecommitdiff
path: root/src/vm/gdbjit.cpp
diff options
context:
space:
mode:
authorEvgeny Pavlov <lucenticus@gmail.com>2017-01-27 01:52:31 +0300
committerJan Vorlicek <janvorli@microsoft.com>2017-01-26 23:52:31 +0100
commit04549885287571dfb9ca59c986ad1211b27bcf39 (patch)
tree4b9e1cf74a7cda7f304b2b12f1a71fdb2310e566 /src/vm/gdbjit.cpp
parent69b5d5c46e007cbb580c411b60dc501362af0486 (diff)
downloadcoreclr-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.cpp4
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)