1. Sep 08, 2012
    • Greg Clayton's avatar
      Patch from Andrew Kaylor for linux: · 542e4075
      Greg Clayton authored
      
      The attached patch adds support for debugging 32-bit processes when running a 64-bit lldb on an x86_64 Linux system.
       
      Making this work required two basic changes:
       
      1)      Getting lldb to report that it could debug 32-bit processes
      2)      Changing an assumption about how ptrace works when debugging cross-platform
       
      For the first change, I took a conservative approach and only enabled this for x86_64 Linux platforms.  It may be that the change I made in Host.cpp could be extended to other 64-bit Linux platforms, but I'm not familiar enough with the other platforms to know for sure.
       
      For the second change, the Linux ProcessMonitor class was assuming that ptrace(PTRACE_[PEEK|POKE]DATA...) would read/write a "word" based on the child process word size.  However, the ptrace documentation says that the "word" size read or written is "determined by the OS variant."  I verified experimentally that when ptracing a 32-bit child from a 64-bit parent a 64-bit word is read or written.
      
      llvm-svn: 163398
      542e4075
    • DeLesley Hutchins's avatar
      Thread-safety analysis: Add support for selectively turning off warnings · a5a00e83
      DeLesley Hutchins authored
      within part of a particular method.
      
      llvm-svn: 163397
      a5a00e83
    • Jakob Stoklund Olesen's avatar
      Custom DAGCombine for and/or/xor are for all ARMs. · e45e22b2
      Jakob Stoklund Olesen authored
      The 'select' transformations apply to all ARM architectures and don't
      require hasV6T2Ops.
      
      llvm-svn: 163396
      e45e22b2
    • Benjamin Kramer's avatar
      MC: Overhaul handling of .lcomm · 47f9ec92
      Benjamin Kramer authored
      - Darwin lied about not supporting .lcomm and turned it into zerofill in the
        asm parser. Push the zerofill-conversion down into macho-specific code.
      - This makes the tri-state LCOMMType enum superfluous, there are no targets
        without .lcomm.
      - Do proper error reporting when trying to use .lcomm with alignment on a target
        that doesn't support it.
      - .comm and .lcomm alignment was parsed in bytes on COFF, should be power of 2.
      - Fixes PR13755 (.lcomm crashes on ELF).
      
      llvm-svn: 163395
      47f9ec92
    • Anna Zaks's avatar
      [analyzer] Explain why we need condition 8. · 67e0062b
      Anna Zaks authored
      llvm-svn: 163394
      67e0062b
  2. Sep 07, 2012