llvm-project/lldb
Sean Callanan eb918cd789 Now in the presence of an Objective-C version 2
runtime, we read method signatures for both class
and instance methods out of the runtime data.

(lldb) fr var str
(NSString *) str = 0x0000000105000180 @"Hello from '/Volumes/Data/projects/lldb/test/lang/objc/foundation/a.out'"
(lldb) expr str.length
(unsigned long long) $0 = 72
(lldb) expr [NSString stringWithCString:"Hello world!" encoding:1]
(id) $1 = 0x0000000105100050
(lldb) po $1
$1 = 0x0000000105100050 Hello world!

(lldb) fr var array1
(NSArray *) array1 = 0x000000010010a6e0 @"3 objects"
(lldb) expr array1.count
(unsigned long long) $0 = 3
(lldb) expr [array1 objectAtIndex:2]
(id) $1 = 0x00000001000025d0
(lldb) po $1
$1 = 0x00000001000025d0 array1 object3

Notice that both regular and property-style notation
work.  I still need to add explicit support for
properties with non-default setters/getters.

This information is only queried if an Objective-C
object does not have debug information for a complete
type available.  Otherwise we query debug information
as usual.

llvm-svn: 164878
2012-09-29 01:53:36 +00:00
..
docs Incorporate suggestions from Jim, add "USING LLDB" and "FILES" sections. 2012-06-08 23:49:32 +00:00
examples Implementing plugins that provide commands. 2012-09-28 23:57:51 +00:00
include Implementing plugins that provide commands. 2012-09-28 23:57:51 +00:00
lib Patch by Matt, to get lldb to build with the updated llvm+clang versions (via Makefiles). 2012-09-26 16:27:06 +00:00
lldb.xcodeproj Implementing plugins that provide commands. 2012-09-28 23:57:51 +00:00
lldb.xcworkspace I accidentally committed some changes to the 2011-12-21 21:30:33 +00:00
resources Bump to lldb-168, debugserver-193. 2012-09-20 06:42:30 +00:00
scripts Implementing plugins that provide commands. 2012-09-28 23:57:51 +00:00
source Now in the presence of an Objective-C version 2 2012-09-29 01:53:36 +00:00
test Added support for the DebugClang configuration to the 2012-09-26 21:16:15 +00:00
tools Fix the extra space char being emitted in this message when breakpoints resolve - 2012-09-28 01:50:47 +00:00
utils Minor cleanup. 2012-03-05 18:25:29 +00:00
www Add examples of using the kdp-remote and gdb-remote commands to connect to 2012-09-26 22:42:25 +00:00
.gitignore Remove "llvm" from list of things to ignore. This results in the 2012-03-03 06:43:59 +00:00
INSTALL.txt You'll need to be running Mac OS X to get lldb to build right now. 2010-06-09 07:29:26 +00:00
LICENSE.TXT test commit 2010-06-09 03:55:24 +00:00
Makefile Don't force libc++ and c++11 on everyone. 2012-09-14 17:09:06 +00:00