summaryrefslogtreecommitdiff
path: root/lib/common/Utils.cpp
Commit message (Collapse)AuthorAge
* Fix Unix compilation using CMake.Chris Wilson2016-09-09
| | | | | | | | | | Add platform detection that's compatible with the old buildsystem and its m4 autoconfigury. Make Travis build and test using CMake as a separate target. Remove unused function BoxGetTemporaryDirectoryName() to fixes compile using CMake on Unix.
* Add some little string functions to Utils.cpp.Chris Wilson2015-12-12
| | | | | | | These functions check whether the beginning and end of a std::string match a supplied prefix or suffix, and remove that prefix or suffix, returning the remaining part. They are almost but not entirely trivial, and giving them names makes the code that uses them much more readable.
* Fix compile on platforms without execinfo.hChris Wilson2014-12-06
|
* Fix inability to access locations starting with a slash.Chris Wilson2014-09-18
| | | | | | Thanks to Jean-Yves Moulin for reporting this issue. When bbackupd is configured to create locations whose names contain a slash, it was impossible to escape it, and thus to enter the directory in bbackupquery to inspect or restore it.
* Increase built-in backtrace length from 10 to 20.Chris Wilson2014-09-04
| | | | Helps track down missing network operation timeouts.
* Simplify C++ name demangling code, and its memory allocation tracking.Chris Wilson2014-02-11
|
* Add calloc() support to memory leak finder.Chris Wilson2013-09-19
|
* Avoid recompiling everything on MSVC when BoxVersion.h changes.Chris Wilson2011-10-25
|
* Move TemporaryDirectory.h into Utils.h and Utils.cpp to avoid duplicateChris Wilson2011-01-21
| | | | | definitions of inline functions.
* Fix demangled logging of backtraces on OSX by using dladdr to get functionChris Wilson2010-08-31
| | | | | names rather than trying to parse the results of backtrace_strings().
* Make the version of Box Backup available for use in Boxi.Chris Wilson2009-08-25
|
* Make FileExists take a std::string instead of a const char * for C++ Chris Wilson2009-06-27
| | | | | style.
* Fix tests (hopefully) on Win32 for struct stat ino_t change from 16 toChris Wilson2009-03-21
| | | | | 64 bits.
* Rename NDEBUG flag to BOX_RELEASE_BUILD, as other projects use NDEBUG as Chris Wilson2008-12-30
| | | | | | well (e.g. wxWidgets) and it causes conflicts which are difficult to resolve.
* Fix compile errors on Debian Lenny, reported by Torsten.Chris Wilson2008-10-17
|
* Add machine-readable output mode (with -m option) to bbstoreaccounts info.Chris Wilson2008-08-07
|
* When dumping stack traces, allow libc to allocate its own memory, ratherChris Wilson2008-08-06
| | | | | | than trying to manage a buffer ourselves, and free it with std::free without memory leak tracing.
* Fix possible memory corruption while dumping stack trace due to Chris Wilson2008-05-28
| | | | | mismatching new []/delete.
* Demangle C++ names in backtrace on GCC using C++ ABI routines.Chris Wilson2008-05-28
|
* Undo mangling by tailorChris Wilson2008-04-04
|
* TailorizationChris Wilson2008-04-04
| | | | | | | | | | | Import of the upstream sources from Repository: http://localhost:8000/ Kind: hg Revision: 7807b7768163f1c2537756abe5416063989cebb1 Original author: tailor@rocio.int.aidworld.org Date: 2008-03-16 19:44:36+00:00
* Make usage output (from bbstoreaccounts info and bbackupquery usage)Chris Wilson2008-04-03
| | | | | | consistent and easier to read, with blocks, B/kB/MB/GB, % and an ASCII bar graph.
* Replace all remaining use of TRACEx() macros with logging framework.Chris Wilson2008-03-29
| | | | | Remove the old TRACEx macros to catch any remaining uses.
* Use lstat() instead of stat() to check whether a file exists. Thanks toChris Wilson2007-11-05
| | | | | | | | Hans-Joachim Baader for reporting this problem. (http://lists.warhead.org.uk/pipermail/boxbackup/2007-November/003958.html) Add a test that symlinks are not followed during restore.
* Allow ObjectExists() to take a std::string instead of just char *.Chris Wilson2007-11-04
|
* Use logging framework to log stack traces from exceptions. (refs #3)Chris Wilson2007-04-22
|
* Free backtrace strings even in debug mode by suppressing warnings from Chris Wilson2006-11-13
| | | | | DebugMemLeakFinder, to avoid a memory leak (refs #3)
* Better to leak block quietly from backtrace_symbols on debug build than ↵Martin Ebourne2005-12-20
| | | | erroneously report a leak when there isn't one
* Fixing up svn:executable properties.Martin Ebourne2005-12-12
| | | | You may need a new checkout to see this.
* Box Backup 0.09 with a few tweeksBen Summers2005-10-14