> At some point, I'd like to implement some of the ideas at: > > http://sourceware.org/ml/gdb-patches/2009-02/msg00156.html Yep, they make good sense. > The most important/annoying part is to convert the targets and the > method interfaces, due to the need to touch "native" files. I know what you mean, now :) > Doesn't matter much for a deprecated_child_ops target user, > but, this should be: > > deprecated_child_ops.to_kill (&deprecated_child_ops); > > ... so the next target in the chain can again do > find_target_beneath (ops)->to_kill (find_target_beneath (ops)), > and so on. Humpf, yes, right. That was pretty mindless of me... Here is what I propose to check in. Do you think I should remove the INHERIT for the to_kill method as well? 2009-03-17 Joel Brobecker Add a target_ops parameter to the to_kill method in struct target_ops. * target.h (struct target_ops): Add a "target_ops *" parameter to method to_kill. (target_kill): Remove macro. Add declaration. * target.c (debug_to_kill): Delete, no longer necessary. (target_kill): New function. (update_current_target): Update the call to de_fault for field "to_kill". (setup_target_debug): Do not set current_target.to_kill. * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c, linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update accordingly. -- Joel