/* Ada Ravenscar thread support.
- Copyright 2004, 2010, 2011 Free Software Foundation, Inc.
+ Copyright (C) 2004-2021 Free Software Foundation, Inc.
This file is part of GDB.
struct ravenscar_arch_ops
{
- void (*to_fetch_registers) (struct regcache *, int);
- void (*to_store_registers) (struct regcache *, int);
- void (*to_prepare_to_store) (struct regcache *);
-};
-
-/* Register implementations for target ops to_store_registers,
- to_prepare_to_store and to_fetch_registers when the inferior_ptid
- is different from the running thread. In that case, the registers
- are saved in a architecture-specific location. */
-/* FIXME: only one architecture can be registered for now. See
- implementation. */
+ virtual ~ravenscar_arch_ops ()
+ {
+ }
-extern void ravenscar_register_arch_ops (struct ravenscar_arch_ops *ops);
+ virtual void fetch_registers (struct regcache *, int) = 0;
+ virtual void store_registers (struct regcache *, int) = 0;
+};
#endif /* !defined (RAVENSCAR_THREAD_H) */