1. May 08, 2015
    • Ed Maste's avatar
      Add expectedFailureFreeBSD decorator for buildbot pexpect issue · e5f9bf0d
      Ed Maste authored
      I'm not yet sure what's wrong with pexpect and I cannot reproduce this
      problem locally. XFAIL these tests for now to reduce buildbot noise so
      I can track down the remaining buildbot failures.
      
      llvm.org/pr22784
      
      llvm-svn: 236857
      e5f9bf0d
    • James Y Knight's avatar
      Fix test added in r236850 for OSX builders. · 38514d21
      James Y Knight authored
      Need to specify triple so that llvm emits the asm syntax that the
      test expected.
      
      llvm-svn: 236855
      38514d21
    • Manuel Klimek's avatar
      Make emacs show when clang-format encountered a syntax error. · 3dfe4a87
      Manuel Klimek authored
      Propagate the 'incomplete-format' state back through clang-format's command
      line interace and adapt the emacs integration to show a better result.
      
      llvm-svn: 236854
      3dfe4a87
    • Ed Maste's avatar
      Enable TestCallStopAndContinue on FreeBSD · 0cb96aaf
      Ed Maste authored
      It's reported to pass consistently on Linux now, and it passed for me
      in local testing on FreeBSD. Remove the expectedFailureFreeBSD decorator
      for now.
      
      llvm.org/pr20274
      
      llvm-svn: 236853
      0cb96aaf
    • Jozef Kolek's avatar
      [mips][microMIPSr6] Implement ADDIUPC and LWPC instructions · 9ce6e0a9
      Jozef Kolek authored
      This patch implements ADDIUPC and LWPC instructions using mapping.
      
      Differential Revision: http://reviews.llvm.org/D8415
      
      llvm-svn: 236852
      9ce6e0a9
    • Daniel Jasper's avatar
      clang-format: Several improvements around formatting braced lists. · e4c16c7c
      Daniel Jasper authored
      In particular:
      * If the difference between the longest and shortest element, we copped
        out of column format completely. Now, we instead allow to arrange
        these in a single column, essentially enforcing a one-per-line format.
      * Allow column layout even if there are braced lists. Especially, if
        there are many short lists, this can be beneficial. The bad case,
        where there is a long nested init list is usually caught as we now
        limit the length difference of the longest and shortest element.
      
      llvm-svn: 236851
      e4c16c7c
    • James Y Knight's avatar
      Fix alignment checks in MergeConsecutiveStores. · 284e7b3d
      James Y Knight authored
      1) check whether the alignment of the memory is sufficient for the
      *merged* store or load to be efficient.
      
      Not doing so can result in some ridiculously poor code generation, if
      merging creates a vector operation which must be aligned but isn't.
      
      2) DON'T check that the alignment of each load/store is equal. If
      you're merging 2 4-byte stores, the first *might* have 8-byte
      alignment, but the second certainly will have 4-byte alignment. We do
      want to allow those to be merged.
      
      llvm-svn: 236850
      284e7b3d
    • Igor Laevsky's avatar
      Fix coding standart based on post submit comments. · 9d3932bf
      Igor Laevsky authored
      Differential Revision: http://reviews.llvm.org/D7760
      
      llvm-svn: 236849
      9d3932bf
    • Nemanja Ivanovic's avatar
      Fix for bug 23429. · 531a656c
      Nemanja Ivanovic authored
      The macros for gcc atomic compare and swaps are defined for Power8 CPU's since
      the functionality is provided in the back end.
      
      llvm-svn: 236848
      531a656c
    • Sagar Thakur's avatar
      [TSan][MIPS] XFAIL long jump tests for MIPS64 · 3e493037
      Sagar Thakur authored
      Mark longjmp tests as XFAIL because longjmp assembly for mips is not yet implemented.
      
      Reviewers: dsanders, dvyukov, samsonov
      Subscribers: llvm-commits, mohit.bhakkad, jaydeep
      Differential Revision: http://reviews.llvm.org/D9526
      
      llvm-svn: 236847
      3e493037
    • John Brawn's avatar
      [ARM] Give an error on invalid -march values · a95c1a83
      John Brawn authored
      llvm::Triple::getARMCPUForArch now returns nullptr for invalid -march
      values, instead of silently translating it to arm7tdmi. Use this to
      give an error message, which is consistent with how gcc behaves.
      
      Differential Revision: http://reviews.llvm.org/D9602
      
      llvm-svn: 236846
      a95c1a83
    • John Brawn's avatar
      [ARM] Reject invalid -march values · 50ed9470
      John Brawn authored
      Restructure Triple::getARMCPUForArch so that invalid values will
      return nullptr, while retaining the behaviour that an argument
      specifying no particular architecture version will give a default
      CPU. This will be used by clang to give an error on invalid -march
      values.
      
      Also restructure the extraction of the architecture version from
      the MArch string a little to hopefully make what it's doing clearer.
      
      Differential Revision: http://reviews.llvm.org/D9599
      
      llvm-svn: 236845
      50ed9470
    • Sagar Thakur's avatar
      [ASAN] Use regex for addresses in kernel_area.cc test · 6c253006
      Sagar Thakur authored
      This test was failing on mips because mips addresses are 40-bit long.
      Using regex for address solves this issue.
      
      Reviewers: dsanders, kcc, samsonov
      Subscribers: llvm-commits, mohit.bhakkad, jaydeep
      Differential Revision: http://reviews.llvm.org/D9516
      
      llvm-svn: 236844
      6c253006
    • Tamas Berghammer's avatar
      Use /data/local/tmp as temp directory on android · f3a24329
      Tamas Berghammer authored
      If no temp directory specified by the user on android then fall back
      to /data/local/tmp what is always present on the device. It removes
      the dependency of specifying TMPDIR for executing platform commands
      on android.
      
      Differential revision: http://reviews.llvm.org/D9569
      
      llvm-svn: 236843
      f3a24329
    • Denis Protivensky's avatar
      [ARM] Check overflow of R_ARM_THM_JUMP11 · 679c2c36
      Denis Protivensky authored
      llvm-svn: 236842
      679c2c36
    • Denis Protivensky's avatar
      [ARM] Check overflow of R_ARM_CALL/JUMP24 · 73e92788
      Denis Protivensky authored
      llvm-svn: 236841
      73e92788
    • Ilia K's avatar
      fc6d6614
    • Denis Protivensky's avatar
      [ARM] Check overflow of R_ARM_THM_CALL/JUMP24 · a0cffffc
      Denis Protivensky authored
      llvm-svn: 236839
      a0cffffc
    • Denis Protivensky's avatar
      Fix gcc warning of different enum and non-enum types in ternary · 159a49e5
      Denis Protivensky authored
      Make '0' literal explicitly unsigned with '0u'.
      This appeared after r236775.
      
      llvm-svn: 236838
      159a49e5
    • Ilia K's avatar
      Fix =breakpoint-created event after creation of BP (MI) · fd0325b8
      Ilia K authored
      For example:
      was:
      ```
      $ bin/lldb-mi ~/p/hello
      [...]
      -break-insert main
      ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100000e2d",func="main",file="hello.cpp",fullname="/Users/IliaK/p/hello.cpp",line="14",times="0",original-location="main"}
      (gdb)
      =breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100000e2d",func="main",file="hello.cpp",fullname="/Users/IliaK/p/hello.cpp",line="14",times="0",original-location="main"}
      ```
      
      now:
      ```
      $ bin/lldb-mi ~/p/hello
      [...]
      -break-insert main
      ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100000e2d",func="main",file="hello.cpp",fullname="/Users/IliaK/p/hello.cpp",line="14",times="0",original-location="main"}
      (gdb)
      =breakpoint-created,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100000e2d",func="main",file="hello.cpp",fullname="/Users/IliaK/p/hello.cpp",line="14",times="0",original-location="main"}
      ```
      
      llvm-svn: 236837
      fd0325b8
    • Colin Riley's avatar
      Fix build on windows. · 5de42514
      Colin Riley authored
      llvm-svn: 236836
      5de42514
    • Toma Tabacu's avatar
      [mips] Only use FGR_{32,64} in TableGen descriptions. NFC. · 8b3345ba
      Toma Tabacu authored
      Summary: Instead of explicitly adding the IsFP64bit and NotFP64bit predicates through AdditionalRequires.
      
      Reviewers: dsanders
      
      Reviewed By: dsanders
      
      Subscribers: llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D9566
      
      llvm-svn: 236835
      8b3345ba
    • Ilia K's avatar
      Remove duplicated code in CMICmdCmdBreakInsert::Acknowledge (MI) · 3e6f5155
      Ilia K authored
      llvm-svn: 236834
      3e6f5155
    • Viktor Kutuzov's avatar
      [Msan] Fix the report-demangling.cc test to pass on FreeBSD · b0d28db6
      Viktor Kutuzov authored
      Differential Revision: http://reviews.llvm.org/D9554
      
      llvm-svn: 236833
      b0d28db6
    • Ilia K's avatar
      Fix -break-insert without -f to cause an error if BP not resolved (MI) · e077ef7a
      Ilia K authored
      For example:
      was:
      ```
      $ bin/lldb-mi ~/p/hello
      [...]
      -break-insert main
      ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100000e2d",func="main",file="hello.cpp",fullname="/Users/Ilia
      hello.cpp",line="14",pending=["main"],times="0",original-location="main"}
      ```
      
      now:
      ```
      $ bin/lldb-mi ~/p/hello
      [...]
      -break-insert main
      ^error,msg="Command 'break-insert'. Breakpoint location 'main' not found"
      ```
      
      llvm-svn: 236832
      e077ef7a
    • Viktor Kutuzov's avatar
      [Msan] Make the obstack.cc test Linux-specific · 7d5dfe1f
      Viktor Kutuzov authored
      Differential Revision: http://reviews.llvm.org/D9552
      
      llvm-svn: 236831
      7d5dfe1f
    • Ilia K's avatar
      Fix BP address for local symbols if target not launched (MI) · 913b2d4f
      Ilia K authored
      For example:
      was:
      ```
      $ bin/lldb-mi ~/p/hello
      [...]
      -break-insert -f main
      ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0xffffffffffffffff",func="main",file="hello.cpp",fullname="/Users/IliaK/p/hello.cpp",line="14",pending=["main"],times="0",original-location="main"}
      ```
      
      now:
      ```
      $ bin/lldb-mi ~/p/hello
      [...]
      -break-insert -f main
      ^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100000e2d",func="main",file="hello.cpp",fullname="/Users/IliaK/p/hello.cpp",line="14",pending=["main"],times="0",original-location="main"}
      ```
      
      llvm-svn: 236830
      913b2d4f
    • Igor Laevsky's avatar
      This change is refactoring only. It moves basic block normalization for... · 5e23e16c
      Igor Laevsky authored
      This change is refactoring only. It moves basic block normalization for invokes to happen before replacement of a call with safepoint in "ReplaceWithStatepoint". Previously it was partly done before replacement of calls with safepoint and partly after call replacement but before RAUW's for gc_relocates, which was confusing.
      
      llvm-svn: 236829
      5e23e16c
    • Alexey Bataev's avatar
      [OPENMP] Fixed atomic construct with non-integer expressions. · 9d541a72
      Alexey Bataev authored
      Do not emit 'atomicrmw' instruction for simple atomic constructs with non-integer expressions.
      
      llvm-svn: 236828
      9d541a72
    • Ilia K's avatar
      Add support for Unicode strings in CMICmnLLDBUtilSBValue::GetValue (MI) · b9bfd969
      Ilia K authored
      This patch includes the following changes:
      # Add CMIUtilString::ConvertToASCII to convert unicode to ASCII (MI)
      # Rework CMICmnLLDBUtilSBValue::GetSimpleValue to print wide/unicode char (MI)
      ## Add CMICmnLLDBUtilSBValue::GetSimpleValueChar
      ## Extend CMICmnLLDBUtilSBValue::IsCharType to accept char16_t/char32_t
      ## Don't ignore the fail_value in SBValue::GetValueAsUnsigned
      # Rework CMIUtilString::ConvertToASCII (MI)
      ## Don't use templates
      ## Change the function signature to convert signle characters (was std::basic_string)
      ## Rename CMIUtilString::ConvertToASCII to CMIUtilString::ConvertToPrintableASCII
      # Add CMIUtilString::ConvertToPrintableASCII for char (MI)
      ## Refactor CMIUtilString::Escape
      ## Simplify CMICmnLLDBUtilSBValue::GetSimpleValueChar for char
      # Add char16_t* and char32_t* support in CMICmnLLDBUtilSBValue::GetSimpleValue (MI)
      ## Add CMICmnLLDBUtilSBValue::GetSimpleValueCStringPointer
      ## Add CMICmnLLDBUtilSBValue::ReadCStringFromHostMemory2
         (it's extended version of CMICmnLLDBUtilSBValue::ReadCStringFromHostMemory)
      # Improve error checking in CMICmnLLDBUtilSBValue::GetSimpleValueChar (MI)
      # Refactor CMICmnLLDBUtilSBValue (MI)
      ## Remove CMICmnLLDBUtilSBValue::ReadCStringFromHostMemory
         (use CMICmnLLDBUtilSBValue::ReadCStringFromHostMemory2 instead)
      ## Rename CMICmnLLDBUtilSBValue::ReadCStringFromHostMemory2 to
         CMICmnLLDBUtilSBValue::ReadCStringFromHostMemory
      ## Move CMICmnLLDBUtilSBValue::GetValueCString to private methods
      ## Rename CMICmnLLDBUtilSBValue::GetValueCString to
         CMICmnLLDBUtilSBValue::GetSimpleValueCStringArray
      ## Remove CMICmnLLDBUtilSBValue::GetChildValueCString
      # Improve MiGdbSetShowTestCase.test_lldbmi_gdb_set_show_print_char_array_as_string test to check char16_t/char32_t (MI)
      # Fix CMICmnLLDBUtilSBValue::GetSimpleValueCStringArray for Unicode (MI)
      ## Fix handling of char16_t and char32_t
      ## Improve CMICmnLLDBUtilSBValue::ReadCStringFromHostMemory to read
         variables of type char[]: add vnMaxLen argument
      ## Turn on few cases to check char16_t[] and char32_t[] output in
         MiGdbSetShowTestCase.test_lldbmi_gdb_set_show_print_char_array_as_string
      # Remove unnecessary checks in CMICmnLLDBUtilSBValue (MI)
      
      llvm-svn: 236827
      b9bfd969
    • Tamas Berghammer's avatar
      Re-enable compute load address for shared modules · 84dc009b
      Tamas Berghammer authored
      It is required because of systems using PIE code
      
      llvm-svn: 236826
      84dc009b
    • Ilia K's avatar
      Fix -var-create for undefined variables (MI) · 24862eac
      Ilia K authored
      llvm-svn: 236825
      24862eac
    • Ilia K's avatar
      Print process's output line by line (MI) · a4cfe98a
      Ilia K authored
      For example:
      was:
      ```
      @"'\r\n` - it's \\ni=1\r\nj=2\r\nx=3\r\ny=4\r\nargc: /Users/IliaK/p/hello\r\nargc: (null)\r\n"
      ```
      
      now:
      ```
      @"'\r\n"
      @"` - it's \\ni=1\r\n"
      @"j=2\r\n"
      @"x=3\r\n"
      @"y=4\r\n"
      @"argc: /Users/IliaK/p/hello\r\n"
      @"argc: (null)\r\n"
      ```
      
      llvm-svn: 236824
      a4cfe98a
    • Simon Atanasyan's avatar
      [ELF] Initialize the _outputMagic class field using default value · cb9547b9
      Simon Atanasyan authored
      No functional changes.
      
      llvm-svn: 236823
      cb9547b9
    • Ilia K's avatar
      Add MiExitTestCase.test_lldbmi_q that checks reduction of quit (MI) · f1796dc6
      Ilia K authored
      llvm-svn: 236822
      f1796dc6
    • Alexey Bataev's avatar
      [OPENMP] Code cleanup for capturing of variables in OpenMP regions. · 39f915b8
      Alexey Bataev authored
      llvm-svn: 236821
      39f915b8
    • Ilia K's avatar
      Fix -var-list-children command (MI) · 307b9176
      Ilia K authored
      This patch incldues the following:
      # Add from/to arguments in -var-list-children command (MI)
      ## Handle from and to args
      ## Don't print children=[] if numchild is 0
      ## A bit refactoring
      ## Add MiVarTestCase.test_lldbmi_var_list_children test
      # Refactor -var-list-children (MI)
      ## Remove CMICmdCmdVarListChildren::VecMIValueResult_t
      ## Add CMICmdCmdVarListChildren::m_miValueList
      ## Remove CMICmdCmdVarListChildren::m_vecMiValueResult
         (use CMICmdCmdVarListChildren::m_miValueList instead)
      ## Print error message if value is invalid:
         ```
           ^error,msg="variable invalid"
         ```
      ## Refactor CMICmdCmdVarListChildren::Acknowledge and remove duplicated code
      ## Don't print children=[] if numchild is 0
      ## Add error checking
      ## Use CMICmnLLDBDebugSessionInfo::VariableInfoFormat_e for print-values
      ## Add few more empty-range test cases in MiVarTestCase.test_lldbmi_var_list_children
      #Improve MiVarTestCase.test_lldbmi_var_list_children test (MI)
      
      llvm-svn: 236820
      307b9176
    • Pavel Labath's avatar
      Have lldb_assert accept bool expressions · 014d32b3
      Pavel Labath authored
      Summary:
      This changes lldb_assert to accept bool expressions as the parameter, this is because some
      objects (such as std::shared_ptr) are convertible to bool, but are not convertible to int, which
      leads to surprising errors.
      
      Reviewers: granata.enrico, zturner
      
      Subscribers: lldb-commits
      
      Differential Revision: http://reviews.llvm.org/D9565
      
      llvm-svn: 236819
      014d32b3
    • Tamas Berghammer's avatar
      Fix parsing of the plt section for android-arm · 85fadd9f
      Tamas Berghammer authored
      The ELF data contains two different errors in some ELF files on android.
      * The link field of the symbol table don't point to the plt section or
        to the dynsym section even when it is present in the ELF files.
      * The size of the plt entries aren't specified in the section header of
        the plt section.
      
      This CL adds some workarounds for these two issue with finding the
      sections by name if the link field is empty and by using a heuristic to
      calculate the size and offset of the plt entries.
      
      Differential revision: http://reviews.llvm.org/D9560
      
      llvm-svn: 236818
      85fadd9f
    • Aidan Dodds's avatar
      This patch allows LLDB to use the $qXfer:Libraries: packet. · c0c83851
      Aidan Dodds authored
      Differential Revision: http://reviews.llvm.org/D9471
      
      llvm-svn: 236817
      c0c83851