[Lldb-commits] [PATCH] Add ASan history threads into process_sp->GetExtendedThreadList, so they don't get freed too early

Jason Molenda jmolenda at apple.com
Mon Sep 22 20:02:04 PDT 2014


Looks good, a couple changes to match the lldb coding style better; please commit.

================
Comment at: source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp:119
@@ +118,3 @@
+
+    if (count <= 0) return;
+
----------------
Please split into two lines,
```
if (count <= 0)
  return;
```

================
Comment at: source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp:124
@@ +123,3 @@
+    std::vector<lldb::addr_t> pcs;
+    for (int i = 0; i < count; i++) {
+        addr_t pc = trace_sp->GetChildAtIndex(i, true)->GetValueAsUnsigned(0);
----------------
open brace ('{') on the next line,


```
for (int i = 0; i < count; i++)
{
```

================
Comment at: source/Plugins/MemoryHistory/asan/MemoryHistoryASan.cpp:126
@@ +125,3 @@
+        addr_t pc = trace_sp->GetChildAtIndex(i, true)->GetValueAsUnsigned(0);
+        if (pc == 0 || pc == 1 || pc == LLDB_INVALID_ADDRESS) continue;
+        pcs.push_back(pc);
----------------
Pls plist condition expr & command so they're on separate lines.

http://reviews.llvm.org/D5452






More information about the lldb-commits mailing list