Peter Collingbourne
c4d37a78cc
Compute base addresses from program headers while reading /proc/self/maps.
...
We previously had logic to compute the base address from program
headers as part of symbolization. The problem is that we need a correct
base address earlier in order to adjust a PC into the image's address
space, as these addresses can appear in unsymbolized output.
There was previously an assumption that only the mapping that
was lowest in the address space did not need to be adjusted. This
assumption is not guaranteed (for example, the kernel may choose to
map an ET_DYN lowest) and in fact turned out to be wrong in binaries
linked with lld because the first mapping is read-only.
The solution is to move the program header reading logic into the
code that reads /proc/self/maps.
There is a change in semantics for clients that install a callback
using the InstallSymbolizeOpenObjectFileCallback function. Any such
clients will need to return a correct base address from the callback
by reading program headers using code similar to that in the function
OpenObjectFileContainingPcAndGetStartAddress.
2017-11-08 14:15:02 -08:00
Shinichiro Hamaji
d72e3be82c
Merge pull request #260 from ukai/shell_escape
...
Shell escape arguments to /bin/mail.
2017-10-31 14:30:52 +09:00
Fumitoshi Ukai
9f8a9a9a0d
Shell escape arguments to /bin/mail.
2017-10-31 13:04:26 +09:00
Shinichiro Hamaji
56b81ea796
Style fixes for consistency
2017-10-20 16:11:31 +09:00
Shinichiro Hamaji
ebf81ac476
Merge pull request #245 from DariuszOstolski/issue211
...
Fix username lookup in case of missing USER environment variable
2017-10-20 16:09:28 +09:00
Shinichiro Hamaji
cb7b26bd71
Merge pull request #254 from DariuszOstolski/issue253
...
#253 : Use MS preprocessor idiom to disable warning
2017-10-20 15:48:21 +09:00
Dariusz Ostolski
4912af30f9
#253 : Use MS preprocessor idiom to disable warning
2017-10-18 20:56:49 +02:00
Shinichiro Hamaji
d0531421fd
Merge pull request #226 from sergiud/zero-allocation-log-failure
...
Zero allocation fix
2017-10-12 00:25:02 +09:00
Sergiu Deitsch
2fe6508e53
fixed gcc logging failure
2017-10-11 00:45:08 +02:00
Dariusz Ostolski
9d28cac469
Added HAVE_PWD_H to cmake build
2017-09-20 18:41:07 +02:00
Dariusz Ostolski
2d3cf2681d
Fix username lookup in case of missing USER environment variable
2017-09-19 22:23:53 +02:00
Shinichiro Hamaji
2a6df66252
Merge pull request #228 from sergiud/dll-export-fix
...
Fix for missing exports (fixes #227 )
2017-08-10 00:06:08 +09:00
Sergiu Deitsch
1bfae38300
added missing exports ( fixes #227 )
2017-08-09 15:21:32 +02:00
Shinichiro Hamaji
246a5896f1
Merge pull request #225 from jray272/remove-log-every-n-assert
...
Fix LOG_EVERY_N with clang -Wunused-local-typedef
2017-08-09 16:35:05 +09:00
Jim Ray
dd19fb2466
Remove GOOGLE_GLOG_COMPILE_ASSERT
...
This compile time assert is no longer used anywhere in glog. Remove
it.
2017-08-09 00:09:16 -07:00
Shinichiro Hamaji
e209906823
Merge pull request #224 from jray272/run-windows-script
...
Run src/windows/preprocess.sh to pick up latest logging.h.in changes
2017-08-09 15:04:26 +09:00
Jim Ray
8b3023f7e4
Fix LOG_EVERY_N with clang -Wunused-local-typedef
...
Glog uses a pre-C++11 compile time assert to verify the validity of
the severity parameter for LOG_EVERY_N. Unfortunately, some compilers
will complain about the usage of LOG_EVERY_N with
"-Wunused-local-typedef" due to the way the compile time assert is
constructed. This makes it impossible to use LOG_EVERY_N with this
warning treated as an error.
The fix simply removes the assert entirely. This is safe to do since
you can't put anything invalid into the severity parameters without
generating a compile error elsewhere. This has been safe to do ever
since the GLOG_ prefixes were added as part of 6febec361e .
Fixes #223
2017-08-06 00:17:50 -07:00
Jim Ray
8ed1668cdb
Update Windows logging.h based on 2df0ca34aa
...
Commit changes to src/windows/glog/logging.h that were missed in
2df0ca34aa . Because a change to src/glog/logging.h.in was made,
src/windows/preprocess.sh needed to be run.
2017-08-06 00:13:30 -07:00
Jim Ray
bb485da39a
Add Jim Ray to CONTRIBUTORS
2017-08-06 00:13:30 -07:00
Shinichiro Hamaji
b3695ee325
Merge pull request #218 from andschwa/remove-sln
...
Update Windows docs
2017-08-01 14:41:47 +09:00
Andrew Schwartzmeyer
a2a66f611c
Update Windows readme for CMake
2017-07-26 11:35:04 -07:00
Andrew Schwartzmeyer
9f121e5493
Update gitignore for CMake and Visual Studio
2017-07-26 11:34:52 -07:00
Andrew Schwartzmeyer
c7c689fbb9
Delete ancient Visual Studio Solution file.
2017-07-26 11:34:40 -07:00
Shinichiro Hamaji
3faeb50cae
Merge pull request #216 from google/revert-120-master
...
Revert "configure.ac: Allow user to disable gflags"
2017-07-26 17:46:57 +09:00
Shinichiro Hamaji
a6ffefa7e5
Revert "configure.ac: Allow user to disable gflags"
2017-07-26 17:44:25 +09:00
Shinichiro Hamaji
dc8aa29f2c
Merge pull request #120 from ribalda/master
...
configure.ac: Allow user to disable gflags
2017-07-19 23:51:20 +09:00
Shinichiro Hamaji
ce8799c8e2
Merge pull request #209 from sergiud/cmake-icc-fix
...
cmake: fixed gflags namespace detection (fixes #193 )
2017-07-10 01:53:19 +09:00
Sergiu Deitsch
e50aeaa5ee
cmake: fixed gflags namespace detection ( fixes #193 )
...
This commit fixes gflags namespace detection using Intel compiler and ensures
the generated try_compile command line does not produce malformed paths.
2017-07-09 15:48:13 +02:00
Shinichiro Hamaji
40fc21467a
Merge pull request #153 from sergiud/cmake-gnu-install-dirs
...
cmake: do not hardcode relative install directories
2017-07-06 15:01:10 +09:00
Shinichiro Hamaji
a9b9ee8e8c
Merge pull request #152 from sergiud/cmake-project-name
...
cmake: changed project name from google-glog to glog
2017-07-06 15:00:37 +09:00
Shinichiro Hamaji
a808e435b7
Merge pull request #157 from sergiud/cygwin-support
...
Cygwin support
2017-07-06 15:00:06 +09:00
Shinichiro Hamaji
a835da8e08
Merge pull request #158 from sergiud/zero-allocation
...
[RFC] reduce heap memory allocations to zero
2017-07-06 14:58:37 +09:00
Shinichiro Hamaji
96f6656551
Merge pull request #145 from pixelb/rate-limit-posix-fadvise
...
rate limit calls to posix_fadvise()
2017-07-06 14:52:13 +09:00
Hans-Andreas Engel
2df0ca34aa
reduce memory allocations to zero
2017-07-06 00:02:38 +02:00
Shinichiro Hamaji
80bec2ba45
Merge pull request #199 from v1bri/brian-fix-gflags-link
...
Use gflags ALIAS instead of ${gflags_XXX} vars
2017-06-29 12:36:25 +09:00
Shinichiro Hamaji
5cfa9a28f5
Merge pull request #168 from andschwa/windows-stacktrace
...
Port stack tracing to Windows
2017-06-28 12:31:40 +09:00
Andrew Schwartzmeyer
d1f49ba5aa
Support signal handler on Windows
2017-06-27 10:50:20 -07:00
Andrew Schwartzmeyer
7f95ecfdc7
Link to DbgHelp using pre-processor directive
...
This method ensure that all users of glog get automatically linked to
the DbgHelp library without needing to set compiler flags.
2017-06-27 10:50:20 -07:00
Andrew Schwartzmeyer
e2caf9876e
Export GetStackTrace
...
Necessary when building with BUILD_SHARED_LIBS=1.
2017-06-27 10:50:20 -07:00
Andrew Schwartzmeyer
f1d64f7deb
Support symbolizer and demangler on Windows
2017-06-27 10:50:20 -07:00
Andrew Schwartzmeyer
e5d36443c6
Support stacktrace on Windows
2017-06-26 18:47:34 -07:00
Andrew Schwartzmeyer
9c1d0e6f6e
Copy stacktrace_generic-inl.h for Windows
2017-06-26 16:21:10 -07:00
Andrew Schwartzmeyer
bcaaa5d29b
Add Andrew Schwartzmeyer to authors and contributors
2017-06-26 16:21:10 -07:00
Brian Orr
baf6c8b2c5
Specify gflags version in CMakeLists.txt
2017-06-22 11:24:58 -07:00
Brian Orr
e1cae334a1
Use gflags ALIAS instead of ${gflags_XXX} vars
...
The gflags project updated their CMake config last year with a
`gflags` ALIAS target. This can be used instead of the legacy
`${gflags_LIBRARIES}` and `${gflags_INCLUDE_DIRS}` variables. It also
looks cleaner.
Fixes #198
2017-06-22 00:25:13 -07:00
Fumitoshi Ukai
77a0e36b7a
Merge pull request #188 from shinh/remove-configure
...
Remove files generated by autotools
closes #165
2017-05-12 14:57:09 +09:00
Shinichiro Hamaji
4f3e18bf26
Remove files generated by autotools
...
for #165 . I think not many projects have them in their repo.
2017-05-12 14:53:39 +09:00
Shinichiro Hamaji
d166ae3881
Update the version in CMakeLists.txt to 0.3.5
2017-05-10 20:44:01 +09:00
Fumitoshi Ukai
70f0f55813
Merge pull request #186 from shinh/backport
...
Backport internal changes
2017-05-10 12:51:39 +09:00
Shinichiro Hamaji
a6266db97a
Add a hack for naive include scanners
2017-05-09 17:35:18 +09:00