This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix -list-thread-groups --available logic and add test
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>, gdb-patches at sourceware dot org
- Cc: tom at tromey dot com
- Date: Wed, 4 Oct 2017 15:14:37 +0100
- Subject: Re: [PATCH] Fix -list-thread-groups --available logic and add test
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=palves at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 9C5FEC0587C2
- References: <1507125639-522-1-git-send-email-simon.marchi@ericsson.com>
On 10/04/2017 03:00 PM, Simon Marchi wrote:
> +# List a specific process.
> +set spawn_id [remote_spawn target $binfile]
> +set pid [spawn_id_get_pid $spawn_id]
> +mi_gdb_test \
> + "-list-thread-groups --available i${pid}" \
> + "\\^done,groups=\\\[{id=\"${pid}\",type=\"process\",.*}\\\]" \
> + "list available thread groups with filter"
Won't that ".*" above end up matching more than one process, if
GDB's filtering ends up a bit borked? Can we be sure that
only one process comes out?
Thanks,
Pedro Alves