Go to file
Sean Callanan 322f529b37 Added a user-settable variable, 'target.expr-prefix',
which holds the name of a file whose contents are
prefixed to each expression.  For example, if the file
~/lldb.prefix.header contains:

typedef unsigned short my_type;

then you can do this:

(lldb) settings set target.expr-prefix '~/lldb.prefix.header'
(lldb) expr sizeof(my_type)
(unsigned long) $0 = 2

When the variable is changed, the corresponding file
is loaded and its contents are fetched into a string
that is stored along with the target.  This string
is then passed to each expression and inserted into
it during parsing, like this:

typedef unsigned short my_type;
                             
void                           
$__lldb_expr(void *$__lldb_arg)          
{                              
    sizeof(my_type);                        
}

llvm-svn: 117627
2010-10-29 00:29:03 +00:00
clang expand discussion of __block C++ on-stack objects 2010-10-28 23:30:10 +00:00
compiler-rt make: Add CheckCommandLineOverrides to my little Makefile library, a routine for 2010-10-14 21:23:37 +00:00
debuginfo-tests testcase commit for upcoming fix. 2010-09-21 20:51:54 +00:00
libcxx Fixed bug in random_shuffle to avoid swapping with self 2010-10-22 15:26:39 +00:00
lldb Added a user-settable variable, 'target.expr-prefix', 2010-10-29 00:29:03 +00:00
llvm add simple support for addrmode5 operands, allowing 2010-10-29 00:27:31 +00:00