Commit Graph

15594 Commits

Author SHA1 Message Date
Eli Friedman 3afa33ced6 Remove Mac-specific includes.
llvm-svn: 105905
2010-06-13 02:13:20 +00:00
Greg Clayton 474966a41e I have eliminated RTTI from LLDB!
Also added a shell script build phase that fixes the headers in 
LLDB.framework.

llvm-svn: 105899
2010-06-12 18:59:55 +00:00
Eli Friedman a84b380d46 Add missing include.
llvm-svn: 105898
2010-06-12 18:38:40 +00:00
Eli Friedman 1978d861c3 Add missing includes.
llvm-svn: 105897
2010-06-12 18:37:54 +00:00
Eli Friedman 81ad726f04 Move SharingPtr.h into include/.
llvm-svn: 105896
2010-06-12 18:29:53 +00:00
Greg Clayton ef59f829e4 Switched over to using the new lldb::SharingPtr from Howard Hinnant.
We need to put this in LLDB since we need to vend this in our API
because our public API uses shared pointers to our private objects.

Removed a deprecated file: include/lldb/Host/Types.h

Added the new SharingPtr.cpp/.h files into source/Utility.

Added a shell script build phase that fixes up all headers in the
LLDB.framework.

llvm-svn: 105895
2010-06-12 17:45:57 +00:00
Greg Clayton af3cf2caa3 Reverted changes for eByteOrderHost detection, but added linux support for using <endian.h>. No files in "API" can include any LLVM header files. We must keep LLVM behind our API.
llvm-svn: 105892
2010-06-12 16:46:01 +00:00
Greg Clayton c9af18a502 Moved files around for linux build. Fixed up Xcode project to
refer to the new locations.

llvm-svn: 105885
2010-06-12 15:43:35 +00:00
Greg Clayton c0cc73efd4 Patched in Pawel Wodnicki's lldb.swig changes for linux compatability.
llvm-svn: 105884
2010-06-12 15:34:20 +00:00
Greg Clayton 1ba811dd81 Fixed an issue with the new DW_TAG_ptr_to_member_type changes where the clang type that was being created was using the pointee_type for both the class and the member pointer.
llvm-svn: 105883
2010-06-12 15:33:14 +00:00
Christopher Friesen fa7936bc8d Fix utilities text
llvm-svn: 105877
2010-06-12 03:34:21 +00:00
Greg Clayton 9b81a3146f Anders Carlsson patch for member pointers. Thanks Anders.
llvm-svn: 105868
2010-06-12 01:20:30 +00:00
Greg Clayton e20855403b Fixed the build after recent header changes.
Fixed an extra include path in the Xcode project.

llvm-svn: 105867
2010-06-12 01:12:23 +00:00
Greg Clayton b852a111d0 Avoid calls to memcpy.
llvm-svn: 105866
2010-06-12 01:03:17 +00:00
Jason Molenda 3041cbd2b2 Include mach/mach_types.h in two files to adjust for their
removal from lldb-types.h

llvm-svn: 105865
2010-06-12 00:43:41 +00:00
Jason Molenda 8edec78f84 Update USER_HEADER_SEARCH_PATHS settings to all be the same.
Change the Release -rpath LDFLAG to look for LLDB.framework in the
same directory as the lldb binary itself.  For the BuildAndIntegration
target, continue to use the ../../ etc path to match how we install
the binaries inside Apple.

Patch from Dimiter "malkia" Stanev.  I still need to look at the
suggested changing of ONLY_ACTIVE_ARCH settings.

llvm-svn: 105864
2010-06-12 00:38:35 +00:00
Eli Friedman 2a16001328 Remove platform-specific includes from platform-independent code. Mac users,
please check whether this breaks anything.

llvm-svn: 105863
2010-06-12 00:22:37 +00:00
Jason Molenda 743e86ae3d Applied PluginManager.cpp patch from Jean-Daniel Dupas.
Fixed problem Jean-Daniel Dupas found in ProcessGDBRemote.cpp.

llvm-svn: 105857
2010-06-11 23:44:18 +00:00
Chris Lattner 2292bcc3cb ssi is annoying to test :)
llvm-svn: 105854
2010-06-11 23:12:28 +00:00
Chris Lattner af73b04924 rearrange the sidebar a little bit to separate the high level status
from the internal and usage dox.

llvm-svn: 105853
2010-06-11 23:11:13 +00:00
Chris Lattner 649caee022 missed a chunk
llvm-svn: 105851
2010-06-11 23:07:52 +00:00
Chris Lattner 4519346079 that seemed to work, switch the rest of the files to use the shared sidebar.incl file.
llvm-svn: 105850
2010-06-11 23:07:14 +00:00
Chris Lattner 2812000273 split the sidebar out to an SSI file so it isn't duplicated everywhere.
llvm-svn: 105849
2010-06-11 23:04:20 +00:00
Chris Lattner 2a49439a0e fix a few typos.
llvm-svn: 105847
2010-06-11 22:52:46 +00:00
Owen Anderson 571e864e84 Revert my previous patch. Apparently the code-size impact of std::sort isn't acceptable.
llvm-svn: 105835
2010-06-11 21:07:26 +00:00
Owen Anderson dc433611a2 Replace qsort_r with std::sort. This gets rid of a lot of portability
ickiness, and is cleaner to boot.

I'm fairly confident that I converted the comparator over properly,
and what testing I could figure out how to run seemed to pass, but it
would be great if someone in the know could check behind me.

llvm-svn: 105834
2010-06-11 20:52:57 +00:00
Eli Friedman a82475ab74 Fix includes.
llvm-svn: 105814
2010-06-11 04:54:56 +00:00
Eli Friedman 6abb634bcf Use st_mtime instead of st_mtimespec for portability.
llvm-svn: 105813
2010-06-11 04:52:22 +00:00
Eli Friedman 8d860d557f Fix TimeValue::Offset* to take uint64_t
llvm-svn: 105812
2010-06-11 04:50:35 +00:00
Eli Friedman e01b70bf30 Use Host::GetCurrentThreadID() instead of mach_thread_self().
llvm-svn: 105811
2010-06-11 04:29:29 +00:00
Eli Friedman 50fac2f7b5 Add missing include; fix missed constant to use llvm::MachO.
llvm-svn: 105810
2010-06-11 04:26:08 +00:00
Eli Friedman 102b925db8 Fix warning.
llvm-svn: 105808
2010-06-11 04:24:36 +00:00
Greg Clayton 41f923275e Made lldb_private::ArchSpec more generic so that it can take a mach-o cpu
type and sub-type, or an ELF e_machine value. Also added a generic CPU type
to the arch spec class so we can have a single arch definition that the LLDB
core code can use. Previously a lot of places in the code were using the
mach-o definitions from a macosx header file. 

Switches over to using "llvm/Support/MachO.h" for the llvm::MachO::XXX for the
CPU types and sub types for mach-o ArchSpecs. Added "llvm/Support/ELF.h" so 
we can use the "llvm::ELF::XXX" defines for the ELF ArchSpecs.

Got rid of all CPU_TYPE_ and CPU_SUBTYPE_ defines that were previously being
used in LLDB.

llvm-svn: 105806
2010-06-11 03:25:34 +00:00
Greg Clayton ae5680be64 Fixed an issue where a return value wasn't being returned from Symtab::CompareSymbolValueByIndexLinux.
llvm-svn: 105802
2010-06-11 00:51:46 +00:00
Eli Friedman 5b405edd5e Remove dependency on Mac-specific libkern/OSByteOrder.h.
llvm-svn: 105799
2010-06-10 23:56:16 +00:00
Eli Friedman 6eb685c264 Make Error.h and Error.cpp compile on Linux.
llvm-svn: 105798
2010-06-10 23:45:58 +00:00
Eli Friedman a92e332b09 Make qsort_r usage "portable". Why does a function which seems so simple
have to be so complicated?

llvm-svn: 105797
2010-06-10 23:36:31 +00:00
Eli Friedman 892c22c244 Remove global init constructor from r105746.
llvm-svn: 105794
2010-06-10 23:00:15 +00:00
Jason Molenda 572f232f18 Spelling fix from Sebastian Redl.
llvm-svn: 105785
2010-06-10 08:23:00 +00:00
Benjamin Kramer fc6980b295 Add some missing close tags.
llvm-svn: 105784
2010-06-10 08:12:17 +00:00
Eric Christopher 84f89a8648 Fix paragraph tag. Patch by Mike Miller.
llvm-svn: 105783
2010-06-10 05:35:26 +00:00
Eli Friedman 04e6ba7fcc Expand AR_EFMT1 because the define is not present on Linux (and possibly
other systems).

llvm-svn: 105782
2010-06-10 04:56:00 +00:00
Eli Friedman 048ceecb15 Add missing include.
llvm-svn: 105781
2010-06-10 04:51:35 +00:00
Eli Friedman 8c3ad54bc2 Remove unused uuid_t constructor for lldb_private::UUID.
llvm-svn: 105780
2010-06-10 03:08:05 +00:00
Greg Clayton 86f0baa8f0 Fixed an error in the architecture page.
llvm-svn: 105779
2010-06-10 02:50:28 +00:00
Greg Clayton 491fbdf139 Updated the web pages with new navigable web pages.
llvm-svn: 105778
2010-06-10 02:48:57 +00:00
Greg Clayton c3df232164 Removing www files, will replace them with new ones after this commit.
llvm-svn: 105777
2010-06-10 02:48:13 +00:00
Eli Friedman 2c472ee18d Don't use std::tr1::shared_ptr directly.
llvm-svn: 105773
2010-06-10 01:36:54 +00:00
Jason Molenda 9ec89fde2f Correctly handle the case where dyld has slid.
llvm-svn: 105772
2010-06-10 01:21:21 +00:00
Eli Friedman 0d3b18dd6f Fix include path.
llvm-svn: 105757
2010-06-09 22:08:29 +00:00
Jason Molenda b1823404c3 Committing patch from Joseph Ranieri to handle 'exit()' the same
as 'quit()' in the python script environment.

llvm-svn: 105756
2010-06-09 21:56:00 +00:00
Jason Molenda f7a4715fdb SymbolVendor.mm doesn't seem to have any Objective-C in it;
move to SymbolVendor.cpp.  Xcode project file updated.

llvm-svn: 105755
2010-06-09 21:48:33 +00:00
Eli Friedman fa95352569 Warning fix.
llvm-svn: 105754
2010-06-09 21:39:50 +00:00
Jason Molenda a34a0c61ae Move source/Utility/PseudoTerminal.h into include/lldb/Utility.
The top of the header file seems to indicate that this was
intended to be over at include/lldb/Core but we should be in line
with the .cpp file's location so it's include/lldb/Utility for now.

llvm-svn: 105753
2010-06-09 21:28:42 +00:00
Greg Clayton eee5f1fdac For header includes we are currently trying to adopt some aspects of the
Google C++ coding guidelines where includes are done as:

1 - the header file for the current source file
2 - C includes
3 - C++ includes
4 - external project includes
5 - current project includes

llvm-svn: 105748
2010-06-09 19:36:54 +00:00
Eli Friedman a8f1aaabe2 Use portable endianness routine from LLVM.
llvm-svn: 105746
2010-06-09 19:26:51 +00:00
Eli Friedman 07b1627f46 Add a few more missing includes.
llvm-svn: 105743
2010-06-09 19:11:30 +00:00
Eli Friedman d0edb5b4a8 Don't include Python.h in the shared header.
llvm-svn: 105737
2010-06-09 18:31:38 +00:00
Eli Friedman 61249085fd Add necessary includes. Remove unnecessary assignments to sin_len.
llvm-svn: 105736
2010-06-09 18:23:21 +00:00
Eli Friedman a2460bf9e5 Revert this fix for now, since it breaks the build.
llvm-svn: 105729
2010-06-09 17:25:16 +00:00
Eli Friedman 5661f9202b Remove unused class.
llvm-svn: 105724
2010-06-09 10:59:23 +00:00
Eli Friedman b776ee6f17 A few more warning/error fixes.
llvm-svn: 105723
2010-06-09 10:16:07 +00:00
Eli Friedman 53444d394f A few more minor fixes.
llvm-svn: 105721
2010-06-09 09:53:11 +00:00
Eli Friedman a382d474b6 Misc minor warning/error fixes.
llvm-svn: 105720
2010-06-09 09:50:17 +00:00
Eli Friedman f254f8b226 Add a couple missing includes.
llvm-svn: 105719
2010-06-09 09:38:08 +00:00
Eli Friedman 48862d4571 Minor warning/error fixes.
llvm-svn: 105718
2010-06-09 09:32:42 +00:00
Jason Molenda a9de79c6ae I declare "x86-64" to be the official formatting for
this page.

llvm-svn: 105717
2010-06-09 09:27:53 +00:00
Eli Friedman b3c7ff50a0 A couple more minor error/warning fixes.
llvm-svn: 105715
2010-06-09 09:19:13 +00:00
Eli Friedman 65c8cd0094 More warning/error fixes.
llvm-svn: 105714
2010-06-09 08:57:38 +00:00
Eli Friedman 3c61077a56 Misc warning/error fixes.
llvm-svn: 105713
2010-06-09 08:53:28 +00:00
Eli Friedman 889669769f Add missing includes.
llvm-svn: 105712
2010-06-09 08:50:27 +00:00
Eli Friedman 9c68da971f Per surrounding style, use stdarg.h instead of cstdio, etc.
llvm-svn: 105711
2010-06-09 08:46:23 +00:00
Christopher Friesen f2d015d110 OK, we should only point to PROJECT_DIR/include for the header search paths since the includes specify lldb/API/etc. This is temporary until the final install location is decided upon for the headers.
llvm-svn: 105707
2010-06-09 07:57:59 +00:00
Eli Friedman 59817b1d56 More minor build fixes.
llvm-svn: 105706
2010-06-09 07:57:51 +00:00
Eli Friedman ebb81beb1e Add missing include.
llvm-svn: 105705
2010-06-09 07:47:43 +00:00
Eli Friedman 4c5de69951 And some more include line fixes.
llvm-svn: 105704
2010-06-09 07:44:37 +00:00
Jason Molenda 8fd1b58faf update the USER_HEADER_SEARCH_PATHS for one of the variants.
llvm-svn: 105703
2010-06-09 07:44:25 +00:00
Eli Friedman ca93cc1d51 Fix a bunch more include lines.
llvm-svn: 105702
2010-06-09 07:37:52 +00:00
Eric Christopher e56c3af033 Use correct name for the OS here too.
llvm-svn: 105701
2010-06-09 07:32:16 +00:00
Jason Molenda d2df09955b You'll need to be running Mac OS X to get lldb to build right now.
llvm-svn: 105700
2010-06-09 07:29:26 +00:00
Eli Friedman e8b582256b And a few more warning/error fixes.
llvm-svn: 105698
2010-06-09 07:22:30 +00:00
Eric Christopher f6a3aed94a Add a quick readme on building lldb. This points to the code signing
documentation for now and mentions that it only supports xcode at the
moment.

llvm-svn: 105697
2010-06-09 07:20:27 +00:00
Jason Molenda ba02200b63 typeo fix.
llvm-svn: 105696
2010-06-09 07:19:15 +00:00
Eli Friedman 891d56baec More random error/warning fixes.
llvm-svn: 105695
2010-06-09 07:14:21 +00:00
Christopher Friesen 5fa3614849 Narrow down the header search path to the public API
llvm-svn: 105694
2010-06-09 07:13:13 +00:00
Jason Molenda f4b2b98f7c Remove underscore named version of this file.
llvm-svn: 105693
2010-06-09 07:10:17 +00:00
Christopher Friesen 930e33794a fixing headers search paths so lldb-tool will build with these new changes
llvm-svn: 105692
2010-06-09 07:06:05 +00:00
Eli Friedman 4ce61e1f5d Minor warning fixes.
llvm-svn: 105691
2010-06-09 06:55:48 +00:00
Christopher Friesen 4cd709640c missed a greater than to quote conversion
llvm-svn: 105690
2010-06-09 06:55:11 +00:00
Eli Friedman 778b08546e And part two of two of fixing includes; somehow I thought the problem was more
widespread than it was.

llvm-svn: 105689
2010-06-09 06:50:29 +00:00
Eli Friedman f841bc881d Fix include lines to use more conventional paths, part 1.
llvm-svn: 105688
2010-06-09 06:46:09 +00:00
Chris Lattner abacbe1351 test commit
llvm-svn: 105679
2010-06-09 03:55:24 +00:00
Chris Lattner 30fdc8d841 Initial checkin of lldb code from internal Apple repo.
llvm-svn: 105619
2010-06-08 16:52:24 +00:00
Chris Lattner 312c4c799d test commit
llvm-svn: 105618
2010-06-08 16:46:22 +00:00