teak-llvm/lldb/packages/Python/lldbsuite/test
Pavel Labath a933d5179e Fix a bug in linux core file handling
Summary:
There was a bug in linux core file handling, where if there was a running process with the same
process id as the id in the core file, the core file debugging would fail, as we would pull some
pieces of information (ProcessInfo structure) from the running process instead of the core file.
I fix this by routing the ProcessInfo requests through the Process class and overriding it in
ProcessElfCore to return correct data.

A (slightly convoluted) test is included.

Reviewers: clayborg, zturner

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D18697

llvm-svn: 265391
2016-04-05 13:07:16 +00:00
..
android/platform Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
api Change over the broadcaster/listener process to hold shared or weak pointers 2016-03-07 21:50:25 +00:00
arm_emulation Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
attic Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
benchmarks Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
driver/batch_mode Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
example Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
expression_command mark TestCallWithTimeout.py XFAIL on macosx. 2016-04-01 18:42:45 +00:00
functionalities Fix a bug in linux core file handling 2016-04-05 13:07:16 +00:00
help Add --help and --long-help options to 'command alias' such that one can now specify a help string for an alias as they are defining it 2016-03-31 01:10:54 +00:00
issue_verification test infra: fix lldbinline tests to work with rerun 2015-12-22 17:14:47 +00:00
lang Fix clean rule for a makefile 2016-04-01 12:59:37 +00:00
linux Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
logging Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
macosx Make sure code that is in the middle of figuring out the correct architecture 2016-02-18 23:58:45 +00:00
make Remove CRLF line endings from test_common.h 2016-01-11 10:27:31 +00:00
plugins Adjust for Python-3. 2016-02-12 20:30:47 +00:00
python_api Extend XFlaky in TestProcessIO to linux as well 2016-03-14 11:19:39 +00:00
settings Remove the skipUnlessArch decorator. 2016-02-09 00:36:22 +00:00
source-manager Add reverse file remapping for breakpoint set 2016-03-04 11:26:44 +00:00
terminal Remove expected failure and skip decorators for host os. 2016-02-09 21:36:02 +00:00
test_runner wire timeouts and exceptional inferior process exits through the test event system 2015-12-09 06:45:43 +00:00
tools Don't vary debug info for lldb-server tests 2016-03-31 14:22:52 +00:00
types Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
warnings/uuid Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
__init__.py Get rid of global variables in dotest.py 2015-12-08 01:15:30 +00:00
.categories Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
bench-history Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
bench.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
configuration.py test infra: enable single-worker rerun phase for flakey tests. 2015-12-14 21:28:46 +00:00
crashinfo.c Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
curses_results.py Rename test_results.py to result_formatter.py. 2015-12-07 21:23:41 +00:00
decorators.py Remove expectedFailureFreeBSD decorator 2016-02-19 19:25:03 +00:00
dosep.py fixed test suite crash when --platform-name doesn't start with 'remote-' 2016-01-22 20:20:48 +00:00
dotest_args.py test infra: enable single-worker rerun phase for flakey tests. 2015-12-14 21:28:46 +00:00
dotest_channels.py Propagate socket_error exception from handle_read. Otherwise Ninja crashes. 2015-12-15 23:51:27 +00:00
dotest.py Unicode support on Win32. 2016-03-22 17:58:09 +00:00
lldb_pylint_helper.py Updated lldb_pylint_helper to work with recent Python package changes. 2015-11-10 20:01:33 +00:00
lldbbench.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbcurses.py Python 3 - Turn on absolute imports, and fix existing imports. 2015-11-05 19:22:28 +00:00
lldbinline.py Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
lldbpexpect.py Fixed the failing test TestCommandScriptImmediateOutput on MacOSX. Turns out that there are few things to watch out for when writing pexpect tests: 2016-03-30 00:02:13 +00:00
lldbplatform.py Add target and host platform enumerations so we're not using strings. 2016-02-18 18:50:02 +00:00
lldbplatformutil.py Add target and host platform enumerations so we're not using strings. 2016-02-18 18:50:02 +00:00
lldbtest_config.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
lldbtest.py Don't vary debug info for lldb-server tests 2016-03-31 14:22:52 +00:00
lldbutil.py Fix some issues with bytes and strings in Python 3. 2016-01-25 23:21:18 +00:00
lock.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
Makefile Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
README-TestSuite Centralize the handling of attach permissions on linux in tests 2016-01-11 10:24:50 +00:00
redo.py Move lldb/test to lldb/packages/Python/lldbsuite/test. 2015-10-28 17:43:26 +00:00
result_formatter.py test infra: fix lldbinline tests to work with rerun 2015-12-22 17:14:47 +00:00
test_categories.py Don't run dwo tests for windows targets. 2016-01-11 18:49:30 +00:00
test_result.py Make test categories composable 2015-12-14 13:17:18 +00:00
xunit_formatter.py Guard xunit result test class and test method name access to prevent testbot breakage 2016-04-01 17:59:51 +00:00