diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2021-05-31 13:00:32 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2021-07-14 23:21:30 -0400 |
commit | 3a849a3454a53684ca3d679697adb1bfb56596cc (patch) | |
tree | bee2c0eb1fac46adad4de1fefeda09d41c2aa14c /gdb/target-debug.h | |
parent | ff77083572522d805e631b287b4b9db68f596503 (diff) | |
download | binutils-3a849a3454a53684ca3d679697adb1bfb56596cc.zip binutils-3a849a3454a53684ca3d679697adb1bfb56596cc.tar.gz binutils-3a849a3454a53684ca3d679697adb1bfb56596cc.tar.bz2 |
gdb: pass child_ptid and fork kind to target_ops::follow_fork
This is a small cleanup I think would be nice, that I spotted while
doing the following patch.
gdb/ChangeLog:
* target.h (struct target_ops) <follow_fork>: Add ptid and
target_waitkind parameters.
(target_follow_fork): Likewise.
* target.c (default_follow_fork): Likewise.
(target_follow_fork): Likewise.
* fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
* fbsd-nat.c (fbsd_nat_target::follow_fork): Likewise.
* linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
* linux-nat.c (linux_nat_target::follow_fork): Likewise.
* obsd-nat.h (class obsd_nat_target) <follow_fork>: Likewise.
* obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
* remote.c (class remote_target) <follow_fork>: Likewise.
* target-debug.h (target_debug_print_target_waitkind): New.
* target-delegates.c: Re-generate.
Change-Id: I5421a542f2e19100a22b74cc333d2b235d0de3c8
Diffstat (limited to 'gdb/target-debug.h')
-rw-r--r-- | gdb/target-debug.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/target-debug.h b/gdb/target-debug.h index c3004c2..5949441 100644 --- a/gdb/target-debug.h +++ b/gdb/target-debug.h @@ -174,6 +174,8 @@ target_debug_do_print (host_address_to_string (X.data ())) #define target_debug_print_gdb_unique_xmalloc_ptr_char(X) \ target_debug_do_print (X.get ()) +#define target_debug_print_target_waitkind(X) \ + target_debug_do_print (pulongest (X)) static void target_debug_print_struct_target_waitstatus_p (struct target_waitstatus *status) |