summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Stream.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite OutputFormattedHelpText in terms of StringRef.Zachary Turner2016-11-081-0/+5
| | | | | | | | | | This makes the logic easier to follow and also propagates StringRef up to the API boundary, which is necessary for making higher up StringRef API changes. Differential Revision: https://reviews.llvm.org/D26325 llvm-svn: 286204
* Convert UniqueCStringMap to use StringRef.Zachary Turner2016-10-061-4/+6
| | | | llvm-svn: 283494
* Convert CommandObject constructors to StringRef.Zachary Turner2016-10-051-0/+4
| | | | llvm-svn: 283384
* *** This commit represents a complete reformatting of the LLDB source codeKate Stone2016-09-061-589/+421
| | | | | | | | | | | | | | | | | | | | | | | *** to conform to clang-format’s LLVM style. This kind of mass change has *** two obvious implications: Firstly, merging this particular commit into a downstream fork may be a huge effort. Alternatively, it may be worth merging all changes up to this commit, performing the same reformatting operation locally, and then discarding the merge for this particular commit. The commands used to accomplish this reformatting were as follows (with current working directory as the root of the repository): find . \( -iname "*.c" -or -iname "*.cpp" -or -iname "*.h" -or -iname "*.mm" \) -exec clang-format -i {} + find . -iname "*.py" -exec autopep8 --in-place --aggressive --aggressive {} + ; The version of clang-format used was 3.9.0, and autopep8 was 1.2.4. Secondly, “blame” style tools will generally point to this commit instead of a meaningful prior commit. There are alternatives available that will attempt to look through this change and find the appropriate prior commit. YMMV. llvm-svn: 280751
* Delete Host/windows/win32.hZachary Turner2016-08-091-0/+1
| | | | | | | | | | | | | | | | | | | It's always hard to remember when to include this file, and when you do include it it's hard to remember what preprocessor check it needs to be behind, and then you further have to remember whether it's windows.h or win32.h which you need to include. This patch changes the name to PosixApi.h, which is more appropriately named, and makes it independent of any preprocessor setting. There's still the issue of people not knowing when to include this, because there's not a well-defined set of things it exposes other than "whatever is missing on Windows", but at least this should make it less painful to fix when problems arise. This patch depends on LLVM revision r278170. llvm-svn: 278177
* Make lldb::endian::InlHostByteOrder() private.Bruce Mitchener2015-11-071-8/+8
| | | | | | | | | | | | | | | | | | Summary: Since this is within the lldb namespace, the compiler tries to export a symbol for it. Unfortunately, since it is inlined, the symbol is hidden and this results in a mess of warnings when building on OS X with cmake. Moving it to the lldb_private namespace eliminates that problem. Reviewers: clayborg Subscribers: emaste, lldb-commits Differential Revision: http://reviews.llvm.org/D14417 llvm-svn: 252396
* Make stream::operator<< take "const" void *Pavel Labath2015-07-221-2/+2
| | | | | | | | | | | | | | Summary: This enables us to avoid casts to "void *" in some cases and avoids a couple of "casts off const qualifiers" warnings. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11388 llvm-svn: 242874
* Fix typos.Bruce Mitchener2014-07-011-1/+1
| | | | llvm-svn: 212132
* Fix Windows build using portable types for formatting the log outputsDeepak Panickal2014-03-031-1/+1
| | | | llvm-svn: 202723
* <rdar://problem/13069948>Greg Clayton2013-01-251-49/+49
| | | | | | | | | | | | Major fixed to allow reading files that are over 4GB. The main problems were that the DataExtractor was using 32 bit offsets as a data cursor, and since we mmap all of our object files we could run into cases where if we had a very large core file that was over 4GB, we were running into the 4GB boundary. So I defined a new "lldb::offset_t" which should be used for all file offsets. After making this change, I enabled warnings for data loss and for enexpected implicit conversions temporarily and found a ton of things that I fixed. Any functions that take an index internally, should use "size_t" for any indexes and also should return "size_t" for any sizes of collections. llvm-svn: 173463
* Resolve printf formatting warnings on Linux:Daniel Malea2012-11-291-5/+7
| | | | | | | | - use macros from inttypes.h for format strings instead of OS-specific types Patch from Matt Kopec! llvm-svn: 168945
* Include stddef.h for ptrdiff_t, GCC 4.6 doesn't include it implicitly.Benjamin Kramer2012-02-271-0/+1
| | | | llvm-svn: 151535
* Comments edited to better reflect what the function really doesEnrico Granata2012-01-311-2/+1
| | | | llvm-svn: 149390
* Fixed an issue in the DWARFLocationList::Dump() function where default Greg Clayton2011-11-281-1/+3
| | | | | | | arguments were quietly masked as the code changed (modified version of a path from Dawn). llvm-svn: 145216
* Use Host::File in lldb_private::StreamFile and other places to cleanup hostGreg Clayton2011-02-091-1/+0
| | | | | | layer a bit more. llvm-svn: 125149
* Endian patch from Kirk Beitz that allows better cross platform building.Greg Clayton2011-02-011-8/+9
| | | | llvm-svn: 124643
* Updated the lldb_private::Flags class to have better method names and madeGreg Clayton2010-10-271-18/+19
| | | | | | | | | | | | | | | | | all of the calls inlined in the header file for better performance. Fixed the summary for C string types (array of chars (with any combo if modifiers), and pointers to chars) work in all cases. Fixed an issue where a forward declaration to a clang type could cause itself to resolve itself more than once if, during the resolving of the type itself it caused something to try and resolve itself again. We now remove the clang type from the forward declaration map in the DWARF parser when we start to resolve it and avoid this additional call. This should stop any duplicate members from appearing and throwing all the alignment of structs, unions and classes. llvm-svn: 117437
* Merged Eli Friedman's linux build changes where he added Makefile files thatGreg Clayton2010-07-091-23/+15
| | | | | | | 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
* Added a method to get a stream's byte order.Sean Callanan2010-07-021-0/+10
| | | | llvm-svn: 107460
* Add missing includes.Eli Friedman2010-06-091-0/+3
| | | | llvm-svn: 105712
* Initial checkin of lldb code from internal Apple repo.Chris Lattner2010-06-081-0/+776
llvm-svn: 105619
OpenPOWER on IntegriCloud