This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFC] Remove CHILD_POST_STARTUP_INFERIOR
- From: "Pierre Muller" <muller at ics dot u-strasbg dot fr>
- To: <gdb-patches at sourceware dot org>
- Date: Fri, 5 Oct 2007 11:42:35 +0200
- Subject: [RFC] Remove CHILD_POST_STARTUP_INFERIOR
CHILD_POST_STARTUP_INFERIOR
is currently only set in
config/i386/nm-i386.h
and used nowhere inside gdb source tree
(tested with "grep CHILD_POST_STARTUP_INFERIOR * */* */*/* */*/*/*"
that returns only ChangeLog entries and the file above).
Thus this is quite an obvious patch.
Nevertheless, I had a question related to this:
- is it possible to change the category
in ARI so that if it reappears it becomes a
regression?
Would the following change in gdb_ari.sh
be the right change for this?
Index: gdb_ari.sh
===================================================================
RCS file: /cvs/gdbadmin/ss/gdb_ari.sh,v
retrieving revision 1.73
diff -u -p -r1.73 gdb_ari.sh
--- gdb_ari.sh 14 Aug 2005 22:47:46 -0000 1.73
+++ gdb_ari.sh 5 Oct 2007 09:35:25 -0000
@@ -632,7 +632,7 @@ Replace CHILD_PREPARE_TO_STORE with inf-
BEGIN { doc["CHILD_POST_STARTUP_INFERIOR"] = "\
Replace CHILD_POST_STARTUP_INFERIOR with inf-child.c"
- category["CHILD_POST_STARTUP_INFERIOR"] = ari_obsolete
+ category["CHILD_POST_STARTUP_INFERIOR"] = ari_regression
}
/(^|[^_[:alnum:]])CHILD_POST_STARTUP_INFERIOR([^_[:alnum:]]|$)/ {
fail("CHILD_POST_STARTUP_INFERIOR")
Pierre Muller
ChangeLog entry:
2007-10-04 Pierre Muller <muller@ics.u-strasbg.fr>
* config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix:
Remove.
Index: config/i386/nm-i386.h
===================================================================
RCS file: /cvs/src/src/gdb/config/i386/nm-i386.h,v
retrieving revision 1.10
diff -u -p -r1.10 nm-i386.h
--- config/i386/nm-i386.h 23 Aug 2007 18:08:48 -0000 1.10
+++ config/i386/nm-i386.h 5 Oct 2007 09:28:10 -0000
@@ -110,10 +110,6 @@ extern int i386_stopped_by_watchpoint (v
#define target_remove_hw_breakpoint(bp_tgt) \
i386_remove_hw_breakpoint (bp_tgt)
-/* child_post_startup_inferior used to
- reset all debug registers by calling i386_cleanup_dregs (). */
-#define CHILD_POST_STARTUP_INFERIOR
-
#endif /* I386_USE_GENERIC_WATCHPOINTS */
#endif /* NM_I386_H */