This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/3] Get rid of inferior_list
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: Simon Marchi <simon dot marchi at polymtl dot ca>, <gdb-patches at sourceware dot org>
- Date: Sat, 14 Oct 2017 09:12:00 -0400
- Subject: Re: [PATCH 0/3] Get rid of inferior_list
- Authentication-results: sourceware.org; auth=none
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=simon dot marchi at ericsson dot com;
- References: <20171009143036.10215-1-simon.marchi@polymtl.ca>
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
On 2017-10-09 10:30 AM, Simon Marchi wrote:
> This patchset removes the inferior_list/inferior_list_entry structures,
> in favor of using std::list. When working in gdbserver, I find it a bit
> cumbersome to work with the threads and processes list, having to cast
> from inferior_list_entry to the real type.
>
> Simon Marchi (3):
> gdbserver: Use std::list for all_dlls
> gdbserver: Use std::list for all_processes
> gdbserver: use std::list for all_threads
>
> gdb/gdbserver/dll.c | 36 ++---
> gdb/gdbserver/dll.h | 8 +-
> gdb/gdbserver/gdbthread.h | 109 ++++++++++++++-
> gdb/gdbserver/inferiors.c | 301 +++++++++++------------------------------
> gdb/gdbserver/inferiors.h | 124 ++++++++---------
> gdb/gdbserver/linux-arm-low.c | 5 +-
> gdb/gdbserver/linux-low.c | 277 ++++++++++++++++---------------------
> gdb/gdbserver/linux-mips-low.c | 4 +-
> gdb/gdbserver/linux-x86-low.c | 23 ++--
> gdb/gdbserver/lynx-low.c | 10 +-
> gdb/gdbserver/regcache.c | 18 +--
> gdb/gdbserver/server.c | 197 +++++++++------------------
> gdb/gdbserver/target.c | 7 +-
> gdb/gdbserver/thread-db.c | 4 +-
> gdb/gdbserver/tracepoint.c | 8 +-
> gdb/gdbserver/win32-i386-low.c | 4 +-
> gdb/gdbserver/win32-low.c | 16 +--
> 17 files changed, 479 insertions(+), 672 deletions(-)
>
I pushed this in (including the v2 for patch 1/3).
Simon