This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Enable inferior_created hook for remote targets
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Thu, 3 Mar 2005 11:55:46 -0500
- Subject: [commit] Enable inferior_created hook for remote targets
remote_open_1 creates an inferior, so it should notify the inferior_created
observer. I kept it next to the existing hook for the solib code. This
patch fixes pthread_cond_wait.exp when using gdbserver on a Linux target; we
can now backtrace through __kernel_vsyscall and into libc.
Committed as obvious.
--
Daniel Jacobowitz
CodeSourcery, LLC
2005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
* remote.c (remote_open_1): Call observer_notify_inferior_created.
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.174
diff -u -p -r1.174 remote.c
--- remote.c 21 Feb 2005 06:21:08 -0000 1.174
+++ remote.c 3 Mar 2005 16:53:40 -0000
@@ -1,7 +1,7 @@
/* Remote target communications for serial-line targets in custom GDB protocol
Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
- 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
+ 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
Free Software Foundation, Inc.
This file is part of GDB.
@@ -2311,6 +2311,8 @@ remote_open_1 (char *name, int from_tty,
remote_check_symbols (symfile_objfile);
}
#endif
+
+ observer_notify_inferior_created (¤t_target, from_tty);
}
/* This takes a program previously attached to and detaches it. After