Initialise target descrption after skipping extra traps for --wrapper
[deliverable/binutils-gdb.git] / gdb / gdbserver / target.h
index 9a4086708cf3b15c1931c21d816403d38d4dabf0..fefd8d180ecadc448244c042e93955423846ebe6 100644 (file)
@@ -74,6 +74,9 @@ struct target_ops
 
   int (*create_inferior) (char *program, char **args);
 
+  /* Architecture-specific setup.  */
+  void (*arch_setup) (void);
+
   /* Attach to a running process.
 
      PID is the process ID to attach to, specified by the user
@@ -445,6 +448,13 @@ void set_target_ops (struct target_ops *);
 #define create_inferior(program, args) \
   (*the_target->create_inferior) (program, args)
 
+#define target_arch_setup()                     \
+  do                                            \
+    {                                           \
+      if (the_target->arch_setup != NULL)       \
+       (*the_target->arch_setup) ();            \
+    } while (0)
+
 #define myattach(pid) \
   (*the_target->attach) (pid)
 
This page took 0.024507 seconds and 4 git commands to generate.