Go to file
Greg Clayton c0e8a85ea8 Modified Value.cpp to share the code that gets the values as bytes (Value::GetValueAsData()) so now Value::ResolveValue() doesn't do its own thing by reading memory directly.
Also modified the Value class so that you can evaluate expressions without a process, yet with some sections loaded in the target. This allows casting pointers that are in data sections to types and being able to evaluate expressions in the data. For example:

(lldb) target create a.out
(lldb) target modules load --file a.out --slide 0
... find address of something in data ...
(lldb) script
expr_opts = lldb.SBExpressionOptions()
v = lldb.target.EvaluateExpression('(foo *)0x1230000', expr_opts)
print v
vv = lldb.value(v)
print v.pt.x

Above we were able to cast a pointer to an address which was in a.out's data
section and print out entire structures and navigate to the child ivars of the expression.

llvm-svn: 172227
2013-01-11 18:01:02 +00:00
clang Implements pulling simple blocks into a single line. 2013-01-11 17:54:10 +00:00
clang-tools-extra Update users of RefactoringTool 2013-01-11 17:04:09 +00:00
compiler-rt asan: fix FIXME on windows 2013-01-11 17:57:24 +00:00
debuginfo-tests XTARGET was removed, update debug-info tests. 2012-10-20 01:38:50 +00:00
libclc Update the copyright coredits -- Happy new year 2013! 2013-01-01 10:00:19 +00:00
libcxx Made test output iterators have value_type of 'void'; matches ones in library 2013-01-09 17:20:02 +00:00
libcxxabi Update the copyright coredits -- Happy new year 2013! 2013-01-01 10:00:19 +00:00
lld add noinhibit exec option 2013-01-11 15:11:47 +00:00
lldb Modified Value.cpp to share the code that gets the values as bytes (Value::GetValueAsData()) so now Value::ResolveValue() doesn't do its own thing by reading memory directly. 2013-01-11 18:01:02 +00:00
llvm Follow-up typo correction from building the wrong branch. 2013-01-11 17:51:16 +00:00
polly Dead code elimination: Make variable names uppercase 2013-01-08 08:53:58 +00:00