This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patchv4] Sort threads for thread apply all (bt)
- From: Doug Evans <dje at google dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Thu, 22 Jan 2015 11:17:01 -0800
- Subject: Re: [patchv4] Sort threads for thread apply all (bt)
- Authentication-results: sourceware.org; auth=none
- References: <20150115183316 dot GA16405 at host2 dot jankratochvil dot net> <CADPb22R_dY8nfU4bgpPS+4K5gG9cdMzCqW--H85hMwBDdh+MRg at mail dot gmail dot com> <20150116233802 dot GA8732 at host2 dot jankratochvil dot net> <21696 dot 17350 dot 451535 dot 337528 at ruffy2 dot mtv dot corp dot google dot com> <20150122184655 dot GA15064 at host2 dot jankratochvil dot net> <83zj9atzpu dot fsf at gnu dot org> <20150122190141 dot GB16253 at host2 dot jankratochvil dot net>
On Thu, Jan 22, 2015 at 11:01 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> On Thu, 22 Jan 2015 19:52:29 +0100, Eli Zaretskii wrote:
>> (Do we want a NEWS entry?)
>
> OK, I think so.
>
> I have taken this entry as a template:
> ------------------------------------------------------------------------------
> * The command 'tsave' can now support new option '-ctf' to save trace
> buffer in Common Trace Format.
> ------------------------------------------------------------------------------
>
>
> Thanks,
> Jan
>
> gdb/ChangeLog
> 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
> '-ascending'.
> * thread.c (tp_array_compar_ascending, tp_array_compar): New.
> (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
> Sort tp_array using tp_array_compar.
> (_initialize_thread): Extend thread_apply_all_command help.
Code parts LGTM.
Thanks.