Add [FLAG]... arguments to 'thread apply'.
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sat, 5 May 2018 18:33:38 +0000 (20:33 +0200)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Thu, 12 Jul 2018 20:50:36 +0000 (22:50 +0200)
commit1fe75df7eb1fcdf56bbf3041b473bd9a80120054
tree51402073361fb0369d7d66046852fa96a3aee9b6
parent6a70eb7d9bf1646e7a7379eb8efdba30c2cb9c92
Add [FLAG]... arguments to 'thread apply'.

Enhance 'thread apply' command to also accept [FLAG]... arguments.

An example usage for this new argument:
   thread apply all -s frame apply all -s p some_local_var_somewhere
      Prints the thread id, frame location and some_local_var_somewhere
      value in frames of threads that have such local var.

To make the life of the user easier, the most typical use cases
have shortcuts :
   taas  : shortcut for 'thread apply all -s'
   tfaas : shortcut for 'thread apply all -s frame apply all -s"

An example usage :
   tfaas p some_local_var_somewhere
     same as the longer:
        'thread apply all -s frame apply all -s p some_local_var_somewhere'

gdb/ChangeLog
2018-07-12  Philippe Waroquiers  <philippe.waroquiers@skynet.be>

* thread.c (thr_try_catch_cmd): New function.
(thread_apply_all_command): Handle qcs flags.
(thread_apply_command): Handle qcs flags.
(taas_command): New function.
(tfaas_command): New function.
(_initialize_thread): Update to setup the new commands 'taas
and 'tfaas'. Change doc string for 'thread apply'.
gdb/ChangeLog
gdb/thread.c
This page took 0.025535 seconds and 4 git commands to generate.