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 Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
aarch64-sve-linux-ptrace.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
aarch64-sve-linux-ptrace.h AArch64 SVE: Support changing vector lengths for ptrace 2019-04-15 15:12:44 +01:00
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 Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
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 Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_thread_db.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
glibc_thread_db.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
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 Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
linux-personality.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
linux-personality.h Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
linux-procfs.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
linux-procfs.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
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 Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
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 Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
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 Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
x86-linux-dregs.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
x86-linux-dregs.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
x86-linux.c Rename common to gdbsupport 2019-07-09 07:45:38 -06:00
x86-linux.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00