X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fexec.h;h=54e6ff4d9bab6c2c6f730b1faaf5a4062e20ce65;hb=5b6d1e4fa4fc6827c7b3f0e99ff120dfa14d65d2;hp=3778a7e32f115aabca1fe9e866040d9789137e5c;hpb=d55e5aa6b29906346c51ad00e6a9b112590aa294;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/exec.h b/gdb/exec.h index 3778a7e32f..54e6ff4d9b 100644 --- a/gdb/exec.h +++ b/gdb/exec.h @@ -1,6 +1,6 @@ /* Work with executable files, for GDB, the GNU debugger. - Copyright (C) 2003-2019 Free Software Foundation, Inc. + Copyright (C) 2003-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -20,10 +20,10 @@ #ifndef EXEC_H #define EXEC_H -#include "memrange.h" +#include "target.h" #include "progspace.h" +#include "memrange.h" #include "symfile-add-flags.h" -#include "target.h" struct target_section; struct target_ops; @@ -44,6 +44,13 @@ extern int build_section_table (struct bfd *, struct target_section **, extern void clear_section_table (struct target_section_table *table); +/* The current inferior is a child vforked and its program space is + shared with its parent. This pushes the exec target on the + current/child inferior's target stack if there are sections in the + program space's section table. */ + +extern void exec_on_vfork (); + /* Read from mappable read-only sections of BFD executable files. Return TARGET_XFER_OK, if read is successful. Return TARGET_XFER_EOF if read is done. Return TARGET_XFER_E_IO