This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: FYI: fix build failure
- From: Tristan Gingold <gingold at adacore dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 5 Mar 2012 15:56:18 +0100
- Subject: Re: FYI: fix build failure
- References: <87399nxfo1.fsf@fleche.redhat.com>
On Mar 5, 2012, at 3:53 PM, Tom Tromey wrote:
> 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.
My fault. Sorry, I missed this renaming.
Thank you for fixing it.
Tristan.
>
> 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);