X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Flinux-nat.h;h=1af9e830c831c056f0492909e9fb51ce98de1285;hb=refs%2Fheads%2Fconcurrent-displaced-stepping-2020-04-01;hp=0c1695ad1020aa176752e6bb8e877bf815e63077;hpb=a068643d69ce0f25d5f7cbdaa1d0a3211d72c081;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/linux-nat.h b/gdb/linux-nat.h index 0c1695ad10..1af9e830c8 100644 --- a/gdb/linux-nat.h +++ b/gdb/linux-nat.h @@ -1,6 +1,6 @@ /* Native debugging support for GNU/Linux (LWP layer). - Copyright (C) 2000-2019 Free Software Foundation, Inc. + Copyright (C) 2000-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -88,6 +88,7 @@ public: bool supports_non_stop () override; bool always_non_stop_p () override; + int async_wait_fd () override; void async (int) override; void close () override; @@ -132,7 +133,7 @@ public: void post_attach (int) override; - int follow_fork (int, int) override; + bool follow_fork (bool, bool) override; std::vector static_tracepoint_markers_by_strid (const char *id) override; @@ -163,6 +164,10 @@ public: virtual void low_new_fork (struct lwp_info *parent, pid_t child_pid) {} + /* The method to call, if any, when a new clone event is detected. */ + virtual void low_new_clone (struct lwp_info *parent, pid_t child_lwp) + {} + /* The method to call, if any, when a process is no longer attached. */ virtual void low_forget_process (pid_t pid) @@ -228,7 +233,7 @@ struct lwp_info /* When 'stopped' is set, this is where the lwp last stopped, with decr_pc_after_break already accounted for. If the LWP is - running, and stepping, this is the address at which the lwp was + running and stepping, this is the address at which the lwp was resumed (that is, it's the previous stop PC). If the LWP is running and not stepping, this is 0. */ CORE_ADDR stop_pc; @@ -237,7 +242,7 @@ struct lwp_info int step; /* The reason the LWP last stopped, if we need to track it - (breakpoint, watchpoint, etc.) */ + (breakpoint, watchpoint, etc.). */ enum target_stop_reason stop_reason; /* On architectures where it is possible to know the data address of