diff options
author | Kuba Brecka <kuba.brecka@gmail.com> | 2015-07-22 14:30:56 +0000 |
---|---|---|
committer | Kuba Brecka <kuba.brecka@gmail.com> | 2015-07-22 14:30:56 +0000 |
commit | 671a1f212c5b97275261470f4189094a226f3685 (patch) | |
tree | fd0ea995382665ade4bbfc417c4c32242dd32c98 /lldb/source/Plugins/MemoryHistory | |
parent | f1267ab1eea6a188b049f66ac13ae0de41fb7f08 (diff) |
[asan] Display ASan history threads in reverse chronological order
For use-after-free bugs caught by ASan, we show an allocation and a deallocation stack trace. Let's display them in a "most recent event first" order, this patch does that.
Differential Revision: http://reviews.llvm.org/D11295
Diffstat (limited to 'lldb/source/Plugins/MemoryHistory')
-rw-r--r-- | lldb/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp b/lldb/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp index c7c64ed54d8..c607de69538 100644 --- a/lldb/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp +++ b/lldb/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp @@ -176,8 +176,8 @@ MemoryHistoryASan::GetHistoryThreads(lldb::addr_t address) HistoryThreads result; - CreateHistoryThreadFromValueObject(process_sp, return_value_sp, "alloc", "Memory allocated at", result); CreateHistoryThreadFromValueObject(process_sp, return_value_sp, "free", "Memory deallocated at", result); + CreateHistoryThreadFromValueObject(process_sp, return_value_sp, "alloc", "Memory allocated at", result); return result; } |