This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH RFA] sol-thread.c: bfd_elf_get_arch_size -> bfd_get_arch_size
- To: gdb-patches at sourceware dot cygnus dot com
- Subject: [PATCH RFA] sol-thread.c: bfd_elf_get_arch_size -> bfd_get_arch_size
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Wed, 30 Aug 2000 17:29:24 -0700
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?
* 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;