X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=gdb%2Finfrun.h;h=5820296cd140bf075d6584039f54d68a591a7c92;hb=refs%2Fheads%2Fusers%2Fsimark%2Fautotools-bump;hp=39be375fbe90e7a8bd4702150ec0bb6cedf1550d;hpb=a8836c9358a11055a08d11ecacc5d7c8f6d5e7a8;p=thirdparty%2Fbinutils-gdb.git diff --git a/gdb/infrun.h b/gdb/infrun.h index 39be375fbe9..5820296cd14 100644 --- a/gdb/infrun.h +++ b/gdb/infrun.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1986-2016 Free Software Foundation, Inc. +/* Copyright (C) 1986-2018 Free Software Foundation, Inc. This file is part of GDB. @@ -19,6 +19,7 @@ #define INFRUN_H 1 #include "symtab.h" +#include "common/byte-vector.h" struct target_waitstatus; struct frame_info; @@ -243,4 +244,22 @@ extern void all_uis_check_sync_execution_done (void); started or re-started). */ extern void all_uis_on_sync_execution_starting (void); +/* Base class for displaced stepping closures (the arch-specific data). */ + +struct displaced_step_closure +{ + virtual ~displaced_step_closure () = 0; +}; + +/* A simple displaced step closure that contains only a byte buffer. */ + +struct buf_displaced_step_closure : displaced_step_closure +{ + buf_displaced_step_closure (int buf_size) + : buf (buf_size) + {} + + gdb::byte_vector buf; +}; + #endif /* INFRUN_H */