Add target_ops argument to to_post_startup_inferior
2014-02-19 Tom Tromey <tromey@redhat.com> * target.h (struct target_ops) <to_post_startup_inferior>: Add argument. (target_post_startup_inferior): Add argument. * target.c (debug_to_post_startup_inferior): Add argument. (update_current_target): Update. * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self' argument. * linux-nat.c (linux_child_post_startup_inferior): Add 'self' argument. * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self' argument. * inf-child.c (inf_child_post_startup_inferior): Add 'self' argument. * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add 'self' argument. (super_post_startup_inferior): Likewise. * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add 'self' argument. (super_post_startup_inferior): Likewise. * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior): Add 'self' argument. (super_post_startup_inferior): Likewise.
This commit is contained in:
parent
71a9f134da
commit
2e97a79e22
10 changed files with 47 additions and 18 deletions
|
@ -828,16 +828,18 @@ aarch64_linux_get_debug_reg_capacity (void)
|
|||
}
|
||||
}
|
||||
|
||||
static void (*super_post_startup_inferior) (ptid_t ptid);
|
||||
static void (*super_post_startup_inferior) (struct target_ops *self,
|
||||
ptid_t ptid);
|
||||
|
||||
/* Implement the "to_post_startup_inferior" target_ops method. */
|
||||
|
||||
static void
|
||||
aarch64_linux_child_post_startup_inferior (ptid_t ptid)
|
||||
aarch64_linux_child_post_startup_inferior (struct target_ops *self,
|
||||
ptid_t ptid)
|
||||
{
|
||||
aarch64_forget_process (ptid_get_pid (ptid));
|
||||
aarch64_linux_get_debug_reg_capacity ();
|
||||
super_post_startup_inferior (ptid);
|
||||
super_post_startup_inferior (self, ptid);
|
||||
}
|
||||
|
||||
/* Implement the "to_read_description" target_ops method. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue