| #
1deb7962 |
| 25-Oct-2011 |
Greg Clayton <[email protected]> |
Updated all commands that use a "--format" / "-f" options to use the new OptionGroupFormat. Updated OptionGroupFormat to be able to also use the "--size" and "--count" options. Commands that use a Op
Updated all commands that use a "--format" / "-f" options to use the new OptionGroupFormat. Updated OptionGroupFormat to be able to also use the "--size" and "--count" options. Commands that use a OptionGroupFormat instance can choose which of the options they want by initializing OptionGroupFormat accordingly. Clients can either get only the "--format", "--format" + "--size", or "--format" + "--size" + "--count". This is in preparation for upcoming chnages where there are alternate ways (GDB format specification) to set a format.
llvm-svn: 142911
show more ...
|
|
Revision tags: llvmorg-3.0.0-rc1 |
|
| #
01a67860 |
| 14-Oct-2011 |
Johnny Chen <[email protected]> |
SBValue::Watch() and SBValue::WatchPointee() are now the official API for creating a watchpoint for either the variable encapsulated by SBValue (Watch) or the pointee encapsulated by SBValue (WatchPo
SBValue::Watch() and SBValue::WatchPointee() are now the official API for 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
show more ...
|
| #
f56c0137 |
| 30-Sep-2011 |
Jason Molenda <[email protected]> |
Small fix to "frame select" sans frame # feature added yesterday.
llvm-svn: 140901
|
| #
b62a3be1 |
| 30-Sep-2011 |
Johnny Chen <[email protected]> |
Add an accompanying option to the 'frame variable -w' command to, instead of watching the variable, watch the location pointed to by the variable. An example,
(lldb) frame variable -w write -x 1 -g
Add an accompanying option to the 'frame variable -w' command to, instead of watching the variable, watch the location pointed to by the variable. An example,
(lldb) frame variable -w write -x 1 -g g_char_ptr (char *) g_char_ptr = 0x0000000100100860 ""... Watchpoint created: WatchpointLocation 1: addr = 0x100100860 size = 1 state = enabled type = w declare @ '/Volumes/data/lldb/svn/trunk/test/functionalities/watchpoint/hello_watchlocation/main.cpp:21'
...
(lldb) c Process 3936 resuming
...
rocess 3936 stopped * thread #2: tid = 0x3403, 0x00000001000009b7 a.out`do_bad_thing_with_location(char*, char) + 23 at main.cpp:27, stop reason = watchpoint 1 frame #0: 0x00000001000009b7 a.out`do_bad_thing_with_location(char*, char) + 23 at main.cpp:27 24 do_bad_thing_with_location(char *char_ptr, char new_val) 25 { 26 *char_ptr = new_val; -> 27 } 28 29 uint32_t access_pool (uint32_t flag = 0); 30 (lldb)
Also add TestWatchLocation.py test to exercise this functionality.
llvm-svn: 140836
show more ...
|
| #
82d4a2b9 |
| 29-Sep-2011 |
Jason Molenda <[email protected]> |
Add an additional "frame select" usage where it will re-select the current frame if no frame is specified. This is useful to get the source context lines re-displayed when you need a reminder of whe
Add an additional "frame select" usage where it will re-select the current frame if no frame is specified. This is useful to get the source context lines re-displayed when you need a reminder of where you are in the source currently.
llvm-svn: 140819
show more ...
|
| #
586e8ea4 |
| 28-Sep-2011 |
Johnny Chen <[email protected]> |
Fix help string for "frame variable".
llvm-svn: 140714
|
| #
5d043464 |
| 26-Sep-2011 |
Johnny Chen <[email protected]> |
Add SB API class SBWatchpointLocation and some extra methods to the SBTarget class to iterate on the available watchpoint locations and to perform watchpoint manipulations.
I still need to export th
Add SB API class SBWatchpointLocation and some extra methods to the SBTarget 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
show more ...
|
| #
c14ee32d |
| 22-Sep-2011 |
Greg Clayton <[email protected]> |
Converted the lldb_private::Process over to use the intrusive shared pointers.
Changed the ExecutionContext over to use shared pointers for the target, process, thread and frame since these objects
Converted the lldb_private::Process over to use the intrusive shared pointers.
Changed the ExecutionContext over to use shared pointers for the target, process, thread and frame since these objects can easily go away at any time and any object that was holding onto an ExecutionContext was running the risk of using a bad object.
Now that the shared pointers for target, process, thread and frame are just a single pointer (they all use the instrusive shared pointers) the execution context is much safer and still the same size.
Made the shared pointers in the the ExecutionContext class protected and made accessors for all of the various ways to get at the pointers, references, and shared pointers.
llvm-svn: 140298
show more ...
|
| #
18d7b950 |
| 16-Sep-2011 |
Johnny Chen <[email protected]> |
Fix typo.
llvm-svn: 139948
|
| #
2a82cd52 |
| 16-Sep-2011 |
Johnny Chen <[email protected]> |
Add comment.
llvm-svn: 139947
|
| #
de6bd243 |
| 16-Sep-2011 |
Johnny Chen <[email protected]> |
Add a declaraion info member field to the WatchpointLocation class. Modify CommandObjectFrame.cpp to populate this field when creating a watchpoint location. Update the test case to verify that the d
Add a declaraion info member field to the WatchpointLocation class. 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
show more ...
|
| #
2fd89a09 |
| 13-Sep-2011 |
Johnny Chen <[email protected]> |
Get the address and the size of the variable for passing to the Target::CreateWatchpointLocation() method.
llvm-svn: 139614
|
| #
1e49e5e7 |
| 12-Sep-2011 |
Johnny Chen <[email protected]> |
Remove an unnecessary 'else { ... }', which adds to vertical as well as horizontal spans, from CommandObjectFrame::Execute().
llvm-svn: 139561
|
| #
887062ae |
| 12-Sep-2011 |
Johnny Chen <[email protected]> |
Watchpoint WIP:
o Rename from OptionGroupWatchpoint::WatchMode to OptionGroupWatchpoint::WatchType, and CommandArgumentType::eArgTypeWatchMode to CommandArgumentType::eArgTypeWatchType. Update t
Watchpoint WIP:
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
show more ...
|
| #
926d086e |
| 12-Sep-2011 |
Johnny Chen <[email protected]> |
Fix indentations, add some comments.
llvm-svn: 139534
|
| #
3a9838c0 |
| 12-Sep-2011 |
Johnny Chen <[email protected]> |
Fix a bug in OptionGroupWatchpoint.cpp where the '-w' option arg parsing result was not checked to effect an early error return.
Plus add logic to 'frame variable' command object to check that when
Fix a bug in OptionGroupWatchpoint.cpp where the '-w' option arg parsing result was not checked to effect an early error return.
Plus add logic to 'frame variable' command object to check that when watchpoint option is on, only one variable with exact name (no regex) is specified as the sole command arg.
llvm-svn: 139524
show more ...
|
| #
78d0638b |
| 09-Sep-2011 |
Enrico Granata <[email protected]> |
Renaming a bulk of method calls from Get() to something more descriptive
llvm-svn: 139435
|
| #
b1d7529e |
| 09-Sep-2011 |
Johnny Chen <[email protected]> |
Add OptionGroupWatchpoint.cpp/.h (preparatory work) for hooking up watchpoint to the 'frame variable' comand. To watch a variable for read/write, issue:
frame variable -w read_write
Note that '
Add OptionGroupWatchpoint.cpp/.h (preparatory work) for hooking up watchpoint to the 'frame variable' comand. To watch a variable for read/write, issue:
frame variable -w read_write
Note that '-w' option is not working yet. :-)
llvm-svn: 139434
show more ...
|
| #
2592b872 |
| 08-Sep-2011 |
Johnny Chen <[email protected]> |
Remove code rot (unused class OptionGroupFrameVariable) from CommandObjectFrameVariable. Plus minor indentation change.
llvm-svn: 139335
|
| #
213b4546 |
| 08-Sep-2011 |
Jim Ingham <[email protected]> |
"frame select -r" should return an error if you are already at the top of the stack & try to go up or at the bottom and try to go down.
llvm-svn: 139273
|
| #
650543f9 |
| 27-Aug-2011 |
Jim Ingham <[email protected]> |
Hold onto a shared pointer to the frame CommandObjectFrameVariable::Execute is analyzing so it won't get deleted on us if a formatter runs code.
llvm-svn: 138692
|
| #
0a976141 |
| 22-Aug-2011 |
Enrico Granata <[email protected]> |
More cleanups ; Separated implementation of FormatManager from class DataVisualization as a front-end by using separate .h/.cpp files - Final aim is to break up FormatManager.h/cpp into several separ
More cleanups ; Separated implementation of FormatManager from class DataVisualization as a front-end by using separate .h/.cpp files - Final aim is to break up FormatManager.h/cpp into several separate files
llvm-svn: 138279
show more ...
|
| #
c482a192 |
| 17-Aug-2011 |
Enrico Granata <[email protected]> |
First round of code cleanups: - all instances of "vobj" have been renamed to "valobj" - class Debugger::Formatting has been renamed to DataVisualization (defined in FormatManager.h/cpp) The inte
First round of code cleanups: - all instances of "vobj" have been renamed to "valobj" - class Debugger::Formatting has been renamed to DataVisualization (defined in FormatManager.h/cpp) The interface to this class has not changed - FormatCategory now uses ConstString's as keys to the navigators instead of repeatedly casting from ConstString to const char* and back all the time Next step is making the same happen for categories themselves - category gnu-libstdc++ is defined in the constructor for a FormatManager The source code for it is defined in gnu_libstdcpp.py, drawn from examples/synthetic at compile time All references to previous 'osxcpp' name have been removed from both code and file names Functional changes: - the name of the option to use a summary string for 'type summary add' has changed from the previous --format-string to the new --summary-string. It is expected that the short option will change from -f to -s, and -s for --python-script will become -o
llvm-svn: 137886
show more ...
|
| #
379447a7 |
| 15-Aug-2011 |
Enrico Granata <[email protected]> |
Refactoring of ValueObject::DumpValueObject and 'frame variable', 'target variable' commands to use an Options object instead of passing an ever-increasing number of arguments to the DumpValueObject(
Refactoring of ValueObject::DumpValueObject and 'frame variable', 'target variable' commands to use an Options object instead of passing an ever-increasing number of arguments to the DumpValueObject() method, with the ultimate aim of making that call private implementation
llvm-svn: 137622
show more ...
|
| #
61a80ba6 |
| 12-Aug-2011 |
Enrico Granata <[email protected]> |
Giving a warning to the user the first time children are truncated by the new cap setting
llvm-svn: 137462
|