binutils-gdb/gdb/nat
Christian Biesinger 53fea9c7e6 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
2019-11-15 11:49:46 -08:00
..
aarch64-linux-hw-point.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
aarch64-linux-hw-point.h Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
aarch64-linux.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
aarch64-linux.h
aarch64-sve-linux-ptrace.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
aarch64-sve-linux-ptrace.h
aarch64-sve-linux-sigcontext.h [gdb] Fix more typos in comments (2) 2019-10-26 09:55:32 +02:00
amd64-linux-siginfo.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
amd64-linux-siginfo.h
fork-inferior.c Revert "Improve ptrace-error detection on Linux targets" 2019-09-26 14:24:30 -04:00
fork-inferior.h Fix type of startup_with_shell in gdbserver 2019-10-02 13:43:41 -06:00
gdb_ptrace.h
gdb_thread_db.h
glibc_thread_db.h
linux-btrace.c gdb: Remove whitespace in 'std::vector <...>' 2019-10-03 09:42:42 +01:00
linux-btrace.h gdb: Remove vec.{c,h} and update code to not include vec.h 2019-10-15 21:31:55 +01:00
linux-namespaces.c Change boolean options to bool instead of int 2019-09-18 09:35:12 +09:00
linux-namespaces.h Change boolean options to bool instead of int 2019-09-18 09:35:12 +09:00
linux-nat.h Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
linux-osdata.c Use ctime_r and localtime_r for threadsafety 2019-11-15 11:49:46 -08:00
linux-osdata.h
linux-personality.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
linux-personality.h
linux-procfs.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
linux-procfs.h
linux-ptrace.c Revert "Improve ptrace-error detection on Linux targets" 2019-09-26 14:24:30 -04:00
linux-ptrace.h Revert "Improve ptrace-error detection on Linux targets" 2019-09-26 14:24:30 -04:00
linux-waitpid.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
linux-waitpid.h
mips-linux-watch.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
mips-linux-watch.h Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
ppc-linux.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
ppc-linux.h Remove Cell Broadband Engine debugging support 2019-09-20 23:06:57 +02:00
x86-cpuid.h
x86-dregs.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
x86-dregs.h Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
x86-gcc-cpuid.h
x86-linux-dregs.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
x86-linux-dregs.h
x86-linux.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
x86-linux.h