aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Biesinger <cbiesinger@google.com>2019-10-31 16:02:41 -0500
committerChristian Biesinger <cbiesinger@google.com>2019-11-15 11:49:46 -0800
commit53fea9c7e6d4993088016a16be56098fd819cebc (patch)
treeb0bc7dda9acc3a99a84c9c540ee95bf11bf457ba /gdb/ChangeLog
parentImport the time_r gnulib module (diff)
downloadbinutils-gdb-53fea9c7e6d4993088016a16be56098fd819cebc.tar.gz
binutils-gdb-53fea9c7e6d4993088016a16be56098fd819cebc.tar.bz2
binutils-gdb-53fea9c7e6d4993088016a16be56098fd819cebc.zip
Use ctime_r and localtime_r for threadsafety
To make these calls threadsafe. localtime_r is provided by gnulib if necessary, and for ctime_r we can just use it because it is in a linux- specific file. gdb/ChangeLog: 2019-11-15 Christian Biesinger <cbiesinger@google.com> * maint.c (scoped_command_stats::print_time): Use localtime_r instead of localtime (provided through gnulib if necessary). * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead of ctime. Change-Id: I329bbdc39d5b576f51859ba00f1617e024c30cbd
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f31552b15f1..f727aa4786c 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2019-11-15 Christian Biesinger <cbiesinger@google.com>
+ * maint.c (scoped_command_stats::print_time): Use localtime_r
+ instead of localtime (provided through gnulib if necessary).
+ * nat/linux-osdata.c (time_from_time_t): Use ctime_r instead
+ of ctime.
+
+2019-11-15 Christian Biesinger <cbiesinger@google.com>
+
* gdbsupport/common-defs.h: Include time.h before pathmax.h to
avoid compile errors.