llvm-project/lldb
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
..
docs Fix http://llvm.org/bugs/show_bug.cgi?id=8493 File name "2010-10-19-14:10:49.059609" is non-portable. 2010-10-28 16:24:26 +00:00
examples Add comment explaining the options used to invoke the test driver. 2010-10-25 21:38:35 +00:00
include Added a user-settable variable, 'target.expr-prefix', 2010-10-29 00:29:03 +00:00
lib Patch from Jay Cornwall that modifies the LLDB "Host" layer to reuse more 2010-09-07 20:11:56 +00:00
lldb.xcodeproj Remove references to particular Python version (use the system default 2010-10-28 21:51:20 +00:00
resources Bumped versions to lldb-26 and debugserver-114 for a build. 2010-10-08 00:23:57 +00:00
scripts Remove references to particular Python version (use the system default 2010-10-28 21:51:20 +00:00
source Added a user-settable variable, 'target.expr-prefix', 2010-10-29 00:29:03 +00:00
test Add comment on passing the assert message to self.runCmd(). 2010-10-28 21:10:32 +00:00
tools Updated the lldb_private::Flags class to have better method names and made 2010-10-27 03:32:59 +00:00
www Clarified some caveats for thread format strings. 2010-10-04 03:06:05 +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 Comment out test targets; they don't work on Linux because test/Makefile uses 2010-07-09 22:36:15 +00:00