teak-llvm/lldb/packages/Python/lldbsuite/test/functionalities
Dimitar Vlahovski 023dd64f25 Add/fix support for i386 elf core files
Summary:
There were places in the code, assuming(hardcoding) offsets
and types that were only valid for the x86_64 elf core file format.

The NT_PRSTATUS and NT_PRPSINFO structures are with the 64 bit layout.
I have reused them and parse i386 files manually, and fill them in the
same struct.

Also added some error handling during parsing that checks if the
available bytes in the buffer are enough to fill the structures.

The i386 core file test case now passes.

For reference on the structures layout, I generally used the
source of binutils (bfd, readelf)

Bug: https://llvm.org/bugs/show_bug.cgi?id=26947

Reviewers: labath

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D22917

llvm-svn: 277140
2016-07-29 13:18:09 +00:00
..
abbreviation Remove expectedFlakeyFreeBSD decorator for prompt setting 2016-02-18 21:38:24 +00:00
alias
apropos_with_process Fix a bug where LLDB would crash if 'apropos <anything>' was used after spawning an inferior process 2016-04-20 20:48:05 +00:00
archives Mark some aarch64-linux specific xfails marking bug entries 2016-05-25 22:30:05 +00:00
asan Update test for r268192. 2016-05-01 11:32:10 +00:00
attach_resume [test] make expect_state_changes actually expect *only* them 2016-04-14 15:52:58 +00:00
avoids-fd-leak Fixup TestFdLeak 2016-04-12 13:55:54 +00:00
backticks Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
breakpoint LLDB help content has accumulated over time without a recent attempt to 2016-07-14 22:03:10 +00:00
command_history Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
command_regex Remove expected failure and skip decorators for host os. 2016-02-09 21:36:02 +00:00
command_script LLDB help content has accumulated over time without a recent attempt to 2016-07-14 22:03:10 +00:00
command_script_alias Fix an issue where one could not define a Python command with the same name as an existing alias (or rather, one could but the results of invoking the command were far from satisfactory) 2016-07-11 17:36:55 +00:00
command_script_immediate_output Enable some tests on linux 2016-06-09 22:39:36 +00:00
command_source Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
completion Add target and host platform enumerations so we're not using strings. 2016-02-18 18:50:02 +00:00
conditional_break Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
data-formatter s/Cocoa/Foundation/ 2016-07-19 23:58:23 +00:00
dead-strip Add "-gmodules" support to the test suite. 2016-05-26 13:57:03 +00:00
disassembly Support Linux on SystemZ as platform 2016-04-14 14:28:34 +00:00
dynamic_value_child_count Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
embedded_interpreter Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
exec When calling TypeSystemMap::Clear, objects being destroyed in the process of 2016-02-12 00:03:19 +00:00
expr-doesnt-deadlock Remove flaky decorator from three tests on linux 2016-04-27 12:43:37 +00:00
fat_archives Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
format Remove expected failure and skip decorators for host os. 2016-02-09 21:36:02 +00:00
inferior-assert [LLDB][MIPS] Fix TestInferiorAssert.py for MIPS 2016-02-26 13:30:34 +00:00
inferior-changed fix invalid assumption about the executable module in Target::Install() 2016-06-27 23:21:49 +00:00
inferior-crashing Remove expectedFailureFreeBSD decorator 2016-02-19 19:25:03 +00:00
inline-stepping Remove XFAIL from test passing on FreeBSD 2016-02-19 17:35:01 +00:00
jitloader_gdb Move some of the common decorators to decorators.py. 2016-02-04 18:03:01 +00:00
launch_with_shellexpand Improve the way LLDB escapes arguments before passing them to the shell 2016-04-04 22:46:38 +00:00
llvm Fix xfail for test_tilde_home_directory on windows 2016-04-20 09:54:47 +00:00
load_unload Move some of the common decorators to decorators.py. 2016-02-04 18:03:01 +00:00
longjmp Remove expectedFailureLinux decorator. 2016-02-10 19:53:36 +00:00
memory Clean up test results on Windows. 2016-05-13 18:26:30 +00:00
multidebugger_commands Change 'apropos' such that it doesn't look into the "long help/syntax" strings for commands 2016-03-23 01:21:55 +00:00
nested_alias LLDB help content has accumulated over time without a recent attempt to 2016-07-14 22:03:10 +00:00
non-overlapping-index-variable-i Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
nosucharch Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
object-file Don't run TestImageListMultiArchitecture during remote test suite 2016-06-24 20:44:23 +00:00
paths Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
platform Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
plugins Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
postmortem Add/fix support for i386 elf core files 2016-07-29 13:18:09 +00:00
process_attach [NFC] Cleanup the code used to run shell commands from tests 2016-04-05 14:08:18 +00:00
process_group [NFC] Cleanup the code used to run shell commands from tests 2016-04-05 14:08:18 +00:00
process_launch Remove expectedFailureLinux decorator. 2016-02-10 19:53:36 +00:00
process_save_core Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
ptr_refs Added a testcase for the ptr_refs tool so we catch if it stops working. 2016-05-03 20:36:06 +00:00
recursion Remove use_lldb_suite from the package, and don't import it anymore. 2015-11-03 19:20:39 +00:00
register Remove the skipUnlessArch decorator. 2016-02-09 00:36:22 +00:00
rerun Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
return-value Revert a part of "Add/Improve complex, vector, aggregate types handling for SysV ARM (hard/soft) ABI." 2016-02-29 14:26:45 +00:00
set-data Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
signal Remove expectedFailureFreeBSD decorator 2016-02-19 19:25:03 +00:00
single-quote-in-filename-to-lldb Remove expected failure and skip decorators for host os. 2016-02-09 21:36:02 +00:00
step-avoids-no-debug mark newly failing tests as XFAIL 2016-07-14 10:43:24 +00:00
stop-hook Remove expected failure and skip decorators for host os. 2016-02-09 21:36:02 +00:00
target_command Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
thread Breakup TestConcurrentEvents.py into separate test subdirs per test method 2016-07-22 21:50:55 +00:00
tsan [tsan] Prefer mangled name looking up variable declaration for racy address 2016-06-01 21:32:45 +00:00
tty Move the rest of the tests over to using the new decorator module. 2016-02-04 23:04:17 +00:00
type_completion Delete all the xfail / skip decorators for specific compilers. 2016-02-09 21:36:15 +00:00
type_lookup Make 'type lookup' print an error message instead of complete radio silence when it can't find a type matching user input 2016-03-24 21:32:39 +00:00
unwind Fix for PrintStackTraces 2016-07-07 13:00:29 +00:00
value_md5_crash Remove expectedFailureWindows decorator. 2016-02-08 19:34:59 +00:00
watchpoint Fixed "void SBWatchpoint::SetEnabled (bool enabled)" to work properly and added a test for it. 2016-07-27 20:47:49 +00:00