llvm-project/lldb/test
Greg Clayton 64195a2c8b Abtracted all mach-o and ELF out of ArchSpec. This patch is a modified form
of Stephen Wilson's idea (thanks for the input Stephen!). What I ended up
doing was:
- Got rid of ArchSpec::CPU (which was a generic CPU enumeration that mimics
  the contents of llvm::Triple::ArchType). We now rely upon the llvm::Triple 
  to give us the machine type from llvm::Triple::ArchType.
- There is a new ArchSpec::Core definition which further qualifies the CPU
  core we are dealing with into a single enumeration. If you need support for
  a new Core and want to debug it in LLDB, it must be added to this list. In
  the future we can allow for dynamic core registration, but for now it is
  hard coded.
- The ArchSpec can now be initialized with a llvm::Triple or with a C string
  that represents the triple (it can just be an arch still like "i386").
- The ArchSpec can still initialize itself with a architecture type -- mach-o
  with cpu type and subtype, or ELF with e_machine + e_flags -- and this will
  then get translated into the internal llvm::Triple::ArchSpec + ArchSpec::Core.
  The mach-o cpu type and subtype can be accessed using the getter functions:
  
  uint32_t
  ArchSpec::GetMachOCPUType () const;

  uint32_t
  ArchSpec::GetMachOCPUSubType () const;
  
  But these functions are just converting out internal llvm::Triple::ArchSpec 
  + ArchSpec::Core back into mach-o. Same goes for ELF.

All code has been updated to deal with the changes.

This should abstract us until later when the llvm::TargetSpec stuff gets
finalized and we can then adopt it.

llvm-svn: 126278
2011-02-23 00:35:02 +00:00
..
abbreviation_tests - Changed all the places where CommandObjectReturn was exporting a StreamString to just exporting 2011-02-19 02:53:09 +00:00
alias_tests - Changed all the places where CommandObjectReturn was exporting a StreamString to just exporting 2011-02-19 02:53:09 +00:00
array_types Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
attic Move two files to the 'attic'. 2010-10-05 00:08:08 +00:00
bitfields Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
breakpoint_command - Changed all the places where CommandObjectReturn was exporting a StreamString to just exporting 2011-02-19 02:53:09 +00:00
breakpoint_conditions Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
breakpoint_ids Fix breakpoint id test to work with clang as well as gcc; added a few 2011-02-02 17:48:16 +00:00
breakpoint_ignore_count Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
breakpoint_locations Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
class_static Modify test scripts to accomodate SBTarget.Launch() API change. 2011-02-03 23:15:53 +00:00
class_types Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
command_source Add "import sys" for sys.stdout. 2011-01-28 20:59:39 +00:00
conditional_break - Changed all the places where CommandObjectReturn was exporting a StreamString to just exporting 2011-02-19 02:53:09 +00:00
cpp/virtual Add TestVirtual.py to go with test/cpp/virtual/main.cpp file, which tests 2011-02-01 01:23:34 +00:00
dead-strip Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
enum_types Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
example Changed the test case class names to be noun-like instead of verb-like. 2010-09-01 19:59:58 +00:00
expression_command Modify test scripts to accomodate SBTarget.Launch() API change. 2011-02-03 23:15:53 +00:00
forward Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
foundation Instead of self.runCmd(), do a stronger self.expect("process status") which also 2011-02-11 20:11:06 +00:00
function_types Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
global_variables Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
hello_world Modify test scripts to accomodate SBTarget.Launch() API change. 2011-02-03 23:15:53 +00:00
help Print out a more meaningful exception message when/if CFBundleVersion matching failed. 2011-01-07 00:17:44 +00:00
inlined_breakpoints Add a test case for a bug fixed: 2010-11-02 19:46:35 +00:00
inlines Converted to Makefile.rules. 2010-08-24 20:54:26 +00:00
load_unload Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
logging Use different log files for the two test cases in order not to confuse the logging subsystem. 2011-01-29 00:52:54 +00:00
macosx/universal Add new radar info for failed test. 2011-02-08 18:37:49 +00:00
make Minor comment change. 2011-01-28 17:22:29 +00:00
namespace Uncomment the two failed 'expression' commands regarding fully qualified namespace variables. 2010-12-23 23:26:05 +00:00
objc Converted to use Makefile.rules. 2011-01-14 21:55:29 +00:00
objc-stepping Modify test scripts to accomodate SBTarget.Launch() API change. 2011-02-03 23:15:53 +00:00
order Fix wrong test logic -- should pass "-s address" option to "image dump symtab" 2010-12-17 18:02:08 +00:00
plugins Fix another typo. 2011-02-11 00:07:26 +00:00
print-obj Initial checkin of lldb code from internal Apple repo. 2010-06-08 16:52:24 +00:00
process_io Add comment. 2011-01-28 18:31:34 +00:00
python_api Modify test scripts to accomodate SBTarget.Launch() API change. 2011-02-03 23:15:53 +00:00
recurse Added a recursive loop stress test for the unwinder. Not a real world test 2011-01-07 22:10:25 +00:00
set_values Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
settings Add test_apropos_should_also_search_settings_description() to make sure that: 2011-02-04 00:50:49 +00:00
signal Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
signed_types Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
source-manager Modify test scripts to accomodate SBTarget.Launch() API change. 2011-02-03 23:15:53 +00:00
stepping Add test cases for the scenario of selecting a frame index while stopped, and 2011-01-21 18:23:16 +00:00
stl Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
struct_types Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
threads Fix clang++ warning building the executable for testing. 2011-02-16 19:22:52 +00:00
types On second thought, inserting a delay of 1.0 second slows down the test suite 2010-12-02 18:03:37 +00:00
unittest2 o Added unittest2 which has added the new features in unittest for Python 2.7 2010-08-05 23:42:46 +00:00
unsigned_types Change "breakpoint list" command to default to brief output rather than full output. 2011-02-04 22:59:41 +00:00
Makefile Initial checkin of lldb code from internal Apple repo. 2010-06-08 16:52:24 +00:00
README-TestSuite Add the cmdline to invoke the Python profile reporting module. 2011-01-19 19:48:29 +00:00
blacklist.py Blacklisted testclass STLTestCase for a known crasher <rdar://problem/8837118>. 2011-01-08 01:37:33 +00:00
dotest.py Abtracted all mach-o and ELF out of ArchSpec. This patch is a modified form 2011-02-23 00:35:02 +00:00
lldbtest.py Some cleanup to plugins/darwin.py after the recent additions of '-A arch' and '-C compiler' 2011-01-27 02:58:54 +00:00
lldbutil.py Add more docstring for the lldb_iter() utility function which provides a compact 2010-12-08 19:19:08 +00:00