/* Interface between GDB and target environments, including files and processes
- Copyright (C) 1990-2019 Free Software Foundation, Inc.
+ Copyright (C) 1990-2020 Free Software Foundation, Inc.
Contributed by Cygnus Support. Written by John Gilmore.
#include "bfd.h"
#include "symtab.h"
#include "memattr.h"
-#include "gdbsupport/vec.h"
#include "gdbsupport/gdb_signals.h"
#include "btrace.h"
#include "record.h"
#include "command.h"
#include "disasm.h"
#include "tracepoint.h"
+#include "displaced-stepping.h"
#include "gdbsupport/break-common.h" /* For enum target_hw_bp_type. */
{
/* AVR target specific transfer. See "avr-tdep.c" and "remote.c". */
TARGET_OBJECT_AVR,
- /* SPU target specific transfer. See "spu-tdep.c". */
- TARGET_OBJECT_SPU,
/* Transfer up-to LEN bytes of memory starting at OFFSET. */
TARGET_OBJECT_MEMORY,
/* Memory, avoiding GDB's data cache and trusting the executable.
struct target_ops
{
+ bool pending_commit_resume = false;
+
/* Return this target's stratum. */
virtual strata stratum () const = 0;
/* Cleanup after generating a core file. */
virtual void done_generating_core ()
TARGET_DEFAULT_IGNORE ();
+
+ virtual bool supports_displaced_step (thread_info *thread)
+ TARGET_DEFAULT_FUNC (default_supports_displaced_step);
+
+ virtual displaced_step_prepare_status displaced_step_prepare (thread_info *thread)
+ TARGET_DEFAULT_FUNC (default_displaced_step_prepare);
+
+ virtual displaced_step_finish_status displaced_step_finish (thread_info *thread, gdb_signal sig)
+ TARGET_DEFAULT_FUNC (default_displaced_step_finish);
};
/* Deleter for std::unique_ptr. See comments in
that supports writing to flash memory, and it should be used for
all cases where access to flash memory is desirable.
- REQUESTS is the vector (see vec.h) of memory_write_request.
+ REQUESTS is the vector of memory_write_request.
PRESERVE_FLASH_P indicates what to do with blocks which must be
erased, but not completely rewritten.
PROGRESS_CB is a function that will be periodically called to provide