Greg Clayton
fed39aa653
Added the ability to read the dSYM plist file with source remappings even when DebugSymbols isn't used to find the dSYM. We now parse the plist as XML in the MacOSX symbol vendor.
...
Added the ability to get a section load address given a target which is needed for a previous checking which saves crashlogs.
llvm-svn: 159298
2012-06-27 22:22:28 +00:00
Greg Clayton
8567355e8c
Modify the ranges_access() helper function to be able to lookup the address range in a block given an address. Since blocks can have multiple discontiguous ranges, it helps to be able to get the current address range for the current block in a frame. This can be used in code like:
...
curr_block_range = lldb.frame.block.range[lldb.frame.addr]
llvm-svn: 159289
2012-06-27 20:23:09 +00:00
Greg Clayton
3e6dde6652
Fixed the get_process_thread_list function to correctly return a list of all threads in a process.
...
llvm-svn: 159288
2012-06-27 20:19:56 +00:00
Jim Ingham
70f11f88e3
Make a way to set the result status for Python defined commands, and don't overwrite the status of the result if
...
the python command has set it.
llvm-svn: 159273
2012-06-27 17:25:36 +00:00
Jim Ingham
5a98841673
Make raw & parsed commands subclasses of CommandObject rather than having the raw version implement an
...
Execute which was never going to get run and another ExecuteRawCommandString. Took the knowledge of how
to prepare raw & parsed commands out of CommandInterpreter and put it in CommandObject where it belongs.
Also took all the cases where there were the subcommands of Multiword commands declared in the .h file for
the overall command and moved them into the .cpp file.
Made the CommandObject flags work for raw as well as parsed commands.
Made "expr" use the flags so that it requires you to be paused to run "expr".
llvm-svn: 158235
2012-06-08 21:56:10 +00:00
Johnny Chen
b90827e66c
rdar://problem/11584012
...
Refactorings of watchpoint creation APIs so that SBTarget::WatchAddress(), SBValue::Watch(), and SBValue::WatchPointee()
now take an additional 'SBError &error' parameter (at the end) to contain the reason if there is some failure in the
operation. Update 'watchpoint set variable/expression' commands to take advantage of that.
Update existing test cases to reflect the API change and add test cases to verify that the SBError mechanism works for
SBTarget::WatchAddress() by passing an invalid watch_size.
llvm-svn: 157964
2012-06-04 23:19:54 +00:00
Jim Ingham
de22182b33
Fix the comments about LLDB_DISABLE_PYTHON in the python swig shell scripts to be more clear.
...
llvm-svn: 157506
2012-05-26 00:23:52 +00:00
Johnny Chen
a0d4b5da35
Fix missing Resources/Python directory for macosx build.
...
llvm-svn: 157405
2012-05-24 18:14:18 +00:00
Jim Ingham
777e6d01ea
Change the "Debug" build to use the current MacOSX SDK. Fix the swig builder to have an explicit
...
short-circuit of the Python SWIG building, rather than relying on the SDKROOT being set.
llvm-svn: 157363
2012-05-24 01:16:09 +00:00
Johnny Chen
f9ef60d236
Add SBProcess::GetNumSupportedHardwareWatchpoints() API and export it through the Python scripting bridge.
...
Add/modify some test cases.
llvm-svn: 157353
2012-05-23 22:34:34 +00:00
Jim Ingham
6904a934ec
Add GetID to the .i file.
...
llvm-svn: 156927
2012-05-16 17:15:08 +00:00
Jim Ingham
7ba6e99158
Found one more place where the OkayToDiscard needs to be consulted.
...
Also changed the defaults for SBThread::Step* to not delete extant plans.
Also added some test cases to test more complex stepping scenarios.
llvm-svn: 156667
2012-05-11 23:47:32 +00:00
Filipe Cabecinhas
1a96ef800b
Make every Python API __len__() method return a PyIntObject.
...
swig 2.0+ seems to default to using PyLongObjects, but the __len__()
method _must_ return a PyIntObject.
llvm-svn: 156639
2012-05-11 20:39:42 +00:00
Filipe Cabecinhas
0bfed4bc7a
Fix SBProcess::ReadMemory's typemap to handle PyLongObjects.
...
llvm-svn: 156638
2012-05-11 20:38:28 +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
Enrico Granata
07a4ac22ed
<rdar://problem/11239650> Fixing a bug where the SetValueFromCString() method failed to operate on dynamic values. The fix consists in making the set operation fall through to the parent. We only actually allow this if the dynamic value is at a 0-offset from the parent, or the new value is 0. Other scenarios would need agreement on the actual meaning of the set operation (do we keep offsetting? do we just assume the user knows what they are doing?) so we prevent them, and let the expression parser deal with the complexity
...
llvm-svn: 156422
2012-05-08 21:25:06 +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
Greg Clayton
d712ef0fd7
Remove the "-x" from the finish-swig-Python-LLDB.sh shell options so it doesn't print out all of the commands when executing the shell script.
...
Cleaned up the lldb.utils.symbolication, lldb.macosx.heap and lldb.macosx.crashlog. The lldb.macosx.heap can now build a dylib for the current triple into a temp directory and use it from there.
llvm-svn: 155577
2012-04-25 18:40:20 +00:00
Enrico Granata
7d22221759
Returning data formatters to their previous working condition - Plus fixing an issue that was preventing Python oneliners from executing
...
llvm-svn: 155563
2012-04-25 17:53:41 +00:00
Greg Clayton
ed3eee6e55
Now that we have an LLDB package, make the "lldb.macosx.crashlog" module work with all of the new module paths.
...
llvm-svn: 155528
2012-04-25 01:49:50 +00:00
Enrico Granata
5b4ab4c848
Ensure that lldb/runtime is not a dead point in the Python package hierarchy - This is a first preliminary step in fixing data formatters after Greg's changes to the Python resources on-disk layout
...
llvm-svn: 155525
2012-04-25 01:26:37 +00:00
Greg Clayton
6d98f56c58
Maked LLDB into a package so we can import things without poluting the global namespace.
...
Enrico will follow this up with fixing the data formatter test cases that are failing.
llvm-svn: 155514
2012-04-25 00:58:03 +00:00
Greg Clayton
b210aec64d
Added the ability to specify the symbol file for a module when adding it to a target.
...
llvm-svn: 155384
2012-04-23 20:23:39 +00:00
Greg Clayton
c8e0c244e4
Expose GetAddressClass() from both the SBAddress and SBInstruction so clients can tell the difference between ARM/Thumb opcodes when disassembling ARM.
...
llvm-svn: 154633
2012-04-13 00:07:34 +00:00
Greg Clayton
851eacb507
Added a property to get the dynamic type which uses the most permissive way to get a dynamic type.
...
llvm-svn: 154502
2012-04-11 16:20:15 +00:00