rpms/gdb/devel gdb-6.3-attach-dso-20050929.patch, NONE, 1.1 gdb.spec, 1.159, 1.160

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Thu Sep 29 22:42:00 UTC 2005


Author: jjohnstn

Update of /cvs/dist/rpms/gdb/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv8764

Modified Files:
	gdb.spec 
Added Files:
	gdb-6.3-attach-dso-20050929.patch 
Log Message:

* Thu Sep 29 2005 Jeff Johnston <jjohnstn at redhat.com>   6.3.0.0-1.77
- Bump up release number.

* Thu Sep 29 2005 Jeff Johnston <jjohnstn at redhat.com>   6.3.0.0-1.74
- Fix up DSO read logic when process is attached.




gdb-6.3-attach-dso-20050929.patch:
 Makefile.in |    2 +-
 infcmd.c    |    5 +++++
 inftarg.c   |    4 ----
 3 files changed, 6 insertions(+), 5 deletions(-)

--- NEW FILE gdb-6.3-attach-dso-20050929.patch ---
2005-09-29  Jeff Johnston  <jjohnstn at redhat.com>

	* infcmd.c (attach_command): Notify observers of new
	inferior once we have received the stop notification
	after an attach.
	* inftarg.c (child_attach):  Remove observer notification
	of new inferior because we haven't stopped yet and can't
	perform any meaningful operations yet.
	* Makefile.in (infcmd.o): Add dependency on observer.h.

--- gdb-6.3/gdb/infcmd.c.fix	2005-09-29 16:52:14.000000000 -0400
+++ gdb-6.3/gdb/infcmd.c	2005-09-29 16:54:14.000000000 -0400
@@ -32,6 +32,7 @@
 #include "gdbcmd.h"
 #include "symfile.h"
 #include "gdbcore.h"
+#include "observer.h"
 #include "target.h"
 #include "language.h"
 #include "symfile.h"
@@ -1799,6 +1800,10 @@ attach_command (char *args, int from_tty
   stop_soon = NO_STOP_QUIETLY;
 #endif
 
+  /* Notify any observers about the inferior being created before
+     the inferior symbol table has been read in.  */
+  observer_notify_inferior_created (&current_target, from_tty);
+
   /*
    * If no exec file is yet known, try to determine it from the
    * process itself.
--- gdb-6.3/gdb/inftarg.c.fix	2005-09-29 16:54:31.000000000 -0400
+++ gdb-6.3/gdb/inftarg.c	2005-09-29 16:55:57.000000000 -0400
@@ -211,10 +211,6 @@ child_attach (char *args, int from_tty)
   
   inferior_ptid = pid_to_ptid (pid);
   push_target (&deprecated_child_ops);
-
-  /* Do this first, before anything has had a chance to query the
-     inferior's symbol table or similar.  */
-  observer_notify_inferior_created (&current_target, from_tty);
 }
 
 #if !defined(CHILD_POST_ATTACH)
--- gdb-6.3/gdb/Makefile.in.fix	2005-09-29 16:56:23.000000000 -0400
+++ gdb-6.3/gdb/Makefile.in	2005-09-29 16:57:04.000000000 -0400
@@ -2104,7 +2104,7 @@ infcmd.o: infcmd.c $(defs_h) $(gdb_strin
 	$(symfile_h) $(gdbcore_h) $(target_h) $(language_h) $(symfile_h) \
 	$(objfiles_h) $(completer_h) $(ui_out_h) $(event_top_h) \
 	$(parser_defs_h) $(regcache_h) $(reggroups_h) $(block_h) \
-	$(gdb_assert_h)
+	$(gdb_assert_h) $(observer_h)
 inf-loop.o: inf-loop.c $(defs_h) $(inferior_h) $(target_h) $(event_loop_h) \
 	$(event_top_h) $(inf_loop_h) $(remote_h)
 inflow.o: inflow.c $(defs_h) $(frame_h) $(inferior_h) $(command_h) \


Index: gdb.spec
===================================================================
RCS file: /cvs/dist/rpms/gdb/devel/gdb.spec,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -r1.159 -r1.160
--- gdb.spec	27 Sep 2005 16:07:52 -0000	1.159
+++ gdb.spec	29 Sep 2005 22:41:56 -0000	1.160
@@ -11,7 +11,7 @@
 Version: 6.3.0.0
 
 # The release always contains a leading reserved number, start it at 0.
-Release: 1.73
+Release: 1.77
 
 License: GPL
 Group: Development/Debuggers
@@ -249,6 +249,9 @@
 # Fix frame pointer for ia64 sigtramp frame
 Patch166: gdb-6.3-ia64-sigtramp-fp-20050926.patch
 
+# Fix DSO read logic for attached process
+Patch167: gdb-6.3-attach-dso-20050929.patch
+
 %ifarch ia64
 BuildRequires: ncurses-devel glibc-devel gcc make gzip texinfo dejagnu libunwind >= 0.96-3
 %else
@@ -347,6 +350,7 @@
 %patch164 -p1
 %patch165 -p1
 %patch166 -p1
+%patch167 -p1
 
 # Change the version that gets printed at GDB startup, so it is RedHat
 # specific.
@@ -515,6 +519,12 @@
 # don't include the files in include, they are part of binutils
 
 %changelog
+* Thu Sep 29 2005 Jeff Johnston	<jjohnstn at redhat.com>	6.3.0.0-1.77
+- Bump up release number.
+
+* Thu Sep 29 2005 Jeff Johnston	<jjohnstn at redhat.com>	6.3.0.0-1.74
+- Fix up DSO read logic when process is attached.
+
 * Mon Sep 26 2005 Jeff Johnston	<jjohnstn at redhat.com>	6.3.0.0-1.73
 - Bump up release number.
 




More information about the fedora-cvs-commits mailing list