X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdbserver%2Ftarget.h;h=aaa9dab742c2bfcc0997589f9b643e98b5b00e0e;hb=ebd4e6d017f972cbba5d889310a09506bec4dbf4;hp=1b0a1201d755672a9b0dd0512a23b6717d8b442f;hpb=7b961964f86618773218c067bfff066b2bff8328;p=binutils-gdb.git diff --git a/gdbserver/target.h b/gdbserver/target.h index 1b0a1201d75..aaa9dab742c 100644 --- a/gdbserver/target.h +++ b/gdbserver/target.h @@ -1,5 +1,5 @@ /* Target operations for the remote server for GDB. - Copyright (C) 2002-2021 Free Software Foundation, Inc. + Copyright (C) 2002-2022 Free Software Foundation, Inc. Contributed by MontaVista Software. @@ -403,9 +403,9 @@ public: /* Return true if target supports debugging agent. */ virtual bool supports_agent (); - /* Enable branch tracing for PTID based on CONF and allocate a branch trace + /* Enable branch tracing for TP based on CONF and allocate a branch trace target information struct for reading and for disabling branch trace. */ - virtual btrace_target_info *enable_btrace (ptid_t ptid, + virtual btrace_target_info *enable_btrace (thread_info *tp, const btrace_config *conf); /* Disable branch tracing. @@ -492,6 +492,10 @@ public: else nullptr. */ virtual thread_info *thread_pending_parent (thread_info *thread); + /* If THREAD is the parent of a fork child that was not reported to GDB, + return this child, else nullptr. */ + virtual thread_info *thread_pending_child (thread_info *thread); + /* Returns true if the target can software single step. */ virtual bool supports_software_single_step (); @@ -631,9 +635,9 @@ int kill_inferior (process_info *proc); the_target->supports_agent () static inline struct btrace_target_info * -target_enable_btrace (ptid_t ptid, const struct btrace_config *conf) +target_enable_btrace (thread_info *tp, const struct btrace_config *conf) { - return the_target->enable_btrace (ptid, conf); + return the_target->enable_btrace (tp, conf); } static inline int @@ -708,6 +712,12 @@ target_thread_pending_parent (thread_info *thread) return the_target->thread_pending_parent (thread); } +static inline thread_info * +target_thread_pending_child (thread_info *thread) +{ + return the_target->thread_pending_child (thread); +} + int read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len); int set_desired_thread ();