summaryrefslogtreecommitdiffstats
path: root/lldb/source/Breakpoint/WatchpointLocation.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SBValue::Watch() and SBValue::WatchPointee() are now the official API for ↵Johnny Chen2011-10-141-184/+0
| | | | | | | | | | | | | | | | | | creating a watchpoint for either the variable encapsulated by SBValue (Watch) or the pointee encapsulated by SBValue (WatchPointee). Removed SBFrame::WatchValue() and SBFrame::WatchLocation() API as a result of that. Modified the watchpoint related test suite to reflect the change. Plus replacing WatchpointLocation with Watchpoint throughout the code base. There are still cleanups to be dome. This patch passes the whole test suite. Check it in so that we aggressively catch regressions. llvm-svn: 141925
* Simplify the verbose output of WatchpointLocation::DumpWithLevel().Johnny Chen2011-10-061-6/+12
| | | | llvm-svn: 141307
* Export the watchpoint related API (SBWatchpointLocation class and added ↵Johnny Chen2011-09-271-1/+0
| | | | | | | | | | | | | | SBTarget methods) to the Python interface. Implement yet another (threre're 3 now) iterator protocol for SBTarget: watchpoint_location_iter(), to iterate on the available watchpoint locations. And add a print representation for SBWatchpointLocation. Exercise some of these Python API with TestWatchpointLocationIter.py. llvm-svn: 140595
* Add SB API class SBWatchpointLocation and some extra methods to the SBTarget ↵Johnny Chen2011-09-261-0/+1
| | | | | | | | | | | class to iterate on the available watchpoint locations and to perform watchpoint manipulations. I still need to export the SBWatchpointLocation class as well as the added watchpoint manipulation methods to the Python interface. And write test cases for them. llvm-svn: 140575
* Add initial implementation of watchpoint commands for list, enable, disable, ↵Johnny Chen2011-09-221-16/+25
| | | | | | | | and delete. Test cases to be added later. llvm-svn: 140322
* StopInfoWatchpoint should override the StopInfo::ShouldStop() virtual method ↵Johnny Chen2011-09-211-2/+6
| | | | | | | | | and delegate to the WatchpointLocation object to check whether it should stop and allow it to update the hit count, among other bookkeepings. llvm-svn: 140279
* Add some watchpoint maintenance methods to the Target class.Johnny Chen2011-09-201-1/+2
| | | | | | Plus some minor changes to the WatchpointLocationList and WatchpointLocation classes. llvm-svn: 140211
* Add a declaraion info member field to the WatchpointLocation class.Johnny Chen2011-09-161-12/+34
| | | | | | | Modify CommandObjectFrame.cpp to populate this field when creating a watchpoint location. Update the test case to verify that the declaration info matches the file and line number. llvm-svn: 139946
* Add logging to Target::CreateWatchpointLocation() and fix some bug of using ↵Johnny Chen2011-09-141-3/+1
| | | | | | | | the wrong variable. Plus simplify WatchpointLocation::Dump() output. llvm-svn: 139724
* Watchpoint WIP:Johnny Chen2011-09-131-1/+1
| | | | | | | | | | | | | | | | | o WatchpointLocationList: Add a GetListMutex() method. o WatchpointLocation: Fix Dump() method where there was an extra % in the format string. o Target.cpp: Add implementation to CreateWatchpointLocation() to create and enable a watchpoint. o DNBArchImplX86_64.cpp: Fix bugs in SetWatchpoint()/ClearWatchpoint() where '==' was used, instead of '=', to assign/reset the data break address to a debug register. Also fix bugs where a by reference debug_state should have been used, not by value. llvm-svn: 139666
* Add trivial implementation for GetDescription().Johnny Chen2011-09-131-1/+2
| | | | llvm-svn: 139568
* Watchpoint WIP:Johnny Chen2011-09-121-0/+7
| | | | | | | | | | | | o Rename from OptionGroupWatchpoint::WatchMode to OptionGroupWatchpoint::WatchType, and CommandArgumentType::eArgTypeWatchMode to CommandArgumentType::eArgTypeWatchType. Update the sources to reflect the change. o Add a CreateWatchpointLocation() method to Target class, which is currently not implmeneted (returns an empty WatchpointLocationSP object). Add logic to CommandObjectFrame::Execute() to exercise the added API for creating a watchpoint location. llvm-svn: 139560
* Fill out implementation of Enable/DisableWatchpoint() for ProcessGDBRemote ↵Johnny Chen2011-09-061-1/+1
| | | | | | | | class (Not Tested Yet). Also update the signature of WatchpointLocation::SetEnable() to take a bool as input arg. llvm-svn: 139198
* Change the signature of WatchpointLocation ctor so that the second param becomesJohnny Chen2011-09-061-2/+2
| | | | | | | 'size_t size', instead of 'lldb::tid_t tid'. Pass size to the StoppointLocation ctor as well. llvm-svn: 139131
* Merged Eli Friedman's linux build changes where he added Makefile files thatGreg Clayton2010-07-091-2/+2
| | | | | | | enabled LLVM make style building and made this compile LLDB on Mac OS X. We can now iterate on this to make the build work on both linux and macosx. llvm-svn: 108009
* Add a "thread specification" class that specifies thread specific ↵Jim Ingham2010-06-161-1/+0
| | | | | | | | | | | | breakpoints by name, index, queue or TID. Push this through all the breakpoint management code. Allow this to be set when the breakpoint is created. Fix the Process classes so that a breakpoint hit that is not for a particular thread is not reported as a breakpoint hit event for that thread. Added a "breakpoint configure" command to allow you to reset any of the thread specific options (or the ignore count.) llvm-svn: 106078
* Initial checkin of lldb code from internal Apple repo.Chris Lattner2010-06-081-0/+137
llvm-svn: 105619
OpenPOWER on IntegriCloud