build: ignore pragma warnings with GCC

GCC does not support '#pragma mark'.  Add -Wno-unknown-pragmas if the compiler
supports it.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205389 91177308-0d34-0410-b5e6-96231b3b80d8
Add explict dependencies on swig .i files for cmake builds

llvm.org/pr19316

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205539 91177308-0d34-0410-b5e6-96231b3b80d8
Avoid crash if symbol returns a null name

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205555 91177308-0d34-0410-b5e6-96231b3b80d8
Don’t crash when we get an invalid .debug_aranges set, just ignore it. Also print out warning messages if LLDB_CONFIGURATION_DEBUG is defined.

<rdar://problem/16516343>

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205634 91177308-0d34-0410-b5e6-96231b3b80d8
Remember to clear the cached data for the OptionValueFileSpec in SetValueFromCString.

<rdar://problem/16179718> target.expr-prefix contents appear to be cached for an entire session

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205636 91177308-0d34-0410-b5e6-96231b3b80d8
Don’t exit the command interpreter if we get interrupted by an EINTR when calling fgets().

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205638 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed a case where we could spin indefinitely if we got an error from fgets that isn't EINTR.

<rdar://problem/16535437>

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205740 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed an issue where if you called:

SBTarget::AddModule(const char *path,
                    const char *triple,
                    const char *uuid_cstr,
                    const char *symfile);

If "symfile" was filled in, it would cause us to not correctly add the module. Same goes for:

SBTarget::AddModule(SBModuleSpec ...)

Where you filled in the symfile.

<rdar://problem/16529799>

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205750 91177308-0d34-0410-b5e6-96231b3b80d8
Accept DWARF version 2 and 3 in debug_line tables

Issue reported by Matthew Gardiner.  Further work is necessary to
synchronize LLDB's DWARF classes with the derivatives now in LLVM.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205771 91177308-0d34-0410-b5e6-96231b3b80d8
Do not rely on invalid pthread API use in thread test

Calling mutex_lock from one thread and then mutex_unlock from another is
not permitted.  Replace the awkward mutex usage with a mutex and
condition variable.

llvm.org/pr18061

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205900 91177308-0d34-0410-b5e6-96231b3b80d8
Use the default TID format in curses UI

TIDs are conventionally shown as decimal values on FreeBSD and Linux.
Thus, use the ${thread.id%tid} format string to display the thread ID,
instead of a fixed hex format.

llvm.org/pr19380

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205912 91177308-0d34-0410-b5e6-96231b3b80d8
<rdar://problem/16540961>

The "unexpected value" message only matters to me, but is bound to make the experience more confusing for people when some uninitialized memory looks like an NSNumber and then can't be formatted properly, and that error comes out in the UI

Just drop the error message entirely - nobody but me cares

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@205978 91177308-0d34-0410-b5e6-96231b3b80d8
Fixed SBThread.GetStopReasonDataAtIndex() to correctly return breakpoint location ID.

Patch from Vyacheslav Karpukhin.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@206040 91177308-0d34-0410-b5e6-96231b3b80d8
Included <inttypes.h> in a few headers that were
using preprocessor constants for printf() format
specifications.

git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@206679 91177308-0d34-0410-b5e6-96231b3b80d8
Utility: fix compilation on Linux

When compiling on Linux with GCC 4.8, compilation would fail due to the use of
the offsetof macro.  This is a standard macro, defined in stddef.h.  Include
this header to ensure that offsetof is declared.

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