MingW compilation (windows). Includes various refactoring to improve portability.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189107 91177308-0d34-0410-b5e6-96231b3b80d8
Don't recommend using bytearray(buf, 'ascii') for binary data read with 
SBProcess::ReadMemory - it will fail for anything with the high bit set.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189154 91177308-0d34-0410-b5e6-96231b3b80d8
Add Host/common/ProcessRunLock.cpp to the xcode project file so TOT sources build with xcode again.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189163 91177308-0d34-0410-b5e6-96231b3b80d8
Fix DWARF for 0-length CIE (data after the length should not be read if length is 0).

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189191 91177308-0d34-0410-b5e6-96231b3b80d8
PECOFF: Add support for export table.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189192 91177308-0d34-0410-b5e6-96231b3b80d8
unused variable, typedef requires name warning cleanup

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189231 91177308-0d34-0410-b5e6-96231b3b80d8
merge lldb-platform-work branch (and assorted fixes) into trunk

    Summary:
    This merge brings in the improved 'platform' command that knows how to
    interface with remote machines; that is, query OS/kernel information, push
    and pull files, run shell commands, etc... and implementation for the new
    communication packets that back that interface, at least on Darwin based
    operating systems via the POSIXPlatform class. Linux support is coming soon.

    Verified the test suite runs cleanly on Linux (x86_64), build OK on Mac OS
    X Mountain Lion.

    Additional improvements (not in the source SVN branch 'lldb-platform-work'):
    - cmake build scripts for lldb-platform
    - cleanup test suite
    - documentation stub for qPlatform_RunCommand
    - use log class instead of printf() directly
    - reverted work-in-progress-looking changes from test/types/TestAbstract.py that work towards running the test suite remotely.
    - add new logging category 'platform'

    Reviewers: Matt Kopec, Greg Clayton

    Review: http://llvm-reviews.chandlerc.com/D1493




git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189295 91177308-0d34-0410-b5e6-96231b3b80d8
When ObjectFileMachO::GetModuleSpecifications is getting the ArchSpec
out of a binary, if the Mach-O binary is MH_PRELOAD ("standalone"), don't
let the OS be set to "ios" or "macosx" - there will be no dynamic loader
used when debugging this process.
<rdar://problem/9956443> 


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189305 91177308-0d34-0410-b5e6-96231b3b80d8
OptionValueFileSpec::SetValueFromCString() is passed a complete file pathname -- it 
should not split up that pathname itself or require quoting to avoid the same.

This fixing a bug where target create -c "core file" or target create -s "symbol file"
will fail with an error message that the paths haven't been properly quoted.  Working
around it required target create -c "core\ file" to survive both attemps at tokenizing.

<rdar://problem/14230629> 



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189313 91177308-0d34-0410-b5e6-96231b3b80d8
Plugins/ObjectFile/PECOFF: Use enums from LLVM, and don't use Mach-O definitions.

Since I renamed most of the LLVM Mach-O enums in r189314, I had to go fix
LLDB to use the new names. While I was here, I decided that a COFF
plugin really shouldn't be using Mach-O enums.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189316 91177308-0d34-0410-b5e6-96231b3b80d8
Fix some names in the wake of my Mach-O changes to LLVM.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189317 91177308-0d34-0410-b5e6-96231b3b80d8
Core: Fix non-Darwin build.

More fallout from my mass-Mach-O-renaming.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189323 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed a few typos.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189355 91177308-0d34-0410-b5e6-96231b3b80d8
As promised in previous commit, docs for qPlatform_RunCommand.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189360 91177308-0d34-0410-b5e6-96231b3b80d8
Fix missing declaration/includes in freebsd/Host.cpp

Thanks for catching this Ed!



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189361 91177308-0d34-0410-b5e6-96231b3b80d8
Fix MinGW build after lldb-platform-work merge:

- mode_t is defined in <sys/types.h>
- reorganized S_* user rights into win32.h
- Use Host::Kill instead of kill
- Currently #ifdef functions using pread/pwrite.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189364 91177308-0d34-0410-b5e6-96231b3b80d8
Remove need of <functional> for CommandObjectCommands.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189365 91177308-0d34-0410-b5e6-96231b3b80d8
Rename EmulationStateARM::sd_regs to avoid name clash (MSVC).

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189366 91177308-0d34-0410-b5e6-96231b3b80d8
Use standard boolean operators.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189367 91177308-0d34-0410-b5e6-96231b3b80d8
Fix warnings about redefined macros at the end of File.cpp
- removed needless defines that snuck in as part of the lldb-platform-work merge



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@189392 91177308-0d34-0410-b5e6-96231b3b80d8