<shinichiro.hamaji@gmail.com> [Thu, 12 Jan 2012 06:15:52 +0000 (06:15 +0000)]
Fix __sync_val_compare_and_swap detection
We should use the second argument of AC_TRY_LINK.
Otherwise, the main function defined twice and this test does never succeed.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@102
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 11 Jan 2012 09:17:04 +0000 (09:17 +0000)]
Define GLOG_ prefixed log severities
Users can control if usual log severity values will be defined by
GLOG_NO_ABBREVIATED_SEVERITIES.
For http://code.google.com/p/google-glog/issues/detail?id=105
git-svn-id: https://google-glog.googlecode.com/svn/trunk@101
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<hlsyounes@gmail.com> [Thu, 29 Dec 2011 12:40:48 +0000 (12:40 +0000)]
Make public headers "warnings clean" in the sense of -Wall -Wextra -Wshadow
-Werror. Fixes issue 98.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@100
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<hlsyounes@gmail.com> [Thu, 29 Dec 2011 12:36:09 +0000 (12:36 +0000)]
Fix logging_striplog_test.sh in debug mode. Fixes issue 108.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@99
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<hlsyounes@gmail.com> [Wed, 28 Dec 2011 15:45:05 +0000 (15:45 +0000)]
Remove assumptions about function size in stacktrace_unittest.cc, which do not
hold when using certain compiler settings (for example, -O3 -g2 with GCC).
Fixes issue 107.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@98
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Mon, 5 Sep 2011 08:00:43 +0000 (08:00 +0000)]
Suppress warnings around return value of write and symlink.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@97
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Mon, 5 Sep 2011 08:00:01 +0000 (08:00 +0000)]
Destruct global objects in ShutdownGoogleLogging
http://code.google.com/p/google-glog/issues/detail?id=69
git-svn-id: https://google-glog.googlecode.com/svn/trunk@96
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Mon, 5 Sep 2011 07:58:38 +0000 (07:58 +0000)]
Add google:: prefixes for COUNTER in glog's document
http://code.google.com/p/google-glog/issues/detail?id=92
git-svn-id: https://google-glog.googlecode.com/svn/trunk@95
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Mon, 5 Sep 2011 07:56:21 +0000 (07:56 +0000)]
Create a new log files after pid has changed
http://code.google.com/p/google-glog/issues/detail?id=51
http://code.google.com/p/google-glog/issues/detail?id=74
http://code.google.com/p/google-glog/issues/detail?id=82
git-svn-id: https://google-glog.googlecode.com/svn/trunk@94
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<hlsyounes@gmail.com> [Wed, 11 May 2011 02:47:46 +0000 (02:47 +0000)]
Add files left behind by certain tests to CLEANFILES.
Remove autogen.sh, since you can just use autoreconf instead.
Ran autoreconf and fixed a couple of issues that popped up in
configure.ac and m4/ac_rwlock.m4. This updates the configuration
files to automake/aclocal 1.11.1 (from 1.10.1) and to autoconf 2.65
(from 2.61).
git-svn-id: https://google-glog.googlecode.com/svn/trunk@93
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<hlsyounes@gmail.com> [Fri, 25 Feb 2011 14:33:28 +0000 (14:33 +0000)]
Reduce stack consumption for Demangle(). Fixes issue 81.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@92
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<hlsyounes@gmail.com> [Mon, 7 Feb 2011 14:43:05 +0000 (14:43 +0000)]
Add partial C++0x support and recognition of GCC function clone suffixes to
demangle.cc. Fixes issue 80.
Make svn ignore autom4te.cache.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@91
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Tue, 15 Jun 2010 07:04:56 +0000 (07:04 +0000)]
Minor message update.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@90
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Tue, 15 Jun 2010 06:30:24 +0000 (06:30 +0000)]
Release 0.3.1.
This line, and those below, will be ignored--
M configure
M ChangeLog
M configure.ac
M packages/deb/changelog
git-svn-id: https://google-glog.googlecode.com/svn/trunk@89
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Tue, 15 Jun 2010 06:28:38 +0000 (06:28 +0000)]
Add ShutdownGoogleLogging to close syslog.
This patch was contributed by DGunchev (thanks!)
http://code.google.com/p/google-glog/issues/detail?id=28
git-svn-id: https://google-glog.googlecode.com/svn/trunk@88
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Tue, 15 Jun 2010 04:45:46 +0000 (04:45 +0000)]
s/ASSERT_EQ/CHECK_EQ/ .
We are not using gtests' ASSERT_* in our unittests.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@87
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Tue, 15 Jun 2010 04:12:19 +0000 (04:12 +0000)]
Use sys/ucontext.h when it is found. Snow leopard needs this.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@86
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:56:29 +0000 (03:56 +0000)]
Move TEST_SRC_DIR from googletest.h to config.h.
Now test passes out side tree.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@85
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:45:27 +0000 (03:45 +0000)]
Improve libunwind detection.
http://code.google.com/p/google-glog/issues/detail?id=42
git-svn-id: https://google-glog.googlecode.com/svn/trunk@84
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:43:29 +0000 (03:43 +0000)]
Add DCHECK_NOTNULL macro to logging.h (points to CHECK_NOTNULL in debug mode)
http://code.google.com/p/google-glog/issues/detail?id=25
git-svn-id: https://google-glog.googlecode.com/svn/trunk@83
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:32:50 +0000 (03:32 +0000)]
Add __extension__ for GCC's statement expression.
http://code.google.com/p/google-glog/issues/detail?id=31
git-svn-id: https://google-glog.googlecode.com/svn/trunk@82
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:31:14 +0000 (03:31 +0000)]
Add some more google:: namespaces.
http://code.google.com/p/google-glog/issues/detail?id=40
git-svn-id: https://google-glog.googlecode.com/svn/trunk@81
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:28:41 +0000 (03:28 +0000)]
Fix --enable-frame-pointers.
http://code.google.com/p/google-glog/issues/detail?id=44
git-svn-id: https://google-glog.googlecode.com/svn/trunk@80
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:21:44 +0000 (03:21 +0000)]
Add information about the conflict with windows.h into our document.
http://code.google.com/p/google-glog/issues/detail?id=33
git-svn-id: https://google-glog.googlecode.com/svn/trunk@79
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Fri, 28 May 2010 03:12:15 +0000 (03:12 +0000)]
The test for gflags works correctly on OpenBSD.
http://code.google.com/p/google-glog/issues/detail?id=49
git-svn-id: https://google-glog.googlecode.com/svn/trunk@78
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Fri, 14 May 2010 21:45:05 +0000 (21:45 +0000)]
test binaries are in the builddir, not the top_srcdir
http://codereview.appspot.com/989043/show
git-svn-id: https://google-glog.googlecode.com/svn/trunk@77
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 20 Jan 2010 07:39:18 +0000 (07:39 +0000)]
Use GLOG_* environment variables even when gflags is installed.
Define GLOG_DEFINE_*, which checks if the GLOG_* environment variable
is defined. If defined, GLOG_DEFINE_* passes the value and otherwise,
it passes the original default value. In this way, GLOG_DEFINE_* macro
uses the value specified by gflags first, then GLOG_* environment
variables, and finally it uses the default value if neither of them are
specified.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@76
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Mon, 18 Jan 2010 06:15:33 +0000 (06:15 +0000)]
Handle ucontext.h properly in Snow leopard.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@75
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 11 Nov 2009 09:07:47 +0000 (09:07 +0000)]
Fix compilation error with -DNDEBUG.
This bug is reported in
http://code.google.com/p/google-glog/issues/detail?id=19
git-svn-id: https://google-glog.googlecode.com/svn/trunk@74
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 11 Nov 2009 09:06:51 +0000 (09:06 +0000)]
Use numeric_limits instead of SSIZE_MAX.
It seems a version of arm-linux-gcc doesn't have this symbol.
http://code.google.com/p/google-glog/issues/detail?id=18
git-svn-id: https://google-glog.googlecode.com/svn/trunk@73
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 7 Oct 2009 08:52:14 +0000 (08:52 +0000)]
Use intptr_t instead of int to cast from char* for Snow Leopard.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@72
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Fri, 31 Jul 2009 05:27:23 +0000 (05:27 +0000)]
Release 0.3.0.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@71
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Fri, 31 Jul 2009 05:25:27 +0000 (05:25 +0000)]
Make the order of check for OS_WINDOWS|OS_CYGWIN and HAVE_PTHREAD consistent.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@70
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Thu, 30 Jul 2009 10:45:13 +0000 (10:45 +0000)]
Cast from pthread_t to pid_t via uintptr_t.
On 64bit NetBSD, pthread_t is a pointer and pid_t is an integer so
we cannot cast from pthread_t to pid_t directoly due to difference of
their size.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@69
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Thu, 30 Jul 2009 10:43:50 +0000 (10:43 +0000)]
Call glog_internal_namespace_::ProgramInvocationShortName() explicitly.
Otherwise, we may call google::ProgramInvocationShortName() in gflags.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@68
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Thu, 30 Jul 2009 10:42:59 +0000 (10:42 +0000)]
Avoid warning for type punning like
src/logging_unittest.cc:591: warning: dereferencing type-punned pointer will break strict-aliasing rules
As we'll never dereference the casted pointers, it's OK to silence this warning.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@67
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Thu, 30 Jul 2009 05:51:28 +0000 (05:51 +0000)]
Fix posix_strerror_r for OpenBSD.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@66
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 29 Jul 2009 09:11:48 +0000 (09:11 +0000)]
Define DumpPCAndSymbol() only when HAVE_SYMBOLIZE is defined.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@65
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 29 Jul 2009 08:38:20 +0000 (08:38 +0000)]
Fix user name detection for Windows.
This patch was given by ademin (thanks!).
http://code.google.com/p/google-glog/issues/detail?id=12
git-svn-id: https://google-glog.googlecode.com/svn/trunk@64
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 29 Jul 2009 08:37:32 +0000 (08:37 +0000)]
Suppress warnings.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@63
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 29 Jul 2009 07:34:28 +0000 (07:34 +0000)]
Initializes the length of machine name properly.
This fix was suggested at (thanks!)
http://code.google.com/p/google-glog/issues/detail?id=9
git-svn-id: https://google-glog.googlecode.com/svn/trunk@62
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Mon, 27 Jul 2009 08:13:30 +0000 (08:13 +0000)]
Regression: Add NOGDI and NOMINMAX macros before including windows.h.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@61
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Mon, 27 Jul 2009 05:42:23 +0000 (05:42 +0000)]
Use internal namespace instead of anonymous namespace for Mutex.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@60
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Mon, 27 Jul 2009 05:31:23 +0000 (05:31 +0000)]
Add cast for pthread_self() to avoid warning.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@59
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Mon, 27 Jul 2009 05:30:39 +0000 (05:30 +0000)]
Add virtual ~Thread() to avoid warnings.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@58
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Mon, 27 Jul 2009 05:29:58 +0000 (05:29 +0000)]
Add OS_NETBSD macro.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@57
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 8 Jul 2009 17:19:09 +0000 (17:19 +0000)]
Suppress warnings. Most of this patch was given by keir (thanks!).
Corresponding glog bug: http://code.google.com/p/google-glog/issues/detail?id=10
The differences from keir's patch are:
- For raw_logging.h.in, I just included time.h for struct tm.
- Added a fprintf which warns that we should have died to avoid a warning for unused local variable.
- Added inline for some functions which may be unused in googletest.h.
- Removed DumpPCAndFrameSize as it was unused.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@56
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 8 Jul 2009 15:41:38 +0000 (15:41 +0000)]
Add m4/pc_from_ucontext.m4. It supports NetBSD and OpenBSD as well.
Also, update the version of acx_pthread.m4
git-svn-id: https://google-glog.googlecode.com/svn/trunk@55
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 8 Jul 2009 15:38:35 +0000 (15:38 +0000)]
Fix regression of r23.
http://code.google.com/p/google-glog/source/detail?r=23
git-svn-id: https://google-glog.googlecode.com/svn/trunk@54
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 8 Jul 2009 15:30:26 +0000 (15:30 +0000)]
Utilize AM_CXXFLAGS.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@53
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Tue, 7 Jul 2009 03:10:39 +0000 (03:10 +0000)]
Run benchmarks only when --run_benchmark is specified.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@52
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 20 May 2009 05:55:40 +0000 (05:55 +0000)]
Encapsulate the definition of Mutex into glog's internal namespace.
This will fix the issue a user in Japan reported in his blog.
http://kzk9.net/blog/2009/05/deadlock_with_gflags_and_glog_2.html
According to his description, when he use glog and gflags-1.1, gflags'
code uses glog's Mutex, the Mutex cannot lock the pthread_mutex, and
the program stops.
The bug happens with the combination of gflags-1.1 and glog. It seems
that the issue was caused by incompatibility of Mutex classes. Though I
couldn't reproduce this issue, the reporter of this bug said that
adding namespace fixes the problem and I think it is generally good
idea to use namespace for this kind of common component to avoid
incompatibilities. So, I check this change in now. This patch
will protect glog from future changes on Mutex as well.
--This line, and those below, will be ignored--
M src/base/mutex.h
git-svn-id: https://google-glog.googlecode.com/svn/trunk@51
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Tue, 19 May 2009 09:12:00 +0000 (09:12 +0000)]
Suppress warnings (re-definition of _XOPEN_SOURCE) by including utilities.h first.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@50
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 22 Apr 2009 04:28:59 +0000 (04:28 +0000)]
Add -lgflags into LD_FLAGS when gflags is detected and --with-gflags isn't specified. Thanks kzk for this patch!
git-svn-id: https://google-glog.googlecode.com/svn/trunk@49
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Fri, 10 Apr 2009 16:27:12 +0000 (16:27 +0000)]
Release 0.2.1.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@48
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Fri, 10 Apr 2009 16:15:53 +0000 (16:15 +0000)]
Check if InitGoogleLogging is not called twice.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@47
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Fri, 10 Apr 2009 05:49:58 +0000 (05:49 +0000)]
Generation of pkg-config metadata file.
Thanks Tomasz for this contribution!
git-svn-id: https://google-glog.googlecode.com/svn/trunk@46
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Thu, 9 Apr 2009 07:49:44 +0000 (07:49 +0000)]
A bug fix for Windows: Use GetSystemTimeAsFileTime instead of GetSystemTime. SYSTEMTIME's mSecond is not a unix time but like tm.tm_sec.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@45
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Tue, 7 Apr 2009 09:03:16 +0000 (09:03 +0000)]
Use struct instead of class for forward declaration of CrashReason as we define it as struct.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@44
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Tue, 7 Apr 2009 08:01:03 +0000 (08:01 +0000)]
Fix a silly bug. I submitted wrong version of auto generated script.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@43
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Tue, 7 Apr 2009 06:33:09 +0000 (06:33 +0000)]
Apply patch given by maw (thanks!). The patch was modified a bit using AC_ARG_WITH.
- Fix build problems when building with gtest.
- --with-gflags support.
git-svn-id: https://google-glog.googlecode.com/svn/trunk@42
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Tue, 10 Mar 2009 02:15:40 +0000 (02:15 +0000)]
Fixes for GCC 4.4. Thanks John for this patch!
git-svn-id: https://google-glog.googlecode.com/svn/trunk@41
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<shinichiro.hamaji@gmail.com> [Wed, 4 Mar 2009 10:16:33 +0000 (10:16 +0000)]
Introduce RecordCrashReason().
git-svn-id: https://google-glog.googlecode.com/svn/trunk@40
eb4d4688-79bd-11dd-afb4-
1d65580434c0
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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
<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