Greg Clayton
6b32f1ec18
<rdar://problem/15668743>
...
Fixed a crasher that would only occur if Xcode attaches to a remote process first, then launches.
llvm-svn: 197546
2013-12-18 02:06:45 +00:00
Jason Molenda
eadd2cb459
When ProcessMachCore::DoLoadCore() finds *BOTH* a user process dyld and a mach kernel
...
binary, change to prefer the mach kernel binary by default.
llvm-svn: 197545
2013-12-18 01:56:30 +00:00
Jim Ingham
a6195b732d
Fix a bug introduced in asynchronous packet sends. We were not setting the packet result, and so
...
it looked like the async packet send always failed.
<rdar://problem/15657157>
llvm-svn: 197543
2013-12-18 01:24:33 +00:00
Jason Molenda
b97f44d9ef
Fix how Queue/QueueItem weak pointers are initialized in the ctors.
...
llvm-svn: 197541
2013-12-18 00:58:23 +00:00
Greg Clayton
2553e49a5d
Added missing header files to the Xcode project.
...
llvm-svn: 197527
2013-12-17 21:42:58 +00:00
Todd Fiala
3d782a5410
Test commit: added comment to tools makefile.
...
Comment indicates where linux x86_64 lldb-gdbserver
will soon be added to Makefile builds.
llvm-svn: 197318
2013-12-14 07:21:51 +00:00
Jason Molenda
c8064ac626
Move the ivars / logic of SBQueue into a QueueImpl class and
...
change SBQueue to have a shared pointer to its corresponding
QueueImpl object for binary compatibility.
<rdar://problem/15657926>
llvm-svn: 197300
2013-12-14 01:14:45 +00:00
Greg Clayton
c694751a06
Correctly set the working directory when launching processes for both local and remote targets.
...
llvm-svn: 197266
2013-12-13 19:18:59 +00:00
Greg Clayton
8e9026eee2
Remove #include "lldb/Core/Address.h" from SBQueueItem.h.
...
llvm-svn: 197265
2013-12-13 19:16:52 +00:00
Greg Clayton
67690bb098
There can be no #includes of and internal headers in lldb::SB* classes, only "lldb/API/SB*" and "lldb/lldb*" headers.
...
llvm-svn: 197264
2013-12-13 19:14:12 +00:00
Greg Clayton
b09c5384b0
Centralized the launching of a process into Target::Launch()
...
While investigating test suite failures when running the test suite remotely, I noticed we had 3 copies of code that launched a process:
1 - in "process launch" command
2 - SBTarget::Launch() with args
3 - SBTarget::Launch() with SBLaunchInfo
"process launch" was launching through the platform if it was supported (this is needed for remote debugging) and the 2 and 3 were not.
Now all code is in one place.
llvm-svn: 197247
2013-12-13 17:20:18 +00:00
Sylvestre Ledru
a4cc7dec70
Fixes an issue where a signum => name mapping function has multiple case statements that define to the same integral value on my Linux (Ubuntu 12.04, x86_64). It's for SIGIO and SIGPOLL.
...
In the case that they are both defined the same.
Patch by Todd Fiala (but typos are mine)
llvm-svn: 197221
2013-12-13 09:51:39 +00:00
Greg Clayton
d3b16b3c03
Fixed the size of the malloc buffer to match the size of the string that is memcpy'ed so we don't crash in a fiery ball of death when running the test suite on darwin.
...
llvm-svn: 197200
2013-12-13 02:02:44 +00:00
Greg Clayton
25eec2cc75
Fix to only update the offset for concrete registers (ones that don't have 'slice' or 'composite' key/value pairs).
...
llvm-svn: 197191
2013-12-13 00:35:21 +00:00
Jason Molenda
5e8dce4dbf
Add new Queue, QueueItem, Queuelist, SBQueue, SBQueueItem classes to represent
...
libdispatch aka Grand Central Dispatch (GCD) queues. Still fleshing out the
documentation and testing of these but the overall API is settling down so it's
a good time to check it in.
<rdar://problem/15600370>
llvm-svn: 197190
2013-12-13 00:29:16 +00:00
Greg Clayton
5d9cd184e6
Remove stuff from debugserver Xcode project that didn't belong.
...
llvm-svn: 197188
2013-12-12 23:45:07 +00:00
Han Ming Ong
3a7c3d1bf8
<rdar://problem/15639995>
...
debugserver's launch info was cleared unnecessarily. It has important user ID set. Reviewed by Greg Clayton.
llvm-svn: 197182
2013-12-12 22:14:52 +00:00
Ed Maste
ccc2ebcc83
test: Skip failure on FreeBSD from test infrastructure issue
...
test_convenience_registers_16bit_with_process_attach fails due to
pr18200. The test has a @expectedFailureFreeBSD decorator, but it
appears this does not catch a RuntimError exception raised in the test
infrastructure, so the test still reports failure. For now just skip
it.
llvm-svn: 197174
2013-12-12 20:26:08 +00:00
Jean-Daniel Dupas
13698b2714
Don't try to guess sys header conditions, and simply check if each signal is defined.
...
CC: lldb-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2394
llvm-svn: 197173
2013-12-12 18:12:16 +00:00
Greg Clayton
b73a31efe6
Pickup fixes for demangling crashers.
...
<rdar://problem/15600471>
llvm-svn: 197171
2013-12-12 17:39:39 +00:00
Sylvestre Ledru
6215685ab9
sin_len is not available in the structure sockaddr_in under GNU/Linux. Fix the build failure. Patch by Todd Fiala (and many other who proposed similar patches)
...
llvm-svn: 197155
2013-12-12 13:45:47 +00:00
Jean-Daniel Dupas
b2065ecdd6
Remove useless includes
...
llvm-svn: 197147
2013-12-12 11:52:05 +00:00
Greg Clayton
4705f8d842
LLDB can crash if given DWARF debug info for a class that has a base class which isn't a complete definition.
...
<rdar://problem/15594781>
We need to not crash at any cost. We currently detect if any base classes are forward declarations, emit an error string that directs the use to file a compiler bug, and continues by completing the class with no contents. This avoids a clang crash that would usually follow when we call setBase().
llvm-svn: 197108
2013-12-12 01:54:04 +00:00
Enrico Granata
601ec50ac9
Actually initialize the magic pointer to NULL safely
...
llvm-svn: 197107
2013-12-12 01:47:35 +00:00
Enrico Granata
739050236e
Having binary files in a repository is not a good thing
...
With this checkin, we use the installed clang compiler to build crashinfo.so from crashinfo.c upon every test suite execution
We also try to cleanup after ourselves, which of course will only work if the test suite does not actually crash
llvm-svn: 197106
2013-12-12 01:42:17 +00:00
Enrico Granata
2c3f140551
<rdar://problem/15640353>
...
Add an hook for the test suite into the OSX-only CrashReporter "App-specific info"
This allows the test suite to set the crash info to the name and file location of every test as the test gets executed
If the test suite crashes, the crash log will then report which test is the culprit, even when not using verbose mode
This only works on OSX, and defaults to not doing anything on other platforms, but OS/platform-specific invocations
can be devised by each individual platform
llvm-svn: 197095
2013-12-12 00:02:05 +00:00
Greg Clayton
78f4d95d09
Fixed parsing the DW_TAG_member children for structs, unions and classes to not alway treat every member as a bitfield.
...
The previous fix for bitfields made us always search for anonymous bitfields regardless of the member (bitfield or normal field).
llvm-svn: 197088
2013-12-11 23:10:39 +00:00
Greg Clayton
7cff313335
Make this test an expected fail on darwin until we can fix this bug.
...
llvm-svn: 197087
2013-12-11 23:08:25 +00:00
Sylvestre Ledru
7746736ece
Bug #18214 - Adds LLVMObjCARCOpts.a to Makefile linkage for liblldb.
...
Patch by Todd Fiala
llvm-svn: 197078
2013-12-11 21:55:00 +00:00
Ed Maste
30df85e67f
Fix Linux by partially reverting 196787
...
llvm-svn: 197065
2013-12-11 20:43:27 +00:00
Greg Clayton
4570d3eba0
Massive test suite cleanup to stop everyone from manually having to compute "mydir" inside each test case.
...
This has led to many test suite failures because of copy and paste where new test cases were based off of other test cases and the "mydir" variable wasn't updated.
Now you can call your superclasses "compute_mydir()" function with "__file__" as the sole argument and the relative path will be computed for you.
llvm-svn: 196985
2013-12-10 23:19:29 +00:00
Greg Clayton
eeb15653c6
Fix the test suite after the changes made in revision 196616 exposed issues in the test suite.
...
We must make sure that all ValueObject objects always contain a valid target.
llvm-svn: 196983
2013-12-10 23:16:40 +00:00
Greg Clayton
d30ed41c13
Revert change I didn't mean to check in.
...
llvm-svn: 196956
2013-12-10 19:44:41 +00:00
Greg Clayton
c93068b54f
Add the "--unix-socket" opton back as it was being used.
...
<rdar://problem/15622900>
llvm-svn: 196952
2013-12-10 19:36:45 +00:00
Greg Clayton
765d2e234c
Fix autocompletion for multi-word commands.
...
<rdar://problem/14183288>
llvm-svn: 196949
2013-12-10 19:14:04 +00:00
Ed Maste
8f46ed79bd
test: Skip register test hanging on FreeBSD buildbot
...
llvm-svn: 196941
2013-12-10 18:35:19 +00:00
Sylvestre Ledru
a7830a47f1
As consistency, invoke python with /usr/bin/env (like it is done in the rest of the file). Thanks to Xavier De Gaye for the patch
...
llvm-svn: 196933
2013-12-10 16:51:35 +00:00
Ed Maste
0508125cd4
test: FreeBSD calls the 64-bit x86 platform amd64
...
Also add decorator for an issue that this uncovered: llvm.org/pr18200
llvm-svn: 196920
2013-12-10 14:25:28 +00:00
Ed Maste
687a0c043a
test: Fix match string to work with st0 or stmm0
...
llvm-svn: 196919
2013-12-10 14:20:50 +00:00
Jean-Daniel Dupas
7782de923e
Remove 'const' constraint on ProcessLaunchInfo parameter in Process::DoLaunch().
...
This 'const' is not required and prevent us to defer the launch to the Host layer.
llvm-svn: 196837
2013-12-09 22:52:50 +00:00
Ed Maste
8958af36c1
Fix Linux build after r196787
...
Patch from Xavier de Gaye
llvm-svn: 196830
2013-12-09 22:34:49 +00:00
Ed Maste
90359963ab
Handle endianness in the Opcode class
...
Previously, an opcode set via SetOpcode32 (for example) was later
extracted via GetData() as a byte sequence in host order rather than
target order.
Review: http://llvm-reviews.chandlerc.com/D1838
llvm-svn: 196808
2013-12-09 19:45:33 +00:00
Jean-Daniel Dupas
e5f4780d9b
Replace 'mkdir' shell invocation by native function call.
...
Summary: Now that Host provide a MakeDirectory function, we can use it instead of relying on command line tool to create a directory.
CC: lldb-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2356
llvm-svn: 196801
2013-12-09 19:16:14 +00:00
Jean-Daniel Dupas
59ceb0440e
Update cmake build instruction to compile LLVM in C++11 mode
...
Thanks to Xavier de Gaye for the pointer.
llvm-svn: 196794
2013-12-09 18:13:47 +00:00
Ed Maste
1d981a9606
test: Update decorators for FreeBSD failures with threaded inferior support
...
llvm.org/pr18190
llvm.org/pr18191
llvm-svn: 196792
2013-12-09 17:27:18 +00:00
Ed Maste
10565b61d5
FreeBSD and NetBSD have sa_len in struct sockaddr
...
llvm-svn: 196790
2013-12-09 16:07:11 +00:00
Ed Maste
7fd845cc9d
Threaded inferior support for FreeBSD
...
Modelled in part on GDBRemoteCommunicationClient.
Review: http://llvm-reviews.chandlerc.com/D2267
llvm-svn: 196787
2013-12-09 15:51:17 +00:00
Ed Maste
f369dba051
test: Add annotation for FreeBSD failures w/ threaded inferiors
...
llvm.org/pr17944
llvm.org/pr17946
llvm-svn: 196786
2013-12-09 15:25:37 +00:00
Ed Maste
a4786e0d92
Add decorator for FreeBSD watchpoint failure
...
llvm.org/pr16706
llvm-svn: 196781
2013-12-09 14:24:09 +00:00
Ed Maste
991fe6c701
Fix Debian GNU/kFreeBSD build
...
Use the same LaunchProcessPosixSpawn as on FreeBSD and Linux.
llvm-svn: 196742
2013-12-09 01:35:42 +00:00