/* 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.
#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;
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