Files
clang-p2996/lldb/test/functionalities/set-data/main.m
Sean Callanan 389823e995 Added a SetData() method to ValueObject. This
lets a ValueObject's contents be set from raw
data.  This has certain limitations (notably,
registers can only be set to data that is as
large as the register) but will be useful for
the new Materializer.

I also exposed this interface through SBValue.
I have added a testcase that exercises various
special cases of SBValue::SetData().

llvm-svn: 179437
2013-04-13 01:21:23 +00:00

20 lines
369 B
Objective-C

#import <Foundation/Foundation.h>
int main ()
{
@autoreleasepool
{
struct foo {
int x;
int y;
} myFoo;
myFoo.x = 2;
myFoo.y = 3; // First breakpoint
NSString *string = [NSString stringWithFormat:@"%s", "Hello world!"];
NSLog(@"%d %@", myFoo.x, string); // Second breakpoint
}
}