[Lldb-commits] [PATCH] D11295: [asan] Display ASan history threads in reverse chronological order
Phabricator
reviews at reviews.llvm.org
Wed Jul 22 07:31:24 PDT 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL242902: [asan] Display ASan history threads in reverse chronological order (authored by kuba.brecka).
Changed prior to commit:
http://reviews.llvm.org/D11295?vs=29999&id=30351#toc
Repository:
rL LLVM
http://reviews.llvm.org/D11295
Files:
lldb/trunk/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp
lldb/trunk/test/functionalities/asan/TestMemoryHistory.py
Index: lldb/trunk/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp
===================================================================
--- lldb/trunk/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp
+++ lldb/trunk/source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp
@@ -176,8 +176,8 @@
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;
}
Index: lldb/trunk/test/functionalities/asan/TestMemoryHistory.py
===================================================================
--- lldb/trunk/test/functionalities/asan/TestMemoryHistory.py
+++ lldb/trunk/test/functionalities/asan/TestMemoryHistory.py
@@ -86,18 +86,18 @@
history_thread = threads.GetThreadAtIndex(0)
self.assertTrue(history_thread.num_frames >= 2)
self.assertEqual(history_thread.frames[1].GetLineEntry().GetFileSpec().GetFilename(), "main.c")
- self.assertEqual(history_thread.frames[1].GetLineEntry().GetLine(), self.line_malloc)
+ self.assertEqual(history_thread.frames[1].GetLineEntry().GetLine(), self.line_free)
history_thread = threads.GetThreadAtIndex(1)
self.assertTrue(history_thread.num_frames >= 2)
self.assertEqual(history_thread.frames[1].GetLineEntry().GetFileSpec().GetFilename(), "main.c")
- self.assertEqual(history_thread.frames[1].GetLineEntry().GetLine(), self.line_free)
+ self.assertEqual(history_thread.frames[1].GetLineEntry().GetLine(), self.line_malloc)
# let's free the container (SBThreadCollection) and see if the SBThreads still live
threads = None
self.assertTrue(history_thread.num_frames >= 2)
self.assertEqual(history_thread.frames[1].GetLineEntry().GetFileSpec().GetFilename(), "main.c")
- self.assertEqual(history_thread.frames[1].GetLineEntry().GetLine(), self.line_free)
+ self.assertEqual(history_thread.frames[1].GetLineEntry().GetLine(), self.line_malloc)
# now let's break when an ASan report occurs and try the API then
self.runCmd("breakpoint set -n __asan_report_error")
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11295.30351.patch
Type: text/x-patch
Size: 2403 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150722/8cb0b998/attachment.bin>
More information about the lldb-commits
mailing list