[all-commits] [llvm/llvm-project] 21501d: [lldb] Fix dynamic type resolutions for core files...
Pavel Labath via All-commits
all-commits at lists.llvm.org
Wed May 7 06:02:43 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 21501d1cf290a63760904fb125e77b432db49933
https://github.com/llvm/llvm-project/commit/21501d1cf290a63760904fb125e77b432db49933
Author: Pavel Labath <pavel at labath.sk>
Date: 2025-05-07 (Wed, 07 May 2025)
Changed paths:
M lldb/include/lldb/Target/Target.h
M lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp
M lldb/source/Target/Target.cpp
M lldb/test/API/lang/cpp/dynamic-value/TestDynamicValue.py
Log Message:
-----------
[lldb] Fix dynamic type resolutions for core files (#138698)
We're reading from the object's vtable to determine the pointer to the
full object. The vtable is normally in the "rodata" section of the
executable, which is often not included in the core file because it's
not supposed to change and the debugger can extrapolate its contents
from the executable file. We weren't doing that.
This patch changes the read operation to use the target class (which
falls back onto the executable module as expected) and adds the missing
ReadSignedIntegerFromMemory API. The fix is tested by creating a core
(minidump) file which deliberately omits the vtable pointer.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list