This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix -list-thread-groups --available logic and add test


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]