This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH RFA] sol-thread.c: bfd_elf_get_arch_size -> bfd_get_arch_size
- To: Kevin Buettner <kevinb at cygnus dot com>
- Subject: Re: [PATCH RFA] sol-thread.c: bfd_elf_get_arch_size -> bfd_get_arch_size
- From: Michael Snyder <msnyder at redhat dot com>
- Date: Wed, 30 Aug 2000 17:33:13 -0700
- CC: gdb-patches at sourceware dot cygnus dot com
- Organization: Red Hat, Inc.
- References: <1000831002924.ZM7340@ocotillo.lan>
Kevin Buettner wrote:
>
> Here's a patch to rename the remaining occurrences of bfd_elf_get_arch_size
> which recently crept into the sources. I don't have a Solaris build tree
> handy, so I haven't been able to test this one, but it looks right to me.
>
> Okay to commit?
Yes. Thanks for catching these.
>
> * sol-thread.c (rw_common, ps_pdmodel): Rename bfd_elf_get_arch_size
> to bfd_get_arch_size.
>
> Index: sol-thread.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/sol-thread.c,v
> retrieving revision 1.13
> diff -u -p -r1.13 sol-thread.c
> --- sol-thread.c 2000/08/30 00:58:58 1.13
> +++ sol-thread.c 2000/08/31 00:24:53
> @@ -1048,7 +1048,7 @@ rw_common (int dowrite, const struct ps_
> #if defined (__sparcv9)
> /* For Sparc64 cross Sparc32, make sure the address has not been
> accidentally sign-extended (or whatever) to beyond 32 bits. */
> - if (bfd_elf_get_arch_size (exec_bfd) == 32)
> + if (bfd_get_arch_size (exec_bfd) == 32)
> addr &= 0xffffffff;
> #endif
>
> @@ -1320,7 +1320,7 @@ ps_pdmodel (gdb_ps_prochandle_t ph, int
> if (exec_bfd == 0)
> return PS_ERR;
>
> - if (bfd_elf_get_arch_size (exec_bfd) == 32)
> + if (bfd_get_arch_size (exec_bfd) == 32)
> *data_model = PR_MODEL_ILP32;
> else
> *data_model = PR_MODEL_LP64;