platform/upstream/glog.git
15 years agoAdd license information for all source code.
<shinichiro.hamaji@gmail.com> [Wed, 28 Jan 2009 17:04:50 +0000 (17:04 +0000)]
Add license information for all source code.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@39 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoBug fix: ifdef guard for InitGoogleMock must be HAVE_LIB_GMOCK rather than HAVE_LIB_G...
<shinichiro.hamaji@gmail.com> [Sat, 24 Jan 2009 19:25:56 +0000 (19:25 +0000)]
Bug fix: ifdef guard for InitGoogleMock must be HAVE_LIB_GMOCK rather than HAVE_LIB_GTEST.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@38 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoAdd mock-log.h into distribution.
<shinichiro.hamaji@gmail.com> [Fri, 23 Jan 2009 22:50:55 +0000 (22:50 +0000)]
Add mock-log.h into distribution.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@37 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoRelease 0.2.
<shinichiro.hamaji@gmail.com> [Fri, 23 Jan 2009 19:18:59 +0000 (19:18 +0000)]
Release 0.2.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@36 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoAdd README.windows, based on google-perftools'.
<shinichiro.hamaji@gmail.com> [Fri, 23 Jan 2009 19:01:22 +0000 (19:01 +0000)]
Add README.windows, based on google-perftools'.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@35 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoRegenerate header files for VC++.
<shinichiro.hamaji@gmail.com> [Fri, 23 Jan 2009 19:00:09 +0000 (19:00 +0000)]
Regenerate header files for VC++.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@34 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoAdd static library project and its unittest.
<shinichiro.hamaji@gmail.com> [Fri, 23 Jan 2009 18:56:19 +0000 (18:56 +0000)]
Add static library project and its unittest.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@33 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoRemove the name of unused parameter.
<shinichiro.hamaji@gmail.com> [Fri, 23 Jan 2009 18:49:53 +0000 (18:49 +0000)]
Remove the name of unused parameter.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@32 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoRemove unnecessary #include.
<shinichiro.hamaji@gmail.com> [Fri, 23 Jan 2009 18:48:11 +0000 (18:48 +0000)]
Remove unnecessary #include.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@31 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoBetter Cygwin support.
<shinichiro.hamaji@gmail.com> [Thu, 22 Jan 2009 18:22:48 +0000 (18:22 +0000)]
Better Cygwin support.

- configure.ac: Add -lpthread only if acx_pthread_ok is yes. In cygwin, we use Windows' thread so that we don't need -lpthread.
- base/mutex.h: Define NOMINMAX before we include windows.h.
- glog/*.h: Make sure that dllimport doesn't appear in cygwin. Note that windows.h may define _WIN32 macro.
- utilities.h: Define OS_CYGWIN.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@30 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years ago* Add LOG_TO_STRING.
<shinichiro.hamaji@gmail.com> [Thu, 15 Jan 2009 10:34:35 +0000 (10:34 +0000)]
* Add LOG_TO_STRING.
* Add LOG_AT_LEVEL.
* Add DVLOG.
* Add LOG_TO_SINK_ONLY.
* Log microseconds.
* Add --log_backtrace_at option.
* Introduce CrashReason class.
* Fix some bugs.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@29 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoIntroduce mock-log.h for unittests.
<shinichiro.hamaji@gmail.com> [Tue, 13 Jan 2009 11:49:10 +0000 (11:49 +0000)]
Introduce mock-log.h for unittests.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@28 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoDefine ARRAYSIZE in utilities.h and use it.
<shinichiro.hamaji@gmail.com> [Fri, 9 Jan 2009 06:07:55 +0000 (06:07 +0000)]
Define ARRAYSIZE in utilities.h and use it.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@27 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoUse gtest and gmock if installed.
<shinichiro.hamaji@gmail.com> [Mon, 5 Jan 2009 06:05:01 +0000 (06:05 +0000)]
Use gtest and gmock if installed.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@26 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoInitialize gflags in signalhandler_unittest.
<shinichiro.hamaji@gmail.com> [Mon, 5 Jan 2009 05:56:05 +0000 (05:56 +0000)]
Initialize gflags in signalhandler_unittest.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@25 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoFix a typo in commandlineflags.h.
<shinichiro.hamaji@gmail.com> [Mon, 5 Jan 2009 05:54:57 +0000 (05:54 +0000)]
Fix a typo in commandlineflags.h.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@24 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoInitial windows support. Now we don't have the stacktrace and several unittests.
<shinichiro.hamaji@gmail.com> [Fri, 19 Dec 2008 15:20:40 +0000 (15:20 +0000)]
Initial windows support. Now we don't have the stacktrace and several unittests.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@23 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoFlush logs unsafely before program fails in the signal handler.
<shinichiro.hamaji@gmail.com> [Fri, 19 Dec 2008 06:49:33 +0000 (06:49 +0000)]
Flush logs unsafely before program fails in the signal handler.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@22 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoAdd -lpthread in addition to -pthread on Linux.
<shinichiro.hamaji@gmail.com> [Fri, 21 Nov 2008 11:22:51 +0000 (11:22 +0000)]
Add -lpthread in addition to -pthread on Linux.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@21 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoRelease 0.1.2.
<shinichiro.hamaji@gmail.com> [Wed, 19 Nov 2008 05:34:01 +0000 (05:34 +0000)]
Release 0.1.2.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@20 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoAdd an instruction about stacktrace on x86-64 in INSTALL file. Basically, this
<shinichiro.hamaji@gmail.com> [Tue, 18 Nov 2008 11:28:39 +0000 (11:28 +0000)]
Add an instruction about stacktrace on x86-64 in INSTALL file. Basically, this
note was copied from google-perftools's notice (google-perftools/INSTALL).  I
modified the notice because the situation around stacktracer is a bit different
between glog and perftools.  Perftool's tcmalloc hooks malloc and its
stacktracer must not call malloc.  In glog, stacktracer with malloc can be an
issue only when users use InstallFailureSignalHandler() and a signal is raised
inside malloc.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@19 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoFix a typo: s/gnore/ignore/
<shinichiro.hamaji@gmail.com> [Mon, 17 Nov 2008 10:38:58 +0000 (10:38 +0000)]
Fix a typo: s/gnore/ignore/

git-svn-id: https://google-glog.googlecode.com/svn/trunk@18 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoRemove stacktrace.cc.
<shinichiro.hamaji@gmail.com> [Mon, 17 Nov 2008 08:32:28 +0000 (08:32 +0000)]
Remove stacktrace.cc.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@17 eb4d4688-79bd-11dd-afb4-1d65580434c0

15 years agoRe-organize the way to produce stacktrace.
<shinichiro.hamaji@gmail.com> [Mon, 17 Nov 2008 07:58:10 +0000 (07:58 +0000)]
Re-organize the way to produce stacktrace.

Since we introduced the API to set signal handler and print a
stacktrace, we should avoid glibc's backtrace, which may call malloc.
Basically, we choose the way to produce a stacktrace as same as
perftools.

Also, I removed GetStackFrames, which is not used and not implemented
with glibc.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@16 eb4d4688-79bd-11dd-afb4-1d65580434c0

16 years agoUtilize the second parameter (version number) for deb.sh.
<shinichiro.hamaji@gmail.com> [Tue, 4 Nov 2008 07:09:16 +0000 (07:09 +0000)]
Utilize the second parameter (version number) for deb.sh.

The original way (ls && tail -n 1) could not handle version numbers which have patch level proprely (e.g., 0.1.1.tar.gz is considered less than 0.1.tar.gz since ls command orders files lexicographically).

git-svn-id: https://google-glog.googlecode.com/svn/trunk@15 eb4d4688-79bd-11dd-afb4-1d65580434c0

16 years agoUse uintptr_t instead of int as the integer format of pthread_t.
<shinichiro.hamaji@gmail.com> [Tue, 4 Nov 2008 07:08:11 +0000 (07:08 +0000)]
Use uintptr_t instead of int as the integer format of pthread_t.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@14 eb4d4688-79bd-11dd-afb4-1d65580434c0

16 years agoStop to define DISALLOW_EVIL_CONSTRUCTORS to avoid name conflict.
<shinichiro.hamaji@gmail.com> [Mon, 3 Nov 2008 05:00:04 +0000 (05:00 +0000)]
Stop to define DISALLOW_EVIL_CONSTRUCTORS to avoid name conflict.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@13 eb4d4688-79bd-11dd-afb4-1d65580434c0

16 years agoForgot to add file for the previous change...
<shinichiro.hamaji@gmail.com> [Thu, 30 Oct 2008 10:38:57 +0000 (10:38 +0000)]
Forgot to add file for the previous change...

Add InstallFailureSignalHandler().  The function installs a signal handler that will dump useful information when the program crashes on certain signals such as SIGSEGV.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@12 eb4d4688-79bd-11dd-afb4-1d65580434c0

16 years agoAdd InstallFailureSignalHandler(). The function installs a signal handler that
<shinichiro.hamaji@gmail.com> [Thu, 30 Oct 2008 10:33:45 +0000 (10:33 +0000)]
Add InstallFailureSignalHandler().  The function installs a signal handler that
will dump useful information when the program crashes on certain signals such
as SIGSEGV.
Also, changed the version of autoconf (2.59 => 2.61).

git-svn-id: https://google-glog.googlecode.com/svn/trunk@11 eb4d4688-79bd-11dd-afb4-1d65580434c0

16 years agoChangeLogs for glog 0.1.1.
<shinichiro.hamaji@gmail.com> [Thu, 30 Oct 2008 10:02:59 +0000 (10:02 +0000)]
ChangeLogs for glog 0.1.1.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@10 eb4d4688-79bd-11dd-afb4-1d65580434c0

16 years agoUse abort instead of exit.
<shinichiro.hamaji@gmail.com> [Fri, 17 Oct 2008 11:54:23 +0000 (11:54 +0000)]
Use abort instead of exit.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@9 eb4d4688-79bd-11dd-afb4-1d65580434c0

16 years agoFix a bug: vmodule didn't work with gflags. Since
<shinichiro.hamaji@gmail.com> [Fri, 17 Oct 2008 11:53:23 +0000 (11:53 +0000)]
Fix a bug: vmodule didn't work with gflags. Since
gflags isn't initialized when REGISTER_MODULE_INITIALIZER is invoked,
we couldn't initialize vmodule_list properly. Modified to call
VLOG2Initializer in the first call of InitVLOG3__.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@8 eb4d4688-79bd-11dd-afb4-1d65580434c0

16 years agoUse dladdr to get symbols for environments which doesn't use ELF and
<shinichiro.hamaji@gmail.com> [Fri, 17 Oct 2008 11:52:32 +0000 (11:52 +0000)]
Use dladdr to get symbols for environments which doesn't use ELF and
has execinfo.h (e.g., MacOSX 10.5). Though dladdr may not be async
signal safe, it's OK since glog's stacktrace doesn't depend on signals.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@7 eb4d4688-79bd-11dd-afb4-1d65580434c0

16 years agoAdd __attribute__((noinline)) for StackGrowsDown. This is necessary for recent GCC...
<shinichiro.hamaji@gmail.com> [Tue, 14 Oct 2008 00:32:16 +0000 (00:32 +0000)]
Add __attribute__((noinline)) for StackGrowsDown. This is necessary for recent GCC (4.3).

git-svn-id: https://google-glog.googlecode.com/svn/trunk@6 eb4d4688-79bd-11dd-afb4-1d65580434c0

16 years agoFix the include paths in the document: s/google/glog/.
<shinichiro.hamaji@gmail.com> [Fri, 10 Oct 2008 15:19:23 +0000 (15:19 +0000)]
Fix the include paths in the document: s/google/glog/.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@5 eb4d4688-79bd-11dd-afb4-1d65580434c0

16 years agoFix some syntax/HTML issues.
<shinichiro.hamaji@gmail.com> [Wed, 8 Oct 2008 12:18:45 +0000 (12:18 +0000)]
Fix some syntax/HTML issues.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@4 eb4d4688-79bd-11dd-afb4-1d65580434c0

16 years agoModify the content type for the document files.
<shinichiro.hamaji@gmail.com> [Wed, 8 Oct 2008 11:20:32 +0000 (11:20 +0000)]
Modify the content type for the document files.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@3 eb4d4688-79bd-11dd-afb4-1d65580434c0

16 years agoglog 0.1
<shinichiro.hamaji@gmail.com> [Tue, 7 Oct 2008 05:43:05 +0000 (05:43 +0000)]
glog 0.1

git-svn-id: https://google-glog.googlecode.com/svn/trunk@2 eb4d4688-79bd-11dd-afb4-1d65580434c0

16 years agoInitial directory structure.
<shinichiro.hamaji@gmail.com> [Wed, 3 Sep 2008 13:40:49 +0000 (13:40 +0000)]
Initial directory structure.

git-svn-id: https://google-glog.googlecode.com/svn/trunk@1 eb4d4688-79bd-11dd-afb4-1d65580434c0