This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[commit/regression] Fix remote-sim.c regression on PPC64
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: GDB Patches <gdb-patches at sourceware dot org>
- Date: Wed, 22 Aug 2012 18:38:50 -0300
- Subject: [commit/regression] Fix remote-sim.c regression on PPC64
Hello,
Thanks to Edjunior this regression came to my notice on PPC64
(coincidentally I was also running some tests on a similiar machine).
The regression was introduced by Tom's commit:
http://sourceware.org/ml/gdb-cvs/2012-08/msg00160.html
The fix was easy: pass NULL as the first argument of
`register_inferior_data_with_cleanup'.
Here is the commit.
--
Sergio
Index: gdb/ChangeLog
===================================================================
RCS file: /cvs/src/src/gdb/ChangeLog,v
retrieving revision 1.14622
diff -u -p -r1.14622 ChangeLog
--- gdb/ChangeLog 22 Aug 2012 21:04:52 -0000 1.14622
+++ gdb/ChangeLog 22 Aug 2012 21:30:16 -0000
@@ -1,3 +1,8 @@
+2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
+
+ * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
+ `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
+
2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
Enable readline in Python in a GDB-specific way and block the
Index: gdb/remote-sim.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-sim.c,v
retrieving revision 1.112
diff -u -p -r1.112 remote-sim.c
--- gdb/remote-sim.c 22 Aug 2012 17:48:52 -0000 1.112
+++ gdb/remote-sim.c 22 Aug 2012 21:30:16 -0000
@@ -1322,5 +1322,5 @@ _initialize_remote_sim (void)
set_cmd_completer (c, sim_command_completer);
sim_inferior_data_key
- = register_inferior_data_with_cleanup (sim_inferior_data_cleanup);
+ = register_inferior_data_with_cleanup (NULL, sim_inferior_data_cleanup);
}