]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: pass info_threads_opts to print_thread_info_1
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Mon, 12 May 2025 07:10:55 +0000 (09:10 +0200)
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>
Mon, 12 May 2025 07:11:10 +0000 (09:11 +0200)
commit32c39bab07b6cfcf42c899e65c39b7a9a9d2d9fe
treea0038a18e469058ae14308e10071a040427879e5
parent8dc4e62fc94ad34e4e4b92df25e0ad11af663084
gdb: pass info_threads_opts to print_thread_info_1

The "info threads" command tracks its options in a struct named
'info_threads_opts', which currently has only one option.  Pass the
whole options object to helper functions, instead of passing
the option value individually.  This is a refactoring to make adding
more options easier.

Reviewed-By: Guinevere Larsen <guinevere@redhat.com>
Approved-by: Pedro Alves <pedro@palves.net
gdb/thread.c