]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: define type aliases for `fork_inferior()` callbacks
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 16 May 2024 16:55:01 +0000 (12:55 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 16 May 2024 19:09:48 +0000 (15:09 -0400)
commit108f22e4ebf7cdb4909f468c4bd83dbe40ccd30b
tree6d210d3a3507e6bef331046924cc06fbbe15e6b2
parent89457440e4a4b71b1fe60ed3e034c814bf8eb6b7
gdb: define type aliases for `fork_inferior()` callbacks

The `fork_inferior()` function accepts multiple callbacks, making its
signature a bit hard to read.  Define some type aliases to make it a bit
clearer.  Use function view for all, while at it.

Change-Id: Ide8d1fa533d0c5eaf3249860f8c0d339baa09bce
Approved-By: Tom Tromey <tom@tromey.com>
gdb/nat/fork-inferior.c
gdb/nat/fork-inferior.h