This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: fix build failure


I'm checking this in.

I did a --enable-targets=all build and got a build failure:

/home/tromey/gnu/archer/build/gdb/../../archer/gdb/ia64-vms-tdep.c:162: multiple definition of `_initialize_ia64_hpux_tdep'
ia64-hpux-tdep.o:/home/tromey/gnu/archer/build/gdb/../../archer/gdb/ia64-hpux-tdep.c:431: first defined here

The fix is to rename the VMS function, which seems obviously misnamed to
me.

Tom

2012-03-05  Tom Tromey  <tromey@redhat.com>

	* ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
	_initialize_ia64_hpux_tdep.

diff --git a/gdb/ia64-vms-tdep.c b/gdb/ia64-vms-tdep.c
index 859c0b4..66920b1 100644
--- a/gdb/ia64-vms-tdep.c
+++ b/gdb/ia64-vms-tdep.c
@@ -155,10 +155,10 @@ ia64_openvms_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
 }
 
 /* Provide a prototype to silence -Wmissing-prototypes.  */
-extern initialize_file_ftype _initialize_ia64_hpux_tdep;
+extern initialize_file_ftype _initialize_ia64_vms_tdep;
 
 void
-_initialize_ia64_hpux_tdep (void)
+_initialize_ia64_vms_tdep (void)
 {
   gdbarch_register_osabi (bfd_arch_ia64, 0, GDB_OSABI_OPENVMS,
 			  ia64_openvms_init_abi);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]