Filipe Cabecinhas
970c6f39da
Make dbgnub-config.pl work with multiline env vars.
...
llvm-svn: 157664
2012-05-30 00:44:14 +00:00
Filipe Cabecinhas
20a5813a5f
Substitute LLVMLibsOptions for LD.Flags so we can find the mentioned libs
...
llvm-svn: 157616
2012-05-29 13:35:46 +00:00
Johnny Chen
6463720505
Add the capability to display the number of supported hardware watchpoints to the "watchpoint list" command.
...
Add default Process::GetWatchpointSupportInfo() impl which returns an error of "not supported".
Add "qWatchpointSupportInfo" packet to the gdb communication layer to support this, and modify TestWatchpointCommands.py to test it.
llvm-svn: 157345
2012-05-23 21:09:52 +00:00
Johnny Chen
e26c721976
Fix a typo.
...
llvm-svn: 156952
2012-05-16 22:01:10 +00:00
Jason Molenda
3bcf4b5cc7
Bump debugserver version # to 187.
...
llvm-svn: 156888
2012-05-16 00:40:45 +00:00
Jason Molenda
94379541e2
Change lockdown API use in RNBSocket::ConnectToService.
...
<rdar://problem/10800927>
llvm-svn: 156883
2012-05-16 00:36:21 +00:00
Greg Clayton
c0debe8566
Don't intercept the quit command and override what is was doing. This was causing the "lldb" command line to deadlock when the quit command was executed sometimes.
...
llvm-svn: 156595
2012-05-11 00:27:51 +00:00
Johnny Chen
bbc00939f2
Sanity check the return value from SBSCopyApplicationDisplayIdentifiers() before calling CFArrayGetCount() on it.
...
rdar://problem/11331867
llvm-svn: 156562
2012-05-10 19:24:41 +00:00
Johnny Chen
fd02a89960
Make ctrl-c terminate the current input line and start an empty line, instead of the previous content.
...
rdar://problem/11412821
llvm-svn: 156510
2012-05-09 21:03:07 +00:00
Jim Ingham
8499e1a4cb
Print out a notification when the process of a target other than the currently selected target stops.
...
llvm-svn: 156433
2012-05-08 23:06:07 +00:00
Greg Clayton
7051231709
<rdar://problem/11358639>
...
Switch over to the "*-apple-macosx" for desktop and "*-apple-ios" for iOS triples.
Also make the selection process for auto selecting platforms based off of an arch much better.
llvm-svn: 156354
2012-05-08 01:45:38 +00:00
Johnny Chen
5a4b4b86d6
Move the el_source() call after the section of code which sets up the default "ctrl-r" and "ctrl-w" bindings
...
so that user-provided .editrc has a chance to override the lldb's default key bindings.
llvm-svn: 156314
2012-05-07 18:18:08 +00:00
Johnny Chen
66b7c59593
Jason Molenda convinced me that we should make ctrl-w on the command line bind to ed-delete-prev-word.
...
If you have ctrl-w key binding specified with your .editrc file, it will be overridden with ed-delete-prev-word. :-)
llvm-svn: 156230
2012-05-05 04:44:12 +00:00
Jim Ingham
64e7ead1d8
Clean up the usage of "MasterPlan" status in ThreadPlans. Only user-initiated plans
...
should be MasterPlans that want to stay on the plan stack. So make all plans NOT
MasterPlans by default and then have the SB API's and the CommandObjectThread step
commands set this explicitly.
Also added a "clean up" phase to the Thread::ShouldStop so that if plans get stranded
on the stack, we can remove them. This is done by adding an IsPlanStale method to the
thread plans, and if the plan can know that it is no longer relevant, it returns true,
and the plan and its sub-plans will get discarded.
llvm-svn: 156101
2012-05-03 21:19:36 +00:00
Jim Ingham
57190baa6c
Don't call SBDebugger::SetInternalVariable in the sigwinch_handler, since that takes locks and potentially does allocations.
...
Just call SBDebugger::SetTerminalWidth on the driver's SBDebugger, which does the same job, but no locks.
Also add the value checking to SetTerminalWidth you get with SetInternalVariable(..., "term-width", ...).
rdar://problem/11310563
llvm-svn: 155665
2012-04-26 21:39:32 +00:00
Greg Clayton
caca09b628
Patch from Filipe Cabecinhas.
...
llvm-svn: 155641
2012-04-26 17:11:01 +00:00
Greg Clayton
7afbe07a0d
Patch from Filipe Cabecinhas.
...
llvm-svn: 155640
2012-04-26 17:09:38 +00:00
Jim Ingham
5d2735e502
Suspend program threads before sending the SIGSTOP & resuming, so other threads won't get into trouble while we are waiting for the SIGSTOP.
...
rdar://problem/11174834
llvm-svn: 155560
2012-04-25 17:45:26 +00:00
Greg Clayton
4463399b0d
Added a new packet to our GDB remote protocol:
...
QListThreadsInStopReply
This GDB remote query command can enable added a "threads" key/value pair to all stop reply packets so that we always get a list of all threads in each stop reply packet. It increases performance if enabled (the reply to the "QListThreadsInStopReply" is "OK") by saving us from sending to command/reply pairs (the "qfThreadInfo" and "qsThreadInfo" packets), and also helps us keep the current process state up to date.
llvm-svn: 154380
2012-04-10 03:22:03 +00:00
Greg Clayton
3c18cd3de1
Fixed the C++11 #defines that wrap std::weak_ptr to actually use std::weak_ptr.
...
llvm-svn: 154041
2012-04-04 20:03:33 +00:00
Sean Callanan
139656580f
Updating Xcode project version numbers for lldb-137 and debugserver-186
...
llvm-svn: 153823
2012-04-01 06:36:59 +00:00
Greg Clayton
45cffd4943
Missed a file in the last FreeBSD patch.
...
llvm-svn: 153662
2012-03-29 17:46:49 +00:00
Greg Clayton
59b4fa1813
FreeBSD patch that enabled the lldb-platform to be built from Viktor Kutuzov.
...
llvm-svn: 153661
2012-03-29 17:46:11 +00:00
Sean Callanan
e41438ca8b
Updating Xcode project version numbers for lldb-136 and debugserver-185
...
llvm-svn: 153630
2012-03-29 02:40:34 +00:00
Jason Molenda
03c970e2fe
Bump version to debugserver-184, lldb-135.
...
llvm-svn: 153374
2012-03-24 04:05:56 +00:00
Jason Molenda
91fe8072ab
Small tweak to list of arches to build debugserver for on arm.
...
llvm-svn: 153371
2012-03-24 03:51:07 +00:00
Johnny Chen
760c54e640
Fix a typo.
...
llvm-svn: 153301
2012-03-23 01:28:19 +00:00
Johnny Chen
3f8140a6d8
Make arm debugserver handle setting a watchpoint on, for example, (uint64_t)variable.
...
We do this by delegating to two available Watchpoint Register Pairs (wvr, wcr). With
each pair handling the 4 bytes of (uint64_t)variable.
llvm-svn: 153300
2012-03-23 01:24:52 +00:00
Greg Clayton
aaaec7cf1f
Bumped Xcode project versions for lldb-134 and debugserver-183.
...
llvm-svn: 153298
2012-03-23 01:04:39 +00:00
Johnny Chen
d45a9c32c2
Previous check-ins allow to hit the arm hardware watchpoint, with a workaound to handle the issue
...
that the inferior cannot execute past the watchpoint-triggering instruction.
The solution is disable the watchpoint before resuming the inferior and make it hardware single step;
when the inferior stops again due to single step, re-enable the watchpoint and disable the single step
to make the inferior able to continue again without obstacle.
rdar://problem/9667960
llvm-svn: 153273
2012-03-22 20:04:07 +00:00
Johnny Chen
8c9739eeda
Fixed a bug with the r153228 check-in earlier today in that the cached watchpoint
...
member variables were not reset appropriately.
llvm-svn: 153239
2012-03-22 05:10:43 +00:00
Johnny Chen
7cb09b61b2
WIP snapshot of hardware watchpoints for arm. A simple watchpoint has triggered.
...
However, the debugserver cannot get past the instruction which triggered the watchpoint.
So a workaround is in place for the time being which disables the triggered watchpoint
before resuming.
Lots of commented out printf's remain in the source which needs to be cleaned up.
WIP rdar://problem/9667960
llvm-svn: 153228
2012-03-22 00:08:13 +00:00
Jason Molenda
be55f383f0
Bump to lldb-133.
...
Remove unused entitlements plist from debugserver.
llvm-svn: 152973
2012-03-17 03:27:04 +00:00
Johnny Chen
e025e30a0e
Fix FRAMEWORK_SEARCH_PATHS for iOS builds.
...
llvm-svn: 152948
2012-03-16 21:25:14 +00:00
Sean Callanan
9f9ab86581
Updating Xcode project version numbers for lldb-132 and debugserver-182
...
llvm-svn: 152901
2012-03-16 06:05:58 +00:00
Sean Callanan
cc5039dd9e
Updating Xcode project version numbers for lldb-131 and debugserver-181
...
llvm-svn: 152726
2012-03-14 17:15:39 +00:00
Greg Clayton
d64afba584
<rdar://problem/10434005>
...
Prepare LLDB to be built with C++11 by hiding all accesses to std::tr1 behind
macros that allows us to easily compile for either C++.
llvm-svn: 152698
2012-03-14 03:07:05 +00:00
Jason Molenda
64cab1220a
bump to debugserver-180
...
llvm-svn: 152687
2012-03-14 00:00:36 +00:00
Jason Molenda
9514fa3d39
On iOS builds, install debugserver in /Developer/usr/bin.
...
Also add a copy files phase for -target ios that installs
the debugserver launch plists.
llvm-svn: 152680
2012-03-13 23:29:39 +00:00
Jason Molenda
08441ba45e
Send an "OK" response to the "D" (detach) packet.
...
v. http://sourceware.org/gdb/current/onlinedocs/gdb/Packets.html#Packets
the detach packet is supposed to send a reply.
llvm-svn: 152671
2012-03-13 21:10:35 +00:00
Greg Clayton
9096603ae1
Bumped Xcode project versions for lldb-129 and debugserver-179.
...
llvm-svn: 152606
2012-03-13 02:26:21 +00:00
Jason Molenda
0c482971e4
version bump to 178
...
llvm-svn: 152602
2012-03-13 02:12:55 +00:00
Jason Molenda
d60205e68e
Don't SKIP_INSTALL for sdk==iOS, install in to /usr/local/bin for now.
...
llvm-svn: 152601
2012-03-13 01:56:24 +00:00
Jason Molenda
16d7581fdb
Pull in another plist from the old debugserver project.
...
Switch default compiler to clang.
llvm-svn: 152600
2012-03-13 01:23:54 +00:00
Greg Clayton
701a6b473d
<rdar://problem/11030692>
...
SBProcess::PutSTDIN() was not working for a few builds on darwin when using debugserver. This is now fixed.
llvm-svn: 152569
2012-03-12 19:02:41 +00:00
Jason Molenda
5a37223ece
Bump debugserver version to 177.
...
llvm-svn: 152464
2012-03-10 01:09:40 +00:00
Jason Molenda
bdf4161ab7
Re-enable the use of the ARMDisassembler framework when building debugserver for ios.
...
Greg disabled this back in 2012-01-10 r147886 but we still need to use it.
<rdar://problem/11016745>
llvm-svn: 152463
2012-03-10 01:09:05 +00:00
Jim Ingham
329617a80a
Make debugserver quieter about memory read errors.
...
<rdar://problem/10681220>
llvm-svn: 152438
2012-03-09 21:09:42 +00:00
Greg Clayton
b5225c863c
Bumping Xcode project versions for lldb-126 and debugserver-176.
...
llvm-svn: 152383
2012-03-09 04:31:35 +00:00
Greg Clayton
ef5a7b1c36
Bumping Xcode project version for lldb-124 and debugserver-175.
...
llvm-svn: 152294
2012-03-08 04:15:20 +00:00