[Lldb-commits] [PATCH] Make TestHelloWorld.py to pass remotely on Linux.

Oleksiy Vyalov ovyalov at google.com
Wed Feb 11 16:33:07 PST 2015


Hi vharron, clayborg,

TestHelloWorld uses stack unwinding to get a thread's backtrace.
In case of remote run the test should use system libraries (like libc.so) from a target in order to lookup symbols correctly:
  - Added optional environment variable LLDB_IMAGE_SEARCH_PATH that represents root directory for custom search paths.
  - lldbtest.addImageSearchPaths registers custom target image search paths for directories that contain at least one file.

In total, the test uses for unwinding a downloaded version of libc.so instead of local one.

http://reviews.llvm.org/D7574

Files:
  include/lldb/API/SBTarget.h
  scripts/Python/interface/SBTarget.i
  source/API/SBTarget.cpp
  test/lldbtest.py
  test/python_api/hello_world/TestHelloWorld.py

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7574.19794.patch
Type: text/x-patch
Size: 4254 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150212/44b98fe7/attachment.bin>


More information about the lldb-commits mailing list