binutils-gdb/gdb/nat
Simon Marchi b129dcac88 Use std::vector in linux_xfer_osdata_processgroups
This simplifies the code quite a bit, by removing the array of PID_T
that's actually an array of pairs of PID_T.

This code is only used to implement "info os procgroups".  I tested by hand
as well as by running gdb.base/info-os.exp for unix, native-gdbserver
and native-extended-gdbserver.

gdb/ChangeLog:

	* nat/linux-osdata.c: Include algorithm.
	(compare_processes): Remove.
	(struct pid_pgid_entry): New struct.
	(linux_xfer_osdata_processgroups): Use std::vector instead of
	XNEWVEC.
2017-10-14 08:38:02 -04:00
..
aarch64-linux-hw-point.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
aarch64-linux-hw-point.h Include break-common.h in nat/aarch64-linux-hw-point.h 2017-01-06 14:33:01 +00:00
aarch64-linux.c lwp_info: Make the arch code free arch_lwp_info 2017-10-12 16:48:22 -04:00
aarch64-linux.h lwp_info: Make the arch code free arch_lwp_info 2017-10-12 16:48:22 -04:00
amd64-linux-siginfo.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
amd64-linux-siginfo.h Include signal.h in nat/amd64-linux-siginfo.h 2017-01-06 14:33:01 +00:00
fork-inferior.c Implement "set cwd" command on GDB 2017-10-04 01:59:30 -04:00
fork-inferior.h Add ATTRIBUTE_PRINTF to trace_start_error 2017-06-17 23:19:25 +02:00
gdb_ptrace.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
gdb_thread_db.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
glibc_thread_db.h Move shared native target specific code to gdb/nat 2014-06-20 14:06:48 +01:00
linux-btrace.c Introduce and use gdb_file_up 2017-08-03 07:58:52 -06:00
linux-btrace.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
linux-namespaces.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
linux-namespaces.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
linux-nat.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
linux-osdata.c Use std::vector in linux_xfer_osdata_processgroups 2017-10-14 08:38:02 -04:00
linux-osdata.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
linux-personality.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
linux-personality.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
linux-procfs.c Rename _const functions to use overloading instead 2017-09-11 15:46:12 -06:00
linux-procfs.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
linux-ptrace.c nat/linux-ptrace.c: add missing gdb_byte* cast 2017-06-18 23:29:03 +02:00
linux-ptrace.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
linux-waitpid.c linux-waitpid: Get rid of format string warning 2017-09-21 15:19:40 +02:00
linux-waitpid.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mips-linux-watch.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
mips-linux-watch.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
ppc-linux.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
ppc-linux.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
x86-cpuid.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
x86-dregs.c x86-dregs: Print debug registers one per line 2017-06-25 12:40:10 +02:00
x86-dregs.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
x86-gcc-cpuid.h Sync up x86-gcc-cpuid.h with cpuid.h from gcc-6 branch. 2017-02-17 11:43:39 +01:00
x86-linux-dregs.c update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
x86-linux-dregs.h update copyright year range in GDB files 2017-01-01 10:52:34 +04:00
x86-linux.c lwp_info: Make the arch code free arch_lwp_info 2017-10-12 16:48:22 -04:00
x86-linux.h lwp_info: Make the arch code free arch_lwp_info 2017-10-12 16:48:22 -04:00