Amol Bhave
834dd780bf
Fix symbolize_unittest for musl builds
...
When glog 0.4.0 is built using musl instead of glibc, the compilation
for this test fails because musl doesn't provide execinfo.h, which sets
HAVE_STACKTRACE to false.
Tested by building glog with musl and verifying that the build succeeds
with this patch. [See https://github.com/openwrt/packages/pull/8583 ]
Signed-off-by: Amol Bhave <ambhave@fb.com>
2019-04-03 12:08:35 -07:00
Andrei Sekretenko
94a54120de
Extended the LogSink interface to be able to pass microseconds.
2019-03-27 18:27:31 +01:00
Shinichiro Hamaji
96a2f23dca
Merge pull request #419 from shinh/release-0-4-0
...
Release 0.4.0
2019-03-22 11:51:46 +09:00
Shinichiro Hamaji
5c576f78c4
Merge pull request #431 from romkatv/disallow_prefix
...
Protect macros from user code to the left of them
2019-02-18 11:49:24 +09:00
romkatv
29dd5da60f
Add Roman Perepelitsa to AUTHORS and CONTRIBUTORS
2019-02-16 19:31:50 +01:00
romkatv
4db0631346
Protect macros from user code to the left of them
2019-02-16 19:23:36 +01:00
Shinichiro Hamaji
460ec1f564
Merge branch 'master' into release-0-4-0
2019-02-14 17:46:12 +09:00
Shinichiro Hamaji
41f4bf9cbc
Merge pull request #425 from plmuon/remove-time-from-raw-logging
...
remove time from raw logging
2019-02-02 11:00:29 +09:00
Shinichiro Hamaji
64041397b3
Use static to define CheckStackTrace on non-GNU ( #429 )
...
for `&CheckStackAddress`, VisualStudio emits address of a trampoline like PLT,
not the actual address of `CheckStackTrace`.
We need address of `CheckStackTrace` to guess the address range of the function.
`static` function seems to return the actual address of the function.
Fixes #421
2019-02-02 10:13:43 +09:00
Shinichiro Hamaji
7f91846ca1
Stop using auto_ptr ( #428 )
...
Stop using auto_ptr
std::unique_ptr requires -std=c++11. just use raw pointer.
2019-02-01 17:35:02 +09:00
Peter Mutsaers
e5588de96d
remove time from raw logging
2019-01-29 23:38:03 +01:00
Fumitoshi Ukai
7ffca211fe
fix appveyor link ( #424 )
...
project/google/glog -> project/google-admin/glog
2019-01-28 14:06:21 +09:00
Shinichiro Hamaji
ed1ef7c4db
Apply #397 to glog/logging.h.in
...
windows/glog/logging.h is expected to be generated by
src/windows/preprocess.sh and should not be modified directly.
2019-01-24 09:25:43 +09:00
Sergiu Deitsch
1431a17f37
Merge pull request #420 from kwaegel/patch-1
...
Use push/pop macro when supressing warning
2019-01-23 08:21:27 +01:00
Shinichiro Hamaji
1d98d00c7e
Update ChangeLog to record release dates at least
2019-01-23 12:24:15 +09:00
Ky Waegel
342fa2674c
Use push/pop macro when supressing warning
...
* Same as PR #397 , but for the `.in` file. Useful for some unusual cross-platform build environments (e.g. WSL).
2019-01-22 10:59:05 -08:00
Shinichiro Hamaji
406b0e702f
glog: release 0.4.0
2019-01-22 21:00:50 +09:00
Shinichiro Hamaji
6d6d31872e
Run src/windows/preprocess.sh
2019-01-22 20:58:13 +09:00
Haakan Younes
5d46e1bcfc
Add demangle support for ABI tags. ( #416 )
...
Support ABI tags after <local-source-name> in demangle.cc.
Update the reference URL.
Fixes #50
2019-01-07 15:30:23 +09:00
Thomas Anderson
7fcb278d1e
Fix demangling template parameter packs ( #414 )
...
* Fix demangling template parameter packs
Clang 4.0.1-10 and gcc 7.3.0 both mangle the function "void add<int>(int)" as
"_Z3addIJiEEvDpT_". The template parameter pack is of the form
J <template-arg>* E
The opening character for a param pack could be either I or J, as libiberty
follows [1]. This change simply adds the J case.
[1] fbd263526a/libiberty/cp-demangle.c (L3209)
2019-01-07 15:26:08 +09:00
Sergiu Deitsch
0e4ce7c0c0
Merge pull request #410 from jackwish/fix/build/cleanup
...
build: cleanup temps and remove NEWS
2019-01-01 01:27:42 +01:00
Prem Nair
e0f7bfc6ca
Add kwargs to glog_library
2018-12-31 14:20:45 +00:00
Prem Nair
0bc2d94cd1
Fix bazel build with gflags
...
The code references `@ac_cv_have_libgflags@` but not `@ac_cv_have_libgflags_h@`. This corrects that.
`int(with_gflags)` incorporates the possibility of `True/False`: https://github.com/bazelbuild/bazel/issues/4792
2018-12-31 14:20:45 +00:00
Sergiu Deitsch
e6939aa539
Merge pull request #412 from pwnall/fix_warn
...
Fix unused variable warning in GCC
2018-12-31 15:08:41 +01:00
Victor Costan
0989ffadb8
Fix unused variable warning in GCC.
2018-12-25 16:54:08 -08:00
王振华 (WANG Zhenhua)
293a38cc46
build: remove NEWS realated things
...
With automake GNU standard relaxed, these are no longer needed.
2018-12-19 12:02:35 +00:00
王振华 (WANG Zhenhua)
5a22c3cdc0
build: remove automake temporaries
2018-12-19 11:54:06 +00:00
Sergiu Deitsch
6deff5ab23
Merge pull request #408 from jackwish/fix/build/readme
...
automake: relax GNU standard directory style
2018-12-18 16:49:36 +01:00
王振华 (WANG Zhenhua)
da37a6c30a
update all README naming
...
Now, we can build.
2018-12-18 07:00:06 +00:00
王振华 (WANG Zhenhua)
1231a37f0b
automake: relax GNU standard directory style
...
GNU standard assumes `README` under root dir, while PR #403
didn't fix the building issue exactually.
https://www.gnu.org/software/automake/manual/html_node/List-of-Automake-options.html
2018-12-18 06:50:44 +00:00
Sergiu Deitsch
1d900193d8
Merge pull request #403 from NeroBurner/fix_make_for_README
...
update README.md filename in Makefile.am
2018-12-13 08:32:26 +01:00
Sergiu Deitsch
a2e49f75f8
Merge pull request #406 from NeroBurner/ci_enable_clang
...
ci: add clang-cxx17 toolchain
2018-12-13 08:29:57 +01:00
Sergiu Deitsch
d328081115
Merge pull request #405 from NeroBurner/remove_register_keyword
...
remove register keyword from unittest
2018-12-13 08:29:32 +01:00
NeroBurner
e0cabc5404
remove register keyword from unittest
2018-12-13 08:15:52 +01:00
NeroBurner
5ab6736b40
ci: add clang-cxx17 toolchain
2018-12-13 07:49:59 +01:00
NeroBurner
e3738a25ec
update README.md filename in Makefile.am
2018-12-12 13:34:44 +01:00
Sergiu Deitsch
702c533ce0
Merge pull request #397 from kwaegel/patch-1
...
Use push/pop macro when supressing warning
2018-12-12 10:18:17 +01:00
Roman Gershman
6adf6d7ae5
fix debug build using gcc -fsanitize=undefined ( #374 )
2018-12-12 10:16:49 +01:00
Sergiu Deitsch
125d6b3df4
Merge pull request #330 from NeroBurner/ci_travis_appveyor_master
...
ci: add appveyor and travis config
2018-12-12 09:00:35 +01:00
Ky Waegel
615d0b9712
Use push/pop macro when supressing warning
...
* Previous implementation did not correctly restore the warning state if initially disabled.
2018-11-27 17:35:07 -08:00
Taiju Tsuiki
781096619d
Upstream Chromium local changes to symbolize.cc ( #391 )
...
* Upstream Chromium local changes to symbolize.cc
Chromium has its own fork of symbolize.cc and symbolize.h, and it has
several not-yet-upstreamed changes, that are not specific to Chromium.
This patch upstreams such a changes.
Fixed google::FindSymbol reading past end of a section
3dae0a2d7d
Fix -INT_MIN integer overflow in itoa_r().
ac4d28e9cb
Add print_unsymbolized_stack_traces gn arg.
6a2726776f
Switch to standard integer types in base/.
9b6f42934e
* Add a build option to print unsymbolized traces
This PRINT_UNSYMBOLIZED_STACK_TRACES option to cmake, and
--enable-unsymbolized-traces option to autoconf.
2018-11-21 11:14:38 +09:00
Rodrigo Queiro
de82428e52
Use gflags 2.2.2 in Bazel build
...
The newly-released gflags 2.2.2 includes fixes to the Bazel BUILD files
that weren't in the older 2.2.1 release.
2018-11-19 09:57:51 +01:00
Fumitoshi Ukai
c44e3bbb8f
Merge pull request #388 from tzik/pread
...
Make symbolize.cc thread safe even on shared fds
2018-11-14 16:03:33 +09:00
tzik
1081df6e5c
Make symbolize.cc thread safe even on shared fds
...
ReadFromOffset in symbolize.cc used to call lseek() + read() to read
data from fd. However, the fd may be reused for multiple symbolize
requests from multiple threads, and causes a race around the fd read
offset.
This updates it to use pread() to resolve the race.
2018-11-13 12:55:09 +09:00
Yun Peng
5c292672df
Use Starlark version of http_archive
...
To fix https://github.com/google/glog/issues/376
2018-11-05 11:50:58 +01:00
Sergiu Deitsch
e364e754a6
Merge pull request #367 from bsilver8192/master
...
Don't crash on some forms of invalid ELF files
2018-10-23 21:50:06 +02:00
Sergiu Deitsch
c4bada1876
Merge pull request #371 from zaporozhets/fix_mistyping_in_comment
...
Fix mistype in comment
2018-10-23 21:42:15 +02:00
Taras Zaporozhets
a9393f0909
Fix mistype in comment
2018-10-17 15:54:37 +03:00
NeroBurner
b8221040d2
[skip CI] add badges to README, rename to markdown
2018-10-15 13:34:52 +02:00
NeroBurner
a29380601b
set timeout for stacktrace unittest
...
The stacktrace unittest hangs when compiled with MSVC. The default
timeout is 1500 seconds. Change it to 30 seconds
2018-10-15 13:34:52 +02:00