diff options
| author | Davide Italiano <davide@freebsd.org> | 2018-12-17 18:21:51 +0000 |
|---|---|---|
| committer | Davide Italiano <davide@freebsd.org> | 2018-12-17 18:21:51 +0000 |
| commit | e1f760d5de1ecfa41d485da5774fe9fe696a3e52 (patch) | |
| tree | e4e0041214f5bc6939013cf41ad0f3a1f82932a1 /lldb/examples | |
| parent | 7e89627728780c66a9960c84d8b645530b1e76b6 (diff) | |
| download | bcm5719-llvm-e1f760d5de1ecfa41d485da5774fe9fe696a3e52.tar.gz bcm5719-llvm-e1f760d5de1ecfa41d485da5774fe9fe696a3e52.zip | |
Fix lldb's macosx/heap.py cstr command.
<rdar://problem/44432167>
llvm-svn: 349372
Diffstat (limited to 'lldb/examples')
| -rw-r--r-- | lldb/examples/darwin/heap_find/heap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/examples/darwin/heap_find/heap.py b/lldb/examples/darwin/heap_find/heap.py index 81f36adb9c5..c463380bf49 100644 --- a/lldb/examples/darwin/heap_find/heap.py +++ b/lldb/examples/darwin/heap_find/heap.py @@ -1036,7 +1036,7 @@ range_callback_t range_callback = [](task_t task, void *baton, unsigned type, ui callback_baton_t *lldb_info = (callback_baton_t *)baton; if (lldb_info->cstr_len < ptr_size) { const char *begin = (const char *)ptr_addr; - const char *end = begin + ptr_size - info->cstr_len; + const char *end = begin + ptr_size - lldb_info->cstr_len; for (const char *s = begin; s < end; ++s) { if ((int)memcmp(s, lldb_info->cstr, lldb_info->cstr_len) == 0) { if (lldb_info->num_matches < MAX_MATCHES) { |

