summaryrefslogtreecommitdiff
path: root/gdb/config/i386
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2003-08-17 18:22:25 +0000
committerDaniel Jacobowitz <dan@debian.org>2003-08-17 18:22:25 +0000
commit99cf7aa7857b71eaa2acd338685ab34e179184fd (patch)
tree730d6969a7b621a5644a779f7bdea70d265ce03f /gdb/config/i386
parent82ffd889b7660ae7747dac2e6e272924b338e4d7 (diff)
downloadgdb-99cf7aa7857b71eaa2acd338685ab34e179184fd.tar.gz
* Makefile.in (i386-linux-nat.o): Update dependencies.
* config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define. * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH) (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define. * i386-linux-nat.c: Include "linux-nat.h". (child_post_startup_inferior): New function. * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef. * infptrace.c (kill_inferior): Wrap in #ifdef. * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after attaching to each LWP. (child_wait, lin_lwp_wait): Call linux_handle_extended_wait. (init_lin_lwp_ops): Fill in some more operations. * linux-nat.h (linux_enable_event_reporting) (linux_handle_extended_wait, linux_child_post_startup_inferior): New prototypes. * linux-nat.c (linux_enable_event_reporting): New function. (child_post_attach, linux_child_post_startup_inferior) (child_post_startup_inferior, child_follow_fork) (linux_handle_extended_wait, kill_inferior): New functions.
Diffstat (limited to 'gdb/config/i386')
-rw-r--r--gdb/config/i386/nm-linux.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/config/i386/nm-linux.h b/gdb/config/i386/nm-linux.h
index ad57124e88c..1df875fd57b 100644
--- a/gdb/config/i386/nm-linux.h
+++ b/gdb/config/i386/nm-linux.h
@@ -82,4 +82,13 @@ extern int cannot_store_register (int regno);
/* Override child_resume in `infptrace.c'. */
#define CHILD_RESUME
+/* `linux-nat.c' and `i386-nat.c' have their own versions of
+ child_post_startup_inferior. Define this to use the copy in
+ `i386-linux-nat.c' instead, which calls both.
+
+ NOTE drow/2003-08-17: This is ugly beyond words, but properly
+ fixing it will require some serious surgery. Ideally the target
+ stack could be used for this. */
+#define LINUX_CHILD_POST_STARTUP_INFERIOR
+
#endif /* nm-linux.h */