Greg Clayton
4ceb9980c8
Modified both the ObjectFileMachO and ObjectFileELF to correctly set the
...
SectionType for Section objects for DWARF.
Modified the DWARF plug-in to get the DWARF sections by SectionType so we
can safely abstract the LLDB core from section names for the various object
file formats.
Modified the SectionType definitions for .debug_pubnames and .debug_pubtypes
to use the correct case.
llvm-svn: 109054
2010-07-21 22:54:26 +00:00
Greg Clayton
e1a916a74d
Change over to using the definitions for mach-o types and defines to the
...
defines that are in "llvm/Support/MachO.h". This should allow ObjectFileMachO
and ObjectContainerUniversalMachO to be able to be cross compiled in Linux.
Also did some cleanup on the ASTType by renaming it to ClangASTType and
renaming the header file. Moved a lot of "AST * + opaque clang type *"
functionality from lldb_private::Type over into ClangASTType.
llvm-svn: 109046
2010-07-21 22:12:05 +00:00
Greg Clayton
8c920840a4
Add new SectionType enumerations for all DWARF sections. ObjectFile parsers should start properly setting the section types for DWARF sections, then we can move the DWARF SymbolFile parser over to finding the sections by the appropriate SectionType.
...
llvm-svn: 109041
2010-07-21 21:51:36 +00:00
Greg Clayton
70e33eb06e
Allow searching for a section by SectionType.
...
llvm-svn: 109040
2010-07-21 21:49:46 +00:00
Greg Clayton
d1daf00b28
Updated LLVM and Clang to July 20 at 16:00.
...
llvm-svn: 109016
2010-07-21 16:57:26 +00:00
Greg Clayton
a0e7f0c1b1
Avoid std::bitset<64>::to_string() since it is missing in earlier C++
...
libraries (from William Lynch).
llvm-svn: 108976
2010-07-21 01:08:41 +00:00
Sean Callanan
b3706e6dd2
Whoops, forgot to guard ASTType.h. Fixed.
...
llvm-svn: 108970
2010-07-20 23:53:01 +00:00
Sean Callanan
1d18066411
Added functionality to dematerialize values that were
...
used by the JIT compiled expression, including the
result of the expression.
Also added a new class, ASTType, which encapsulates an
opaque Clang type and its associated AST context.
Refactored ClangExpressionDeclMap to use ASTTypes,
significantly reducing the possibility of mixups of
types from different AST contexts.
llvm-svn: 108965
2010-07-20 23:31:16 +00:00
Greg Clayton
ede0585ec2
Fixing a crashing bug in multiword commands from William Lynch.
...
llvm-svn: 108958
2010-07-20 22:54:09 +00:00
Greg Clayton
471b31ce62
Remove use of STL collection class use of the "data()" method since it isn't
...
part of C++'98. Most of these were "std::vector<T>::data()" and
"std::string::data()".
llvm-svn: 108957
2010-07-20 22:52:08 +00:00
Stephen Wilson
4ab47682bb
Fix assertion conditions.
...
llvm-svn: 108879
2010-07-20 18:41:11 +00:00
Stephen Wilson
645767aeca
Add missing include.
...
llvm-svn: 108878
2010-07-20 18:40:23 +00:00
Greg Clayton
044672b076
Logic fix to properly determine when a symbol is not from the current
...
symbol table (from William Lynch).
llvm-svn: 108871
2010-07-20 18:30:17 +00:00
Benjamin Kramer
40e155dfc2
More constructor warning fixes from William Lynch.
...
llvm-svn: 108840
2010-07-20 14:37:45 +00:00
Stephen Wilson
50bd94f961
Have Process::CreateBreakpointSite return a break_id_t instead of a user_id_t.
...
Also, update BreakpointLocation::ResolveBreakpointSite to check for invalid
breakpoint ID's using the proper magic constant.
llvm-svn: 108598
2010-07-17 00:56:13 +00:00
Sean Callanan
6b4067c14e
Added the necessary code to copy variables used by
...
an expression into the struct prepared for the JIT
compiled code to use.
llvm-svn: 108596
2010-07-17 00:43:37 +00:00
Jim Ingham
6185accf3b
Patch from Mattias to specify the system sed on Mac OS X.
...
llvm-svn: 108580
2010-07-17 00:25:08 +00:00
Greg Clayton
ea3b0ae8ed
Fixed a copyright header.
...
llvm-svn: 108544
2010-07-16 18:28:27 +00:00
Benjamin Kramer
1ee0d4f7f3
Fix constructor initialization order. Patch by Bill Lynch.
...
llvm-svn: 108524
2010-07-16 12:32:33 +00:00
Sean Callanan
ea22d4288a
Wrote the code that looks at a context to see
...
if the variables in that context allow a particular
JIT compiled expression to run in that context.
llvm-svn: 108485
2010-07-16 00:09:46 +00:00
Sean Callanan
23a3027a67
Oops, didn't define AreTypesSame correctly.
...
llvm-svn: 108483
2010-07-16 00:00:27 +00:00
Sean Callanan
4dcca262f4
Added a function to test whether two types are
...
the same.
llvm-svn: 108467
2010-07-15 22:30:52 +00:00
Sean Callanan
7618f4ebaf
Fixes to the IR generator in the expression parser
...
to correctly unfold constant-folded global variables.
Also added code to JIT the expression. Simple
expressions are now JIT compiled successfully.
llvm-svn: 108380
2010-07-14 23:40:29 +00:00
Jim Ingham
a3241c1bf5
Don't call PrepareForResume on threads that aren't going to get a chance to run this time around.
...
llvm-svn: 108312
2010-07-14 02:27:20 +00:00
Jim Ingham
9d790c5d12
Stepping through a trampoline should do "stop others" unless All Threads is requested.
...
llvm-svn: 108311
2010-07-14 02:25:06 +00:00
Greg Clayton
ec00f12a22
Fixed Xcode project to deal with recent ELF plug-in changes.
...
llvm-svn: 108300
2010-07-14 00:20:31 +00:00
Greg Clayton
b132097b45
I enabled some extra warnings for hidden local variables and for hidden
...
virtual functions and caught some things and did some general code cleanup.
llvm-svn: 108299
2010-07-14 00:18:15 +00:00
Stephen Wilson
11e8f3ba37
Remove our local ELF definitions and rely on llvm/Support/ELF.h instead.
...
llvm-svn: 108293
2010-07-13 23:09:42 +00:00
Stephen Wilson
f325ba9d45
Combine 32 and 64 bit ELF readers.
...
This patch provides a generic ELF reader plugin to handle both 32 and 64 bit
formats.
llvm-svn: 108292
2010-07-13 23:07:23 +00:00
Greg Clayton
b6f75dfd96
Removed unused variable "log".
...
Fixed the llvm build for Mac OS X builds to look in llvm/lib/Release+Asserts
output directory for all configurations (Debug, Release, BuildAndIntegration).
llvm-svn: 108289
2010-07-13 22:26:45 +00:00
Greg Clayton
f6cc9dde46
Updated to latest llvm from July 13th, 2010 at 13:00.
...
llvm-svn: 108285
2010-07-13 22:06:06 +00:00
Sean Callanan
549c9f7f9a
"expr -i" now performs the required transforms to
...
prepare the IR for JIT compilation. We still need
to do the JIT compilation and move the arguments
in/out of target memory.
llvm-svn: 108279
2010-07-13 21:41:46 +00:00
Greg Clayton
d764ecc0de
Removed Xcode project files that aren't needed right now.
...
llvm-svn: 108271
2010-07-13 20:57:41 +00:00
Greg Clayton
c8e11e17aa
Patch from Jean-Daniel Dupas:
...
Makefile patch to explicitly use PROJ_SRC_DIR when required. It fixes
build when obj dir is not source dir.
I also fixed a build warning in ClangResultSynthesizer.cpp.
llvm-svn: 108210
2010-07-12 23:14:00 +00:00
Greg Clayton
0428b7dcc8
Don't build the SymbolVendor/MacOSX when not building on Darwin.
...
llvm-svn: 108208
2010-07-12 23:11:00 +00:00
Jim Ingham
a56c800607
Add an "Avoid Frames matching this regular expression" to ThreadPlanStepInRange.
...
This relies on ThreadPlanStepOut working correctly, which it doesn't currently for Inlined functions, so this feature is only partially useful until we take care of Stepping Out of inlined functions.
Added an option to "thread step-in" to set the avoid regular expression. This is mostly for testing, once the Setting code is redone, we'll move this to a general setting.
llvm-svn: 108036
2010-07-10 02:27:39 +00:00
Jim Ingham
35b21fef65
Properly set the PlanKind for the ThreadPlanStepRange derived classes.
...
llvm-svn: 108035
2010-07-10 02:23:31 +00:00
Eli Friedman
07a2437a91
A few more misc warning fixes.
...
llvm-svn: 108030
2010-07-09 23:04:08 +00:00
Eli Friedman
8878f87fb6
Misc warning fixes.
...
llvm-svn: 108029
2010-07-09 22:53:18 +00:00
Eli Friedman
2066e3ed47
Comment out test targets; they don't work on Linux because test/Makefile uses
...
a bunch of BSD-isms.
llvm-svn: 108027
2010-07-09 22:36:15 +00:00
Eli Friedman
098039e4f0
Make current Makefiles work on Linux (at least, they work for me). Please
...
tell me if this breaks anything.
llvm-svn: 108025
2010-07-09 22:11:43 +00:00
Eli Friedman
78ed6b7469
Remove unnecessary directory (accidentally committed with r108009).
...
llvm-svn: 108024
2010-07-09 22:03:05 +00:00
Greg Clayton
c982c768d2
Merged Eli Friedman's linux build changes where he added Makefile files that
...
enabled LLVM make style building and made this compile LLDB on Mac OS X. We
can now iterate on this to make the build work on both linux and macosx.
llvm-svn: 108009
2010-07-09 20:39:50 +00:00
Johnny Chen
364b0e72d1
Add a test case (incomplete) to check that settings and readings of program
...
variabes work.
llvm-svn: 107914
2010-07-08 21:38:07 +00:00
Sean Callanan
246549c50b
Moved NDEBUG from a global setting to a specific
...
hack.
llvm-svn: 107894
2010-07-08 18:16:16 +00:00
Sean Callanan
6015095608
Updated to build against the latest LLVM release.
...
Also fixed our build to define NDEBUG; code that
uses LLVM headers without NDEBUG is
binary-incompatible with libraries built with
NDEBUG.
llvm-svn: 107853
2010-07-08 02:13:18 +00:00
Johnny Chen
acfbeff17e
Test that debug symbols have the correct order as specified by the order file.
...
llvm-svn: 107844
2010-07-08 00:17:29 +00:00
Johnny Chen
529728e82a
Fixed typos in the comments.
...
llvm-svn: 107829
2010-07-07 22:49:43 +00:00
Greg Clayton
51dc188216
64 bit ELF support from Stephen Wilson.
...
llvm-svn: 107817
2010-07-07 21:52:01 +00:00
Johnny Chen
41a3c9a5f8
Test that breakpoint by symbol name works correctly dlopen'ing a dynamic lib.
...
llvm-svn: 107812
2010-07-07 21:10:55 +00:00