Skip to content
  1. Oct 15, 2010
    • Johnny Chen's avatar
      There's no need to explicitly call lldb.SBDebugger.Initialize() now. It is done · 8f6fca7f
      Johnny Chen authored
      when importing the lldb module.
      
      llvm-svn: 116585
      8f6fca7f
    • Johnny Chen's avatar
      Add more comments. · fd64df4f
      Johnny Chen authored
      llvm-svn: 116583
      fd64df4f
    • Johnny Chen's avatar
      Be more specific about cases whenthe runCmd() check flag is False, meaning there · ab254f5d
      Johnny Chen authored
      is no need to check the return status of the command execution, and an error
      status is not deemed a failure in the test.
      
      llvm-svn: 116582
      ab254f5d
    • Greg Clayton's avatar
      Skip checking for a bunch of built-ins when evaluating an expression. · ee4b5dd6
      Greg Clayton authored
      llvm-svn: 116565
      ee4b5dd6
    • Greg Clayton's avatar
      Did a bit of parameter renaming. · 9476d957
      Greg Clayton authored
      llvm-svn: 116562
      9476d957
    • Greg Clayton's avatar
      Added short names and descriptions to the UnixSignals class. Also cleaned up · 8dbc336d
      Greg Clayton authored
      the code a bit.
      
      llvm-svn: 116561
      8dbc336d
    • Johnny Chen's avatar
      56f7939c
    • Greg Clayton's avatar
      Separated the DWARF index for types from that the index of the namespaces · 69b0488d
      Greg Clayton authored
      since we can't parse DW_TAG_namespace DIEs as types. They are only decls in
      clang. All of the types we handle right now have both clang "XXXType" classes
      to go with the "XXXDecl" classes which means they can be used within the 
      lldb_private::Type class. I need to check to see which other decls that don't
      have associated type objects need to float around the debugger and possibly
      make a lldb_private::Decl class to manage them.
      
      llvm-svn: 116558
      69b0488d
    • Johnny Chen's avatar
      This is an initial version of test driver enhanceent to be able to dump the · 150c3cc8
      Johnny Chen authored
      session info after a test case failure, allowing more direct inspection of
      debugger session which leads to the test failure.
      
      For a simple usage scenario:
      
      [18:06:26] johnny:/Volumes/data/lldb/svn/trunk/test $ ./dotest.py -v . 2> ~/Developer/Log/lldbtest.log 
      
      ...
      
      [18:14:43] johnny:/Volumes/data/lldb/svn/trunk/test $ ls -l .session-*
      -rw-r--r--  1 johnny  admin  1359 Oct 14 18:06 .session-TestArrayTypes.ArrayTypesTestCase.test_with_dwarf_and_run_command
      -rw-r--r--  1 johnny  admin  2054 Oct 14 18:07 .session-TestClassTypes.ClassTypesTestCase.test_with_dsym_and_expr_parser
      -rw-r--r--  1 johnny  admin  2055 Oct 14 18:07 .session-TestClassTypes.ClassTypesTestCase.test_with_dwarf_and_expr_parser
      -rw-r--r--  1 johnny  admin  1351 Oct 14 17:57 .session-TestClassTypes.ClassTypesTestCase.test_with_dwarf_and_run_command
      [18:14:51] johnny:/Volumes/data/lldb/svn/trunk/test $ 
      
      The test case which failed will have its recorded session info dumped to a
      .session-* file in the current working directory.  For test suite using
      relocated directory, expect to find the .session-* files there.
      
      In this checkin, I also add @skip decorator to the two test methods in
      test/foundation/TestObjCMethods.py as it looks like the test suite is
      deadlocking when running the tests.  More investigations are needed.
      
      llvm-svn: 116552
      150c3cc8
    • Jim Ingham's avatar
      Added support for breakpoint conditions. I also had to separate the "run the... · 36f3b369
      Jim Ingham authored
      Added support for breakpoint conditions.  I also had to separate the "run the expression" part of ClangFunction::Execute from the "Gather the expression result" so that in the case of the Breakpoint condition I can move the condition evaluation into the normal thread plan processing.
      
      Also added support for remembering the "last set breakpoint" so that "break modify" will act on the last set breakpoint.
      
      llvm-svn: 116542
      36f3b369
    • Greg Clayton's avatar
      Fixed an expression parsing issue where if you were stopped somewhere without · 8f92f0a3
      Greg Clayton authored
      debug information and you evaluated an expression, a crash would occur as a
      result of an unchecked pointer.
      
      Added the ability to get the expression path for a ValueObject. For a rectangle
      point child "x" the expression path would be something like: "rect.top_left.x".
      This will allow GUI and command lines to get ahold of the expression path for
      a value object without having to explicitly know about the hierarchy. This
      means the ValueObject base class now has a "ValueObject *m_parent;" member.
      All ValueObject subclasses now correctly track their lineage and are able
      to provide value expression paths as well.
      
      Added a new "--flat" option to the "frame variable" to allow for flat variable
      output. An example of the current and new outputs:
      
      (lldb) frame variable 
      argc = 1
      argv = 0x00007fff5fbffe80
      pt = {
        x = 2
        y = 3
      }
      rect = {
        bottom_left = {
          x = 1
          y = 2
        }
        top_right = {
          x = 3
          y = 4
        }
      }
      (lldb) frame variable --flat 
      argc = 1
      argv = 0x00007fff5fbffe80
      pt.x = 2
      pt.y = 3
      rect.bottom_left.x = 1
      rect.bottom_left.y = 2
      rect.top_right.x = 3
      rect.top_right.y = 4
      
      
      As you can see when there is a lot of hierarchy it can help flatten things out.
      Also if you want to use a member in an expression, you can copy the text from
      the "--flat" output and not have to piece it together manually. This can help
      when you want to use parts of the STL in expressions:
      
      (lldb) frame variable --flat
      argc = 1
      argv = 0x00007fff5fbffea8
      hello_world._M_dataplus._M_p = 0x0000000000000000
      (lldb) expr hello_world._M_dataplus._M_p[0] == '\0'
      
      llvm-svn: 116532
      8f92f0a3
  2. Oct 14, 2010
  3. Oct 13, 2010
  4. Oct 12, 2010
Loading