diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-10-14 08:38:02 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-10-14 08:38:02 -0400 |
commit | b129dcac882da87767cb863ad8b2572f90e9e5bc (patch) | |
tree | 4bd370e3cbfdcac3c20bd62d6391f118663a2874 /gdb/tracepoint.c | |
parent | af5bf4ada48ff65b6658be1fab8f9c8f8ab5f319 (diff) | |
download | gdb-b129dcac882da87767cb863ad8b2572f90e9e5bc.zip gdb-b129dcac882da87767cb863ad8b2572f90e9e5bc.tar.gz gdb-b129dcac882da87767cb863ad8b2572f90e9e5bc.tar.bz2 |
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.
Diffstat (limited to 'gdb/tracepoint.c')
0 files changed, 0 insertions, 0 deletions