- Sep 12, 2012
-
-
Filipe Cabecinhas authored
llvm-svn: 163725
-
Jim Ingham authored
llvm-svn: 163670
-
- Sep 05, 2012
-
-
Enrico Granata authored
llvm-svn: 163250
-
- Aug 30, 2012
-
-
Greg Clayton authored
./verify_api.py --library ./LLDB.framework/LLDB --api-regex lldb --arch x86_64 /Applications/Xcode.app/Contents/PlugIns/DebuggerLLDB.ideplugin/Contents/MacOS/DebuggerLLDB So you specify a library with the "--library" option, then you specify an API regular expression that you want to match the executables against with "--api-regex <regex>", here we specify "lldb" to catch all undefined external API functions from the binary we want to test, then we specify the architectures to check with "--arch <arch>" (this can be specified more than once), and you give one or more executables. llvm-svn: 162941
-
- Aug 28, 2012
-
-
Filipe Cabecinhas authored
llvm-svn: 162753
-
- Aug 27, 2012
-
-
Enrico Granata authored
llvm-svn: 162685
-
- Aug 25, 2012
-
-
Filipe Cabecinhas authored
- Tweaked a parameter name in SBDebugger.h so my typemap will catch it; - Added a SBDebugger.Create(bool, callback, baton) to the swig interface; - Added SBDebugger.SetLoggingCallback to the swig interface; - Added a callback utility function for log callbacks; - Guard against Py_None on both callback utility functions; - Added a FIXME to the SBDebugger API test; - Added a __del__() stub for SBDebugger. We need to be able to get both the log callback and baton from an SBDebugger if we want to protect against memory leaks (or make the user responsible for holding another reference to the callback). Additionally, it's impossible to revert from a callback-backed log mechanism to a file-backed log mechanism. llvm-svn: 162633
-
- Aug 24, 2012
-
-
Enrico Granata authored
llvm-svn: 162527
-
Enrico Granata authored
llvm-svn: 162513
-
- Aug 22, 2012
-
-
Filipe Cabecinhas authored
llvm-svn: 162373
-
Filipe Cabecinhas authored
Now it's possible to use SBInputReader callbacks in Python. We leak the callback object, unfortunately. A __del__ method can be added to SBInputReader, but we have no way to check the callback function that is on the reader. So we can't call Py_DECREF on it when we have our PythonCallback function. One way to do it is to assume that reified SBInputReaders always have a Python callback (and always call Py_DECREF). Another one is to add methods or properties to SBInputReader (or make the m_callback_function property public). llvm-svn: 162356
-
- Aug 20, 2012
-
-
Johnny Chen authored
Also modify the boundary condition test case SBDebugger.DispatchInput(None) to be wrapped inside a try-except clause for now. llvm-svn: 162228
-
Filipe Cabecinhas authored
I also added a typemap to make DispatchInput usable in Python. llvm-svn: 162204
-
Filipe Cabecinhas authored
llvm-svn: 162203
-
- Aug 18, 2012
-
-
Johnny Chen authored
llvm-svn: 162161
-
- Aug 10, 2012
-
-
rdar://problem/11457143Johnny Chen authored
Add 'watchpoint command add/delete/list' to lldb, plus two .py test files. llvm-svn: 161638
-
- Aug 09, 2012
-
-
Sean Callanan authored
libc++. We also no longer use the GNU extensions to C++ and C (we didn't use them anyway). This also means that the LLVM we use must be built with the new libc++. I will commit llvm.zip next. <rdar://problem/11930775> llvm-svn: 161562
-
Sean Callanan authored
llvm-svn: 161560
-
- Aug 01, 2012
-
-
rdar://problem/11275622Greg Clayton authored
Added new API to lldb::SBTypeMember for bitfields: bool SBTypeMember::IsBitfield(); uint32_t SBTypeMember::GetBitfieldSizeInBits(); Also added new properties for easy access. Now SBTypeMember objects in python have a "fields" property for all type fields, "bases" for all direct bases, "vbases" for all virtual base classes and "members" for a combo of all three organized by bit offset. They all return a python list() of SBTypeMember objects. Usage: (lldb) script >>> t = lldb.target.FindFirstType("my_type") >>> for field in t.fields: ... print field >>> for vbase in t.vbases: ... print vbase >>> for base in t.bases: ... print base >>> for member in t.members: ... print member Also added new "is_bitfield" property to the SBTypeMember objects that will return the result of SBTypeMember::IsBitfield(), and "bitfield_bit_size" which will return the result of SBTypeMember::GetBitfieldSizeInBits(); I also fixed "SBTypeMember::GetOffsetInBytes()" to return the correct byte offset. llvm-svn: 161091
-
- Jul 28, 2012
-
-
Jim Ingham authored
Convert from calling Halt in the lldb Driver.cpp's input reader's sigint handler to sending this AsyncInterrupt so it can be handled in the event loop. If you are attaching and get an async interrupt, abort the attach attempt. Also remember to destroy the process if get interrupted while attaching. Getting this to work also required handing the eBroadcastBitInterrupt in a few more places in Process WaitForEvent & friends. <rdar://problem/10792425> llvm-svn: 160903
-
- Jul 26, 2012
-
-
Sean Callanan authored
corrected the offsets for x86_64 conditional branch instructions. <rdar://problem/11502148> llvm-svn: 160769
-
- Jul 21, 2012
-
-
Sean Callanan authored
branch address printing in the x86 disassembler. <rdar://problem/11925357> llvm-svn: 160588
-
- Jul 20, 2012
-
-
Jim Ingham authored
Add "vAttachOrWait" to debugserver, so you can implement "attach to the process if it exists OR wait for it" without race conditions. Use that in lldb. llvm-svn: 160578
-
- Jul 13, 2012
-
-
Jim Ingham authored
Add accessors on process to get & set the selected thread by IndexID (useful since that's the one that "thread list" shows and it won't get reused even if the underlying system thread ID gets reused. llvm-svn: 160187
-
Sean Callanan authored
LLDB to distinguish between multiple anonymous structs/unions in the same class. <rdar://problem/11466212> llvm-svn: 160186
-
- Jun 30, 2012
-
-
Greg Clayton authored
Added documentation for many of our python properties and also made the property help show up by declaring the properties correctly. We previosly declared properties into a local "x" variable, what I didn't realize is that the help will use this as the property name for the help output. llvm-svn: 159468
-
- Jun 28, 2012
-
-
Greg Clayton authored
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
-
- Jun 27, 2012
-
-
Greg Clayton authored
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
-
Greg Clayton authored
llvm-svn: 159288
-
Jim Ingham authored
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
-
- Jun 08, 2012
-
-
Jim Ingham authored
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
-
- Jun 05, 2012
-
-
Johnny Chen authored
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
-
- May 30, 2012
-
-
Johnny Chen authored
llvm-svn: 157656
-
- May 26, 2012
-
-
Jim Ingham authored
llvm-svn: 157506
-
- May 24, 2012
-
-
Johnny Chen authored
llvm-svn: 157405
-
Jim Ingham authored
short-circuit of the Python SWIG building, rather than relying on the SDKROOT being set. llvm-svn: 157363
-
Johnny Chen authored
Add SBProcess::GetNumSupportedHardwareWatchpoints() API and export it through the Python scripting bridge. Add/modify some test cases. llvm-svn: 157353
-
- May 22, 2012
-
-
Sean Callanan authored
(0xd 0xd 0xa0 0xf4, or "vld2hs.8 {d0[], d1[]}, [r0]!") llvm-svn: 157289
-
- May 21, 2012
-
-
Sean Callanan authored
it doesn't try to call LookupDestructor on an incomplete class. llvm-svn: 157199
-
- May 19, 2012
-
-
Sean Callanan authored
the LOCK prefix to be printed explicitly when it's the first prefix on the instruction. llvm-svn: 157096
-