public inbox for archer-commits@sourceware.org help / color / mirror / Atom feed
From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] master: Merge remote branch 'gdb/master' Date: Fri, 06 Aug 2010 15:32:00 -0000 [thread overview] Message-ID: <20100806153240.26069.qmail@sourceware.org> (raw) The branch, master has been updated via 5b754b0c5ecde4ad629f36bf61488f3f3ac3810a (commit) via bd11140051e728ef185fd9322dd43a96e080b5dd (commit) via c9fe00dd7cdfa2341158841ef17980ff0f295178 (commit) via 30608731f7f94255590c97fe0289bf96a5567c82 (commit) via 9ba2c0b5686e009a6a9cc0d0a4753e73cb2001a2 (commit) via 89c0061d208bac81215356d8b03b0db14b5a5db8 (commit) via 1d684894695779f09511156e3a21288039455c2e (commit) via f5d06ab3a198f4aa938812100a78f0d253baf857 (commit) via 8f1ead0000665a7863d3a28bb75d4c41f1233367 (commit) via 076f0c8658c809b694cd2d8d0a428ed6324b516b (commit) via fd073fa9fcd2d7d155100e94194266b7bd7f0038 (commit) via 90471e1b3e71d5b02993780f6c816a5ccf95545d (commit) via 0940e93a05f0710171a88e61cfd1852f1f175845 (commit) via bb7ebde99fca2ae3d929892de257a2aaf3377d91 (commit) via 7050d7a7d96cbd6610d1f2e0c20589d7abab1bc0 (commit) via eb7583bd2fd372e21fbfadcf8c3494da19579bf2 (commit) via eb21372a731c32675acc4aeba593eda42133139f (commit) via 80f00f55dd8b2cc15e158f52479f98a3c48832f6 (commit) via 30e9fecd6c5e351278e4c5289b70c55ff53babe2 (commit) via 2d852b59d5cedff13bffe866020185b0971e12b6 (commit) via 98b780063ad6856383b0ff4cc6527a47bb4d8f75 (commit) via b5358d6edfbeb5232e5a71aa48cfc6f20650c727 (commit) via 8d666e4146661a8e566dc2f194f2a504e82b55d4 (commit) via d76c658e389626b99f9f1b39b40bc5e207ba342a (commit) via 9d52659e49ace2a98036b86d1d394cf2cf0da199 (commit) via ba5b22a41c8e462144132305410558150debfc81 (commit) via 386d55ad8d9245c4e811a938cf71a234ab64c480 (commit) via 75616cce2435c0241948669191a819a2ed1dd753 (commit) via 4ff1b7bcf47ec403e0a14273cb247b5680b15a1c (commit) via 113cfe141be97f837886dee5af2898333195fbf4 (commit) via 128ca4ae5a4ecd860b8945cb186bf8fe27e05c7d (commit) via c6bfec2d81ad6cab6907c6a8179b1fa4b602ab4b (commit) via 78342f92f21d53931f520af1f890360da4d02de9 (commit) via 0e5d9c5d5c3d4bc1c13723bd7cd6e6192fba86e5 (commit) via 43b50d541b3499ddb515162fb1e613ad708d3c5d (commit) via 37bb8d3a2ecbe4d736639266d7aad73cd9ade867 (commit) via 9a181dee68de45163a2533b9f4e1690cbfd9fba1 (commit) via cd7a135eeebbe77a8ec9ffe3df10dea8de9b59a5 (commit) via 59b13b3d66fa853e69b023e92004fbb23815ce4f (commit) via ee9109c1386ab1274bdc11b79487d2b19fa14b4f (commit) via 73d15ea2f4f1df1c0f7fc3db6b29c6aa2b42e3e1 (commit) via 6ea518e8d1b07b2eac155bf3c1ff7df466b2d8df (commit) via 0dd948ea2ffb5e2bfdc27956621de624596e2963 (commit) via 1c472cb8fd43e47522838bb715188c76c55dfefc (commit) via 53d6563dbae46b61c07db3125ab788e2a186fa55 (commit) via a85ba451333020dd6addd7d31fbbcd360a55b7ae (commit) via 746c1d893687d0da2faa2e99fe41fb9d92d480c4 (commit) via 5b77dd8e3c25672ba5b213ff934d1aad5e4e1b34 (commit) via 7c5279a5f7f3176829b537da9987657c86cf156f (commit) via 66658cf1243b24d2e10160d2c98913047ab40b24 (commit) via 0086acb5aedff7b2544f3ea359565b3ff3c4ce86 (commit) via d5d07c6ba5cfbe8ba7c80658d057db74dfa58df1 (commit) via 33ce5416b12929a09355a1d2aa8dd2ea333677e8 (commit) via 5fc8dc941b593ce1ffb13c0e639d41dedc1d375d (commit) via ed50f9d4d383a8518f38608a948e429e9c0c08d8 (commit) via 0a74a47088aaebf7917c85dc0300fa593e809512 (commit) via 27ec0c074fd59fd742be144e93ba1be68b0924db (commit) via a5fb111f5b622facb386f77e4a6f31d14b01fa69 (commit) via 45619ae1c98a67ffa229a9393610c51d1ff66ca0 (commit) via c4be0ec50a5aa84dcbb0e9656162873c0acfa3fe (commit) via 4a71f28cb169ced3d32eb12b64babd686bbe0eae (commit) via 31e3f1830faa0858479d1d436249d0d3dea6b36b (commit) from 3b158e5790b3fde9365605fd38bfc7aa062fb81d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 5b754b0c5ecde4ad629f36bf61488f3f3ac3810a Merge: 3b158e5 bd11140 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Fri Aug 6 17:32:20 2010 +0200 Merge remote branch 'gdb/master' commit bd11140051e728ef185fd9322dd43a96e080b5dd Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Fri Aug 6 14:17:55 2010 +0000 gdb/ Code cleanup. * varobj.c (varobj_create): Move variables fi, old_fi and block to a more inner block. commit c9fe00dd7cdfa2341158841ef17980ff0f295178 Author: Alan Modra <amodra@bigpond.net.au> Date: Fri Aug 6 03:59:49 2010 +0000 * disassemble.c: Formatting. (disassemble_init_for_target <ARCH_m32c>): Comment on endian. commit 30608731f7f94255590c97fe0289bf96a5567c82 Author: H.J. Lu <hjl.tools@gmail.com> Date: Fri Aug 6 01:03:17 2010 +0000 Add Cpu186 to ud1/ud2/ud2a/ud2b. 2010-08-05 H.J. Lu <hongjiu.lu@intel.com> * i386-opc.tbl: Add Cpu186 to ud1/ud2/ud2a/ud2b. * i386-tbl.h: Regenerated. commit 9ba2c0b5686e009a6a9cc0d0a4753e73cb2001a2 Author: H.J. Lu <hjl.tools@gmail.com> Date: Fri Aug 6 00:52:56 2010 +0000 Add ud1 to x86. gas/testsuite/ 2010-08-05 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.exp: Run arch-4. * gas/i386/arch-4.d: New. * gas/i386/arch-4.s: Likewise. * gas/i386/intel.d: Replace ud2a/ud2b with ud2/ud1. * gas/i386/opcode-intel.d: Likewise. * gas/i386/opcode-suffix.d: Likewise. * gas/i386/opcode.d: Likewise. opcodes/ 2010-08-05 H.J. Lu <hongjiu.lu@intel.com> * i386-dis.c (dis386_twobyte): Replace ud2a/ud2b with ud2/ud1. * i386-opc.tbl: Add ud1. Remove Cpu686 from ud2/ud2a/ud2b. * i386-tbl.h: Regenerated. commit 89c0061d208bac81215356d8b03b0db14b5a5db8 Author: Alan Modra <amodra@bigpond.net.au> Date: Fri Aug 6 00:00:06 2010 +0000 daily update commit 1d684894695779f09511156e3a21288039455c2e Author: gdbadmin <gdbadmin@sourceware.org> Date: Fri Aug 6 00:00:03 2010 +0000 *** empty log message *** commit f5d06ab3a198f4aa938812100a78f0d253baf857 Author: Pedro Alves <pedro@codesourcery.com> Date: Thu Aug 5 16:19:18 2010 +0000 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*) (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*) (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*) (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add linux-tdep.o to gdb_target_obs. commit 8f1ead0000665a7863d3a28bb75d4c41f1233367 Author: Marc Khouzam <marc.khouzam@ericsson.com> Date: Thu Aug 5 15:42:05 2010 +0000 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first argument. commit 076f0c8658c809b694cd2d8d0a428ed6324b516b Author: Alan Modra <amodra@bigpond.net.au> Date: Thu Aug 5 14:37:29 2010 +0000 * elf64-ppc.c (ha_reloc_match): Allow matches to other than r2. (ppc64_elf_relocate_section): Nop out high part insn of large toc code sequence when the high part of offset is zero. commit fd073fa9fcd2d7d155100e94194266b7bd7f0038 Author: Hui Zhu <teawater@gmail.com> Date: Thu Aug 5 03:03:34 2010 +0000 2010-08-05 Hui Zhu <teawater@gmail.com> * mips-linux-tdep.c(regset.h): New include. (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper, mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper, mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper, mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper, mips_linux_regset_from_core_section): New functions. (fetch_core_registers, regset_core_fns): Deleted. (mips_linux_init_abi): Add mips_linux_regset_from_core_section. Deleted regset_core_fns. * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset, tdep->gregset64, tdep->fpregset and tdep->fpregset64. * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset and fpregset64. commit 90471e1b3e71d5b02993780f6c816a5ccf95545d Author: gdbadmin <gdbadmin@sourceware.org> Date: Thu Aug 5 00:00:34 2010 +0000 *** empty log message *** commit 0940e93a05f0710171a88e61cfd1852f1f175845 Author: Alan Modra <amodra@bigpond.net.au> Date: Thu Aug 5 00:00:05 2010 +0000 daily update commit bb7ebde99fca2ae3d929892de257a2aaf3377d91 Author: Pedro Alves <pedro@codesourcery.com> Date: Wed Aug 4 20:40:56 2010 +0000 * s390-tdep.c: Include linux-tdep.h. (s390_gdbarch_init): Call linux_init_abi. commit 7050d7a7d96cbd6610d1f2e0c20589d7abab1bc0 Author: Pedro Alves <pedro@codesourcery.com> Date: Wed Aug 4 15:27:54 2010 +0000 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str instead of printing "Thread" here. * linux-tdep.c: Include inferior.h. (linux_core_pid_to_str): New. (linux_init_abi): New. * linux-tdep.h (linux_init_abi): Declare. * alpha-linux-tdep.c: Include linux-tdep.h. (alpha_linux_init_abi): Call linux_init_abi. * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi. * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi. * frv-linux-tdep.c: Include linux-tdep.h (frv_linux_init_abi): Call linux_init_abi. * hppa-linux-tdep.c: Include linux-tdep.h (hppa_linux_init_abi): Call linux_init_abi. * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi. * ia64-linux-tdep.c: Include linux-tdep.h. (ia64_linux_init_abi): Call linux_init_abi. * m32r-linux-tdep.c: Include linux-tdep.h. (m32r_linux_init_abi): Call linux_init_abi. * m68klinux-tdep.c: Include linux-tdep.h. (m68k_linux_init_abi): Call linux_init_abi. * microblaze-linux-tdep.c: Include linux-tdep.h. (microblaze_linux_init_abi): Call linux_init_abi. * mips-linux-tdep.c: Include linux-tdep.h. (mips_linux_init_abi): Call linux_init_abi. * mn10300-linux-tdep.c: Include linux-tdep.h. (am33_linux_init_osabi): Call linux_init_abi. Rename the 'gdbinfo' parameter to 'info'. * ppc-linux-tdep.c: Include linux-tdep.h. (ppc_linux_init_abi): Call linux_init_abi. * sh-linux-tdep.c: Include linux-tdep.h. (sh_linux_init_abi): Call linux_init_abi. * sparc-linux-tdep.c: Include linux-tdep.h. (sparc32_linux_init_abi): Call linux_init_abi. * sparc64-linux-tdep.c: Include linux-tdep.h. (sparc64_linux_init_abi): Call linux_init_abi. * xtensa-linux-tdep.c: Include linux-tdep.h. (xtensa_linux_init_abi): Call linux_init_abi. * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New. (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str callback. commit eb7583bd2fd372e21fbfadcf8c3494da19579bf2 Author: Tristan Gingold <gingold@adacore.com> Date: Wed Aug 4 11:55:20 2010 +0000 Add a missing chunk. commit eb21372a731c32675acc4aeba593eda42133139f Author: Tristan Gingold <gingold@adacore.com> Date: Wed Aug 4 10:45:51 2010 +0000 2010-08-04 Tristan Gingold <gingold@adacore.com> * vms-alpha.c (alpha_vms_build_fixups): Write the EICP. (alpha_vms_bfd_final_link): Explicitly forbid relocatable links. Clear the SEC_RELOC flag. commit 80f00f55dd8b2cc15e158f52479f98a3c48832f6 Author: Tristan Gingold <gingold@adacore.com> Date: Wed Aug 4 10:22:14 2010 +0000 2010-08-04 Tristan Gingold <gingold@adacore.com> * vms-alpha.c (alpha_vms_create_eisd_for_section): Make writable sections with relocs. (alpha_vms_add_fixup_lp): Set SEC_RELOC flag. (alpha_vms_add_fixup_ca): Ditto. (alpha_vms_add_fixup_qr): Ditto. Add comments. commit 30e9fecd6c5e351278e4c5289b70c55ff53babe2 Author: Tristan Gingold <gingold@adacore.com> Date: Wed Aug 4 08:44:06 2010 +0000 2010-08-04 Tristan Gingold <gingold@adacore.com> * vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make CODE sections writable. commit 2d852b59d5cedff13bffe866020185b0971e12b6 Author: Tristan Gingold <gingold@adacore.com> Date: Wed Aug 4 08:20:57 2010 +0000 2010-08-04 Tristan Gingold <gingold@adacore.com> * vms-alpha.c (alpha_vms_add_lw_fixup): Renamed to ... (alpha_vms_add_fixup_lr): ... this for consistency. (alpha_vms_add_qw_fixup): Removed. Fix some comments. (vms_get_symbol_info): Adjust type for unknown sections. commit 98b780063ad6856383b0ff4cc6527a47bb4d8f75 Author: Tristan Gingold <gingold@adacore.com> Date: Wed Aug 4 07:50:38 2010 +0000 2010-08-04 Tristan Gingold <gingold@adacore.com> * vms-alpha.c (_bfd_vms_slurp_egsd): Use the canonical absolute section for any absolute section. Remove some debugging code. commit b5358d6edfbeb5232e5a71aa48cfc6f20650c727 Author: DJ Delorie <dj@delorie.com> Date: Wed Aug 4 03:42:45 2010 +0000 * elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes. commit 8d666e4146661a8e566dc2f194f2a504e82b55d4 Author: gdbadmin <gdbadmin@sourceware.org> Date: Wed Aug 4 00:00:33 2010 +0000 *** empty log message *** commit d76c658e389626b99f9f1b39b40bc5e207ba342a Author: Alan Modra <amodra@bigpond.net.au> Date: Wed Aug 4 00:00:05 2010 +0000 daily update commit 9d52659e49ace2a98036b86d1d394cf2cf0da199 Author: Doug Evans <dje@google.com> Date: Tue Aug 3 22:39:06 2010 +0000 Add missing entry to previous checkin. (bfd_lookup_symbol): Remove unnecessary forward decl. commit ba5b22a41c8e462144132305410558150debfc81 Author: Doug Evans <dje@google.com> Date: Tue Aug 3 22:35:38 2010 +0000 * breakpoint.c (bpdisp_text): Constify bpdisps. * solib-svr4.c (solib_break_names): Constify. (bkpt_names, main_name_list): Constify. (match_main): Constify soname arg. (bfd_lookup_symbol): Constify symname arg. (enable_break): Constify bkpt_namep. * symtab.c (search_symbols): Constify types, types2, types3, types4. (symtab_symbol_info): Constify classnames. commit 386d55ad8d9245c4e811a938cf71a234ab64c480 Author: Tristan Gingold <gingold@adacore.com> Date: Tue Aug 3 15:18:51 2010 +0000 2010-08-03 Tristan Gingold <gingold@adacore.com> * vms-misc.c (vms_convert_to_var): Make it static. (_bfd_vms_convert_to_var_unix_filename): Make it public. commit 75616cce2435c0241948669191a819a2ed1dd753 Author: Tristan Gingold <gingold@adacore.com> Date: Tue Aug 3 14:28:56 2010 +0000 bfd/ 2010-08-03 Tristan Gingold <gingold@adacore.com> * makefile.vms (OBJS): Update list. gas/ Index: gas/ChangeLog 2010-08-03 Tristan Gingold <gingold@adacore.com> * makefile.vms (OBJS): Add Add compress-debug.c. commit 4ff1b7bcf47ec403e0a14273cb247b5680b15a1c Author: pmuldoon <pmuldoon> Date: Tue Aug 3 09:38:13 2010 +0000 2010-08-03 Phil Muldoon <pmuldoon@redhat.com> * NEWS: Document Python value inferior function calls. commit 113cfe141be97f837886dee5af2898333195fbf4 Author: Tristan Gingold <gingold@adacore.com> Date: Tue Aug 3 09:26:30 2010 +0000 2010-08-03 Tristan Gingold <gingold@adacore.com> * vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS nor SEC_RELOC for empty sections. commit 128ca4ae5a4ecd860b8945cb186bf8fe27e05c7d Author: Tristan Gingold <gingold@adacore.com> Date: Tue Aug 3 09:21:09 2010 +0000 2010-08-03 Tristan Gingold <gingold@adacore.com> * vms-alpha.c (evax_section_flags): Fix flags for absolute section. Remove useless parenthesis. commit c6bfec2d81ad6cab6907c6a8179b1fa4b602ab4b Author: Tristan Gingold <gingold@adacore.com> Date: Tue Aug 3 08:48:59 2010 +0000 2010-08-03 Tristan Gingold <gingold@adacore.com> * vms-lib.c (vms_lib_bread_raw): Change type of BUF argument. (vms_lib_bread, vms_lib_bopen): Adjust. commit 78342f92f21d53931f520af1f890360da4d02de9 Author: Doug Evans <dje@google.com> Date: Tue Aug 3 00:51:27 2010 +0000 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature. commit 0e5d9c5d5c3d4bc1c13723bd7cd6e6192fba86e5 Author: gdbadmin <gdbadmin@sourceware.org> Date: Tue Aug 3 00:00:06 2010 +0000 *** empty log message *** commit 43b50d541b3499ddb515162fb1e613ad708d3c5d Author: Alan Modra <amodra@bigpond.net.au> Date: Tue Aug 3 00:00:06 2010 +0000 daily update commit 37bb8d3a2ecbe4d736639266d7aad73cd9ade867 Author: Doug Evans <dje@google.com> Date: Mon Aug 2 23:41:18 2010 +0000 * gdb.cp/namespace.exp: When "print ::cOtherFileClassVar" fails because of an older gcc, change test2 "print ::C::OtherFileClass::cOtherFileClassVar" from unresolved to unsupported. commit 9a181dee68de45163a2533b9f4e1690cbfd9fba1 Author: Kazu Hirata <kazu@codesourcery.com> Date: Mon Aug 2 15:07:13 2010 +0000 * gdb.base/break-always.exp: Do not expect full paths to file names. * gdb.base/commands.exp: Likewise. commit cd7a135eeebbe77a8ec9ffe3df10dea8de9b59a5 Author: Alan Modra <amodra@bigpond.net.au> Date: Mon Aug 2 10:08:00 2010 +0000 PR 11866 * elf.c (assign_file_positions_for_load_sections): Use p_vaddr to calculate off_adjust rather than first section vma. commit 59b13b3d66fa853e69b023e92004fbb23815ce4f Author: gdbadmin <gdbadmin@sourceware.org> Date: Mon Aug 2 00:00:34 2010 +0000 *** empty log message *** commit ee9109c1386ab1274bdc11b79487d2b19fa14b4f Author: Alan Modra <amodra@bigpond.net.au> Date: Mon Aug 2 00:00:05 2010 +0000 daily update commit 73d15ea2f4f1df1c0f7fc3db6b29c6aa2b42e3e1 Author: gdbadmin <gdbadmin@sourceware.org> Date: Sun Aug 1 00:00:33 2010 +0000 *** empty log message *** commit 6ea518e8d1b07b2eac155bf3c1ff7df466b2d8df Author: Alan Modra <amodra@bigpond.net.au> Date: Sun Aug 1 00:00:05 2010 +0000 daily update commit 0dd948ea2ffb5e2bfdc27956621de624596e2963 Author: Paul Pluzhnikov <ppluzhnikov@google.com> Date: Sat Jul 31 15:34:40 2010 +0000 Index: ChangeLog =================================================================== RCS file: /cvs/src/src/gdb/ChangeLog,v retrieving revision 1.12051 diff -u -p -u -r1.12051 ChangeLog --- ChangeLog 31 Jul 2010 04:17:42 -0000 1.12051 +++ ChangeLog 31 Jul 2010 15:27:37 -0000 @@ -1,3 +1,11 @@ +2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com> + + * linux-thread-db.c (libthread_db_debug): New variable. + (thread_db_find_new_threads_silently): Control verbosity with it. + (try_thread_db_load_1, try_thread_db_load): Likewise. + (find_new_threads_once): Likewise. + (_initialize_thread_db): Set/show it. + 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com> * common/signals.c (signals): Move the content to signals.def. Index: linux-thread-db.c =================================================================== RCS file: /cvs/src/src/gdb/linux-thread-db.c,v retrieving revision 1.75 diff -u -p -u -r1.75 linux-thread-db.c --- linux-thread-db.c 11 Jun 2010 12:10:12 -0000 1.75 +++ linux-thread-db.c 31 Jul 2010 15:27:37 -0000 @@ -75,6 +75,18 @@ static char *libthread_db_search_path; +/* If non-zero, print details of libthread_db processing. */ + +static int libthread_db_debug; + +static void +show_libthread_db_debug (struct ui_file *file, int from_tty, + struct cmd_list_element *c, const char *value) +{ + fprintf_filtered (file, _("libthread-db debugging is %s.\n"), value); +} + + /* If we're running on GNU/Linux, we must explicitly attach to any new threads. */ @@ -601,7 +613,7 @@ thread_db_find_new_threads_silently (pti thread_db_find_new_threads_2 (ptid, 1); } - if (except.reason < 0 && info_verbose) + if (except.reason < 0 && libthread_db_debug) { exception_fprintf (gdb_stderr, except, "Warning: thread_db_find_new_threads_silently: "); @@ -658,7 +670,7 @@ try_thread_db_load_1 (struct thread_db_i err = info->td_ta_new_p (&info->proc_handle, &info->thread_agent); if (err != TD_OK) { - if (info_verbose) + if (libthread_db_debug) printf_unfiltered (_("td_ta_new failed: %s\n"), thread_db_err_str (err)); else @@ -708,7 +720,7 @@ try_thread_db_load_1 (struct thread_db_i printf_unfiltered (_("[Thread debugging using libthread_db enabled]\n")); - if (info_verbose || *libthread_db_search_path) + if (libthread_db_debug || *libthread_db_search_path) { const char *library; @@ -745,18 +757,18 @@ try_thread_db_load (const char *library) void *handle; struct thread_db_info *info; - if (info_verbose) + if (libthread_db_debug) printf_unfiltered (_("Trying host libthread_db library: %s.\n"), library); handle = dlopen (library, RTLD_NOW); if (handle == NULL) { - if (info_verbose) + if (libthread_db_debug) printf_unfiltered (_("dlopen failed: %s.\n"), dlerror ()); return 0; } - if (info_verbose && strchr (library, '/') == NULL) + if (libthread_db_debug && strchr (library, '/') == NULL) { void *td_init; @@ -1381,7 +1393,7 @@ find_new_threads_once (struct thread_db_ TD_THR_ANY_USER_FLAGS); } - if (info_verbose) + if (libthread_db_debug) { if (except.reason < 0) exception_fprintf (gdb_stderr, except, @@ -1685,6 +1697,16 @@ gdb itself."), NULL, NULL, &setlist, &showlist); + + add_setshow_zinteger_cmd ("libthread-db", class_maintenance, + &libthread_db_debug, _("\ +Set libthread-db debugging."), _("\ +Show libthread-db debugging."), _("\ +When non-zero, libthread-db debugging is enabled."), + NULL, + show_libthread_db_debug, + &setdebuglist, &showdebuglist); + /* Add ourselves to objfile event chain. */ observer_attach_new_objfile (thread_db_new_objfile); } Index: doc/ChangeLog =================================================================== RCS file: /cvs/src/src/gdb/doc/ChangeLog,v retrieving revision 1.1092 diff -u -p -u -r1.1092 ChangeLog --- doc/ChangeLog 30 Jul 2010 20:46:34 -0000 1.1092 +++ doc/ChangeLog 31 Jul 2010 15:27:37 -0000 @@ -1,3 +1,7 @@ +2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com> + + * gdb.texinfo (Threads): Document 'debug libthread-db'. + 2010-07-30 Tom Tromey <tromey@redhat.com> * gdb.texinfo (Index Files): Mention gdb-add-index. Index: doc/gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.746 diff -u -p -u -r1.746 gdb.texinfo --- doc/gdb.texinfo 30 Jul 2010 20:46:34 -0000 1.746 +++ doc/gdb.texinfo 31 Jul 2010 15:27:38 -0000 @@ -2864,6 +2864,14 @@ only on some platforms. @kindex show libthread-db-search-path @item show libthread-db-search-path Display current libthread_db search path. + +@kindex set debug libthread-db +@kindex show debug libthread-db +@cindex debugging @code{libthread_db} +@item set debug libthread-db +@itemx show debug libthread-db +Turns on or off display of @code{libthread_db}-related events. +Use @code{1} to enable, @code{0} to disable. @end table @node Forks commit 1c472cb8fd43e47522838bb715188c76c55dfefc Author: Pedro Alves <pedro@codesourcery.com> Date: Sat Jul 31 07:58:48 2010 +0000 * Makefile.in (signals_h): New. (server_h): Depend on it. (server.o): Don't depend on $(signals_def). (signals.o): Depend on $(signals_def). commit 53d6563dbae46b61c07db3125ab788e2a186fa55 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Sat Jul 31 04:17:42 2010 +0000 gdb/ * common/signals.c (signals): Move the content to signals.def. Include it. Remove the INDENT comments. gdb/gdbserver/ * Makefile.in (signals_def): New. (server_h): Append include/gdb/signals.h and signals_def. (server.o): Append signals_def. include/gdb/ * signals.h (enum target_signal): Move the content to signals.def. Include it. * signals.def: New file. commit a85ba451333020dd6addd7d31fbbcd360a55b7ae Author: Alan Modra <amodra@bigpond.net.au> Date: Sat Jul 31 00:00:06 2010 +0000 daily update commit 746c1d893687d0da2faa2e99fe41fb9d92d480c4 Author: gdbadmin <gdbadmin@sourceware.org> Date: Sat Jul 31 00:00:03 2010 +0000 *** empty log message *** commit 5b77dd8e3c25672ba5b213ff934d1aad5e4e1b34 Author: Tom Tromey <tromey@redhat.com> Date: Fri Jul 30 20:46:33 2010 +0000 gdb * Makefile.in (install-only): Install gdb-add-index. * gdb-add-index.sh: New file. gdb/doc * gdb.texinfo (Index Files): Mention gdb-add-index. commit 7c5279a5f7f3176829b537da9987657c86cf156f Author: Doug Evans <dje@google.com> Date: Fri Jul 30 20:12:00 2010 +0000 * gdb.cp/temargs.exp: For new tests that require newer gccs, xfail them when run with older gccs. commit 66658cf1243b24d2e10160d2c98913047ab40b24 Author: Doug Evans <dje@google.com> Date: Fri Jul 30 19:59:42 2010 +0000 * lib/gdb.exp (build_executable): Forward "c++" option to get_compiler_info. commit 0086acb5aedff7b2544f3ea359565b3ff3c4ce86 Author: crq <crq> Date: Fri Jul 30 19:11:26 2010 +0000 gdb/ * MAINTAINERS: Add myself for write after approval privileges. commit d5d07c6ba5cfbe8ba7c80658d057db74dfa58df1 Author: Doug Evans <dje@google.com> Date: Fri Jul 30 18:46:27 2010 +0000 * gdb.python/py-type.exp (test_template): Mark as xfail tests "python print ttype.template_argument(1)" and "python print isinstance(ttype.template_argument(1), gdb.Value)" if using gcc 4.4 or earlier. commit 33ce5416b12929a09355a1d2aa8dd2ea333677e8 Author: Doug Evans <dje@google.com> Date: Fri Jul 30 17:28:07 2010 +0000 * gdb.base/valgrind-db-attach.exp: Use unique test name for attach-to-debugger handling. commit 5fc8dc941b593ce1ffb13c0e639d41dedc1d375d Author: H.J. Lu <hjl.tools@gmail.com> Date: Fri Jul 30 16:29:56 2010 +0000 Add ATTRIBUTE_UNUSED to info in compute_bucket_count. 2010-07-30 H.J. Lu <hongjiu.lu@intel.com> * elflink.c (compute_bucket_count): Add ATTRIBUTE_UNUSED to info. commit ed50f9d4d383a8518f38608a948e429e9c0c08d8 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Fri Jul 30 16:04:28 2010 +0000 gdb/ * symfile.c (addr_section_name): New function. (addrs_section_compar): Use it. (addr_info_make_relative): Use it. Move variable sect_name into a more inner block. Make ".dynbss" and ".sdynbss" checks more strict. gdb/testsuite/ * gdb.base/prelink-lib.c (copyreloc): New initialized variable. * gdb.base/prelink.c (copyreloc, bssvar, bssvarp): New variables. (main): Use copyreloc. * gdb.base/prelink.exp (split debug of executable) (.dynbss vs. .bss address shift): New tests. commit 0a74a47088aaebf7917c85dc0300fa593e809512 Author: Tom Tromey <tromey@redhat.com> Date: Fri Jul 30 15:59:39 2010 +0000 * configure: Rebuild. * configure.ac: Add missing case for Python 2.7. commit 27ec0c074fd59fd742be144e93ba1be68b0924db Author: Hui Zhu <teawater@gmail.com> Date: Fri Jul 30 14:32:02 2010 +0000 2010-07-30 Hui Zhu <teawater@gmail.com> * gdb.texinfo (Inferiors and Programs): Update the introduce of "detach inferior" and "kill inferior". commit a5fb111f5b622facb386f77e4a6f31d14b01fa69 Author: Anthony Green <green@redhat.com> Date: Fri Jul 30 07:32:16 2010 +0000 Add moxie-rtems support commit 45619ae1c98a67ffa229a9393610c51d1ff66ca0 Author: gdbadmin <gdbadmin@sourceware.org> Date: Fri Jul 30 00:00:32 2010 +0000 *** empty log message *** commit c4be0ec50a5aa84dcbb0e9656162873c0acfa3fe Author: Alan Modra <amodra@bigpond.net.au> Date: Fri Jul 30 00:00:05 2010 +0000 daily update commit 4a71f28cb169ced3d32eb12b64babd686bbe0eae Author: Pedro Alves <pedro@codesourcery.com> Date: Thu Jul 29 23:19:46 2010 +0000 * gdb.threads/pthreads.exp (check_backtraces): Consume $gdb_prompt in gdb_test_multiple. commit 31e3f1830faa0858479d1d436249d0d3dea6b36b Author: DJ Delorie <dj@delorie.com> Date: Thu Jul 29 18:41:25 2010 +0000 [include/opcode] * rx.h (RX_Operand_Type): Add TwoReg. (RX_Opcode_ID): Remove ediv and ediv2. [opcodes] * rx-decode.opc (SRR): New. (rx_decode_opcode): Use it for movbi and movbir. Decode NOP2 (mov r0,r0) and NOP3 (max r0,r0) special cases. * rx-decode.c: Regenerate. [sim/rx] * rx.c (decode_cache_base): New. (id_names): Remove ediv and edivu. (optype_names): Add TwoReg. (maybe_get_mem_page): New. (rx_get_byte): Call it. (get_op): Add TwoReg support. (put_op): Likewise. (PD, PS, PS2, GD, GS, GS2, DSZ, SSZ, S2SZ, US1, US2, OM): "opcode" is a pointer now. (DO_RETURN): New. We use longjmp to return an exception result. (decode_opcode): Make opcode a pointer to the decode cache. Save decoded opcode information and re-use. Call DO_RETURN instead of return throughout. Remove ediv and edivu. * mem.c (ptdc): New. Adds decode cache. (rx_mem_ptr): Support it. (rx_mem_decode_cache): New. * mem.h (enum mem_ptr_action): add MPA_DECODE_CACHE. (rx_mem_decode_cache): Declare. * gdb-if.c (sim_resume): Add decode_opcode's setjmp logic here... * main.c (main): ...and here. Use a fast loop if neither trace nor disassemble is given. * cpu.h (RX_MAKE_STEPPED, RX_MAKE_HIT_BREAK, RX_MAKE_EXITED, RX_MAKE_STOPPED, RX_EXITED, RX_STOPPED): Adjust so that 0 is not a valid code for anything. ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 81 ++ bfd/config.bfd | 2 +- bfd/elf.c | 2 +- bfd/elf32-m32c.c | 2 +- bfd/elf64-ppc.c | 65 +- bfd/elflink.c | 2 +- bfd/makefile.vms | 9 +- bfd/version.h | 2 +- bfd/vms-alpha.c | 249 +++-- bfd/vms-lib.c | 6 +- bfd/vms-misc.c | 8 +- gdb/ChangeLog | 138 +++ gdb/MAINTAINERS | 1 + gdb/Makefile.in | 11 +- gdb/NEWS | 9 + gdb/alpha-linux-tdep.c | 4 +- gdb/amd64-linux-tdep.c | 2 + gdb/arm-linux-tdep.c | 2 + gdb/breakpoint.c | 2 +- gdb/common/signals.c | 170 +--- gdb/configure | 37 + gdb/configure.ac | 8 +- gdb/configure.tgt | 32 +- gdb/corelow.c | 26 +- gdb/doc/ChangeLog | 13 + gdb/doc/gdb.texinfo | 25 +- gdb/dwarf2read.c | 2 + gdb/frv-linux-tdep.c | 4 + .../gdb.base/break-always.exp => gdb-add-index.sh} | 30 +- gdb/gdbserver/ChangeLog | 13 + gdb/gdbserver/Makefile.in | 7 +- gdb/hppa-linux-tdep.c | 4 +- gdb/i386-cygwin-tdep.c | 18 + gdb/i386-linux-tdep.c | 2 + gdb/ia64-linux-tdep.c | 3 + gdb/linux-tdep.c | 26 + gdb/linux-tdep.h | 2 + gdb/linux-thread-db.c | 36 +- gdb/m32r-linux-tdep.c | 4 + gdb/m68klinux-tdep.c | 3 + gdb/mi/mi-main.c | 2 +- gdb/microblaze-linux-tdep.c | 4 +- gdb/mips-linux-tdep.c | 156 ++- gdb/mips-tdep.c | 4 + gdb/mips-tdep.h | 8 + gdb/mn10300-linux-tdep.c | 5 +- gdb/ppc-linux-tdep.c | 3 + gdb/s390-tdep.c | 6 +- gdb/sh-linux-tdep.c | 3 + gdb/solib-svr4.c | 18 +- gdb/sparc-linux-tdep.c | 3 + gdb/sparc64-linux-tdep.c | 3 + gdb/symfile.c | 45 +- gdb/symtab.c | 11 +- gdb/testsuite/ChangeLog | 42 + gdb/testsuite/gdb.base/break-always.exp | 2 +- gdb/testsuite/gdb.base/commands.exp | 8 +- gdb/testsuite/gdb.base/prelink-lib.c | 2 + gdb/testsuite/gdb.base/prelink.c | 6 + gdb/testsuite/gdb.base/prelink.exp | 9 + gdb/testsuite/gdb.base/valgrind-db-attach.exp | 1 + gdb/testsuite/gdb.cp/namespace.exp | 14 +- gdb/testsuite/gdb.cp/temargs.exp | 39 + gdb/testsuite/gdb.python/py-type.exp | 14 + gdb/testsuite/gdb.threads/pthreads.exp | 6 +- gdb/testsuite/lib/gdb.exp | 6 +- gdb/varobj.c | 6 +- gdb/version.in | 2 +- gdb/xtensa-linux-tdep.c | 4 +- include/gdb/ChangeLog | 6 + include/gdb/signals.def | 200 ++++ include/gdb/signals.h | 186 +--- include/opcode/ChangeLog | 5 + include/opcode/rx.h | 3 +- opcodes/ChangeLog | 24 + opcodes/disassemble.c | 16 +- opcodes/i386-dis.c | 4 +- opcodes/i386-opc.tbl | 8 +- opcodes/i386-tbl.h | 16 +- opcodes/rx-decode.c | 1255 ++++++++++---------- opcodes/rx-decode.opc | 43 +- sim/rx/ChangeLog | 27 + sim/rx/cpu.h | 12 +- sim/rx/gdb-if.c | 13 +- sim/rx/main.c | 62 +- sim/rx/mem.c | 28 +- sim/rx/mem.h | 6 +- sim/rx/rx.c | 296 ++--- 88 files changed, 2240 insertions(+), 1464 deletions(-) copy gdb/{testsuite/gdb.base/break-always.exp => gdb-add-index.sh} (52%) mode change 100644 => 100755 create mode 100644 include/gdb/signals.def First 500 lines of diff: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 81379db..e79fa19 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,84 @@ +2010-08-06 Alan Modra <amodra@gmail.com> + + * elf64-ppc.c (ha_reloc_match): Allow matches to other than r2. + (ppc64_elf_relocate_section): Nop out high part insn of large toc + code sequence when the high part of offset is zero. + +2010-08-04 Tristan Gingold <gingold@adacore.com> + + * vms-alpha.c (alpha_vms_build_fixups): Write the EICP. + (alpha_vms_bfd_final_link): Explicitly forbid relocatable links. + Clear the SEC_RELOC flag. + +2010-08-04 Tristan Gingold <gingold@adacore.com> + + * vms-alpha.c (alpha_vms_create_eisd_for_section): Make writable + sections with relocs. + (alpha_vms_add_fixup_lp): Set SEC_RELOC flag. + (alpha_vms_add_fixup_ca): Ditto. + (alpha_vms_add_fixup_qr): Ditto. + Add comments. + +2010-08-04 Tristan Gingold <gingold@adacore.com> + + * vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make + CODE sections writable. + +2010-08-04 Tristan Gingold <gingold@adacore.com> + + * vms-alpha.c (alpha_vms_add_lw_fixup): Renamed to ... + (alpha_vms_add_fixup_lr): ... this for consistency. + (alpha_vms_add_qw_fixup): Removed. + Fix some comments. + (vms_get_symbol_info): Adjust type for unknown sections. + +2010-08-04 Tristan Gingold <gingold@adacore.com> + + * vms-alpha.c (_bfd_vms_slurp_egsd): Use the canonical absolute + section for any absolute section. Remove some debugging code. + +2010-08-03 DJ Delorie <dj@redhat.com> + + * elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes. + +2010-08-03 Tristan Gingold <gingold@adacore.com> + + * vms-misc.c (vms_convert_to_var): Make it static. + (_bfd_vms_convert_to_var_unix_filename): Make it public. + +2010-08-03 Tristan Gingold <gingold@adacore.com> + + * makefile.vms (OBJS): Update list. + +2010-08-03 Tristan Gingold <gingold@adacore.com> + + * vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS + nor SEC_RELOC for empty sections. + +2010-08-03 Tristan Gingold <gingold@adacore.com> + + * vms-alpha.c (evax_section_flags): Fix flags for absolute + section. Remove useless parenthesis. + +2010-08-03 Tristan Gingold <gingold@adacore.com> + + * vms-lib.c (vms_lib_bread_raw): Change type of BUF argument. + (vms_lib_bread, vms_lib_bopen): Adjust. + +2010-08-02 Alan Modra <amodra@gmail.com> + + PR 11866 + * elf.c (assign_file_positions_for_load_sections): Use p_vaddr to + calculate off_adjust rather than first section vma. + +2010-07-30 H.J. Lu <hongjiu.lu@intel.com> + + * elflink.c (compute_bucket_count): Add ATTRIBUTE_UNUSED to info. + +2010-07-30 Anthony Green <green@moxielogic.com> + + * config.bfd (targ_cpu): Add moxie-*-rtems support. + 2010-07-29 Alan Modra <amodra@gmail.com> * elf64-ppc.c (ppc64_elf_edit_toc): Always adjust local syms in diff --git a/bfd/config.bfd b/bfd/config.bfd index 960d4d4..0bfb535 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -418,7 +418,7 @@ case "${targ}" in targ_selvecs=bfd_elf32_frv_vec ;; - moxie-*-elf | moxie-*-uclinux) + moxie-*-elf | moxie-*-rtems | moxie-*-uclinux) targ_defvec=bfd_elf32_moxie_vec ;; diff --git a/bfd/elf.c b/bfd/elf.c index e7651ba..90fc3d1 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -4337,7 +4337,7 @@ assign_file_positions_for_load_sections (bfd *abfd, break; } - off_adjust = vma_page_aligned_bias (m->sections[0]->vma, off, align); + off_adjust = vma_page_aligned_bias (p->p_vaddr, off, align); off += off_adjust; if (no_contents) { diff --git a/bfd/elf32-m32c.c b/bfd/elf32-m32c.c index a706ac3..c9bfb64 100644 --- a/bfd/elf32-m32c.c +++ b/bfd/elf32-m32c.c @@ -2010,7 +2010,7 @@ _bfd_m32c_elf_eh_frame_address_size (bfd *abfd, asection *sec ATTRIBUTE_UNUSED) #define ELF_ARCH bfd_arch_m32c #define ELF_MACHINE_CODE EM_M32C #define ELF_MACHINE_ALT1 EM_M32C_OLD -#define ELF_MAXPAGESIZE 0x1000 +#define ELF_MAXPAGESIZE 0x100 #if 0 #define TARGET_BIG_SYM bfd_elf32_m32c_vec diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index f2c50d5..b6ef660 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -11397,12 +11397,14 @@ ppc64_elf_action_discarded (asection *sec) /* REL points to a low-part reloc on a largetoc instruction sequence. Find the matching high-part reloc instruction and verify that it - is addis REG,r2,x. If so, return a pointer to the high-part reloc. */ + is addis REG,x,imm. If so, set *REG to x and return a pointer to + the high-part reloc. */ static const Elf_Internal_Rela * ha_reloc_match (const Elf_Internal_Rela *relocs, const Elf_Internal_Rela *rel, - unsigned int reg, + unsigned int *reg, + bfd_boolean match_addend, const bfd *input_bfd, const bfd_byte *contents) { @@ -11434,14 +11436,17 @@ ha_reloc_match (const Elf_Internal_Rela *relocs, while (--rel >= relocs) if (rel->r_info == r_info_ha - && rel->r_addend == r_addend) + && (!match_addend + || rel->r_addend == r_addend)) { const bfd_byte *p = contents + (rel->r_offset & ~3); unsigned int insn = bfd_get_32 (input_bfd, p); - if ((insn & ((0x3f << 26) | (0x1f << 16))) - == ((15u << 26) | (2 << 16)) /* addis rt,r2,x */ - && (insn & (0x1f << 21)) == (reg << 21)) - return rel; + if ((insn & (0x3f << 26)) == (15u << 26) /* addis rt,x,imm */ + && (insn & (0x1f << 21)) == (*reg << 21)) + { + *reg = (insn >> 16) & 0x1f; + return rel; + } break; } return NULL; @@ -11494,7 +11499,9 @@ ppc64_elf_relocate_section (bfd *output_bfd, Elf_Internal_Rela outrel; bfd_byte *loc; struct got_entry **local_got_ents; + unsigned char *ha_opt; bfd_vma TOCstart; + bfd_boolean no_ha_opt; bfd_boolean ret = TRUE; bfd_boolean is_opd; /* Disabled until we sort out how ld should choose 'y' vs 'at'. */ @@ -11520,6 +11527,8 @@ ppc64_elf_relocate_section (bfd *output_bfd, symtab_hdr = &elf_symtab_hdr (input_bfd); sym_hashes = elf_sym_hashes (input_bfd); is_opd = ppc64_elf_section_data (input_section)->sec_type == sec_opd; + ha_opt = NULL; + no_ha_opt = FALSE; rel = relocs; relend = relocs + input_section->reloc_count; @@ -12945,7 +12954,7 @@ ppc64_elf_relocate_section (bfd *output_bfd, case R_PPC64_GOT_DTPREL16_HA: case R_PPC64_GOT16_HA: case R_PPC64_TOC16_HA: - /* For now we don't nop out the first instruction. */ + /* nop is done later. */ break; case R_PPC64_GOT_TLSLD16_LO: @@ -12980,12 +12989,31 @@ ppc64_elf_relocate_section (bfd *output_bfd, && ((insn & 3) == 0 || (insn & 3) == 3))) { unsigned int reg = (insn >> 16) & 0x1f; - if (ha_reloc_match (relocs, rel, reg, input_bfd, contents)) + const Elf_Internal_Rela *ha; + bfd_boolean match_addend; + + match_addend = (sym != NULL + && ELF_ST_TYPE (sym->st_info) == STT_SECTION); + ha = ha_reloc_match (relocs, rel, ®, match_addend, + input_bfd, contents); + if (ha != NULL) { insn &= ~(0x1f << 16); - insn |= 2 << 16; + insn |= reg << 16; bfd_put_32 (input_bfd, insn, p); + if (ha_opt == NULL) + { + ha_opt = bfd_zmalloc (input_section->reloc_count); + if (ha_opt == NULL) + return FALSE; + } + ha_opt[ha - relocs] = 1; } + else + /* If we don't find a matching high part insn, + something is fishy. Refuse to nop any high + part insn in this section. */ + no_ha_opt = TRUE; } } break; @@ -13143,6 +13171,23 @@ ppc64_elf_relocate_section (bfd *output_bfd, } } + if (ha_opt != NULL) + { + if (!no_ha_opt) + { + unsigned char *opt = ha_opt; + rel = relocs; + relend = relocs + input_section->reloc_count; + for (; rel < relend; opt++, rel++) + if (*opt != 0) + { + bfd_byte *p = contents + (rel->r_offset & ~3); + bfd_put_32 (input_bfd, NOP, p); + } + } + free (ha_opt); + } + /* If we're emitting relocations, then shortly after this function returns, reloc offsets and addends for this section will be adjusted. Worse, reloc symbol indices will be for the output diff --git a/bfd/elflink.c b/bfd/elflink.c index f445912..e0fbc83 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -5352,7 +5352,7 @@ static const size_t elf_buckets[] = Therefore the result is always a good payoff between few collisions (= short chain lengths) and table size. */ static size_t -compute_bucket_count (struct bfd_link_info *info, +compute_bucket_count (struct bfd_link_info *info ATTRIBUTE_UNUSED, unsigned long int *hashcodes ATTRIBUTE_UNUSED, unsigned long int nsyms, int gnu_hash) diff --git a/bfd/makefile.vms b/bfd/makefile.vms index 05c09f1..f013554 100644 --- a/bfd/makefile.vms +++ b/bfd/makefile.vms @@ -9,13 +9,14 @@ ifeq ($(ARCH),IA64) HOSTFILE=alphavms.h -OBJS:=cpu-ia64.obj,elf64-ia64.obj,elf-strtab.obj,corefile.obj,stabs.obj,\ +OBJS:=cpu-ia64.obj,elf64-ia64.obj,\ + vms-misc.obj,vms-lib.obj,elf-strtab.obj,corefile.obj,stabs.obj,\ merge.obj,elf-eh-frame.obj,elflink.obj,elf-attrs.obj,dwarf1.obj,elf64.obj DEFS=SELECT_VECS="&bfd_elf64_ia64_vms_vec",SELECT_ARCHITECTURES="&bfd_ia64_arch" endif ifeq ($(ARCH),ALPHA) HOSTFILE=alphavms.h -OBJS:=vms.obj,vms-hdr.obj,vms-gsd.obj,vms-tir.obj,vms-misc.obj,cpu-alpha.obj +OBJS:=vms-alpha.obj,vms-lib.obj,vms-misc.obj,cpu-alpha.obj DEFS=SELECT_VECS="&vms_alpha_vec",SELECT_ARCHITECTURES="&bfd_alpha_arch" endif ifeq ($(ARCH),VAX) @@ -45,10 +46,6 @@ libbfd.olb: $(OBJS) targmatch.h: bfd.h config.h: bfd.h -vms.c: vms.h -vms-mhd.c: vms.h -vms-gsd.c: vms.h -vms-tir.c: vms.h vms-misc.c: vms.h targets.c: targmatch.h diff --git a/bfd/version.h b/bfd/version.h index cf66abe..042ea66 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20100729 +#define BFD_VERSION_DATE 20100806 #define BFD_VERSION @bfd_version@ #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ #define REPORT_BUGS_TO @report_bugs_to@ diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c index b1cf82d..5d38d1d 100644 --- a/bfd/vms-alpha.c +++ b/bfd/vms-alpha.c @@ -376,10 +376,10 @@ static void alpha_vms_add_fixup_lp (struct bfd_link_info *, bfd *, bfd *); static void alpha_vms_add_fixup_ca (struct bfd_link_info *, bfd *, bfd *); static void alpha_vms_add_fixup_qr (struct bfd_link_info *, bfd *, bfd *, bfd_vma); +static void alpha_vms_add_fixup_lr (struct bfd_link_info *, unsigned int, + bfd_vma); static void alpha_vms_add_lw_reloc (struct bfd_link_info *info); static void alpha_vms_add_qw_reloc (struct bfd_link_info *info); -static void alpha_vms_add_lw_fixup (struct bfd_link_info *, unsigned int, - bfd_vma); struct vector_type { @@ -939,60 +939,60 @@ struct sec_flags_struct static const struct sec_flags_struct evax_section_flags[] = { { EVAX_ABS_NAME, - (EGPS__V_SHR), - (SEC_DATA), - (EGPS__V_SHR), - (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD) }, + EGPS__V_SHR, + 0, + EGPS__V_SHR, + 0 }, { EVAX_CODE_NAME, - (EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_EXE), - (SEC_CODE), - (EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_EXE), - (SEC_CODE | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD) }, + EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_EXE, + SEC_CODE, + EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_EXE, + SEC_CODE | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD }, { EVAX_LITERAL_NAME, - (EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD | EGPS__V_NOMOD), - (SEC_DATA | SEC_READONLY), - (EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD), - (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD) }, + EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD | EGPS__V_NOMOD, + SEC_DATA | SEC_READONLY, + EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD, + SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD }, { EVAX_LINK_NAME, - (EGPS__V_REL | EGPS__V_RD), - (SEC_DATA | SEC_READONLY), - (EGPS__V_REL | EGPS__V_RD), - (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD) }, + EGPS__V_REL | EGPS__V_RD, + SEC_DATA | SEC_READONLY, + EGPS__V_REL | EGPS__V_RD, + SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD }, { EVAX_DATA_NAME, - (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT | EGPS__V_NOMOD), - (SEC_DATA), - (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT), - (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD) }, + EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT | EGPS__V_NOMOD, + SEC_DATA, + EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT, + SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD }, { EVAX_BSS_NAME, - (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT | EGPS__V_NOMOD), - (SEC_NO_FLAGS), - (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT | EGPS__V_NOMOD), - (SEC_ALLOC) }, + EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT | EGPS__V_NOMOD, + SEC_NO_FLAGS, + EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT | EGPS__V_NOMOD, + SEC_ALLOC }, { EVAX_READONLYADDR_NAME, - (EGPS__V_PIC | EGPS__V_REL | EGPS__V_RD), - (SEC_DATA | SEC_READONLY), - (EGPS__V_PIC | EGPS__V_REL | EGPS__V_RD), - (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD) }, + EGPS__V_PIC | EGPS__V_REL | EGPS__V_RD, + SEC_DATA | SEC_READONLY, + EGPS__V_PIC | EGPS__V_REL | EGPS__V_RD, + SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD }, { EVAX_READONLY_NAME, - (EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD | EGPS__V_NOMOD), - (SEC_DATA | SEC_READONLY), - (EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD), - (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD) }, + EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD | EGPS__V_NOMOD, + SEC_DATA | SEC_READONLY, + EGPS__V_PIC | EGPS__V_REL | EGPS__V_SHR | EGPS__V_RD, + SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD }, { EVAX_LOCAL_NAME, - (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT), - (SEC_DATA), - (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT), - (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD) }, + EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT, + SEC_DATA, + EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT, + SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD }, { EVAX_LITERALS_NAME, - (EGPS__V_PIC | EGPS__V_OVR), - (SEC_DATA | SEC_READONLY), - (EGPS__V_PIC | EGPS__V_OVR), - (SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD) }, + EGPS__V_PIC | EGPS__V_OVR, + SEC_DATA | SEC_READONLY, + EGPS__V_PIC | EGPS__V_OVR, + SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_READONLY | SEC_LOAD }, { NULL, - (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT), - (SEC_DATA), - (EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT), - (SEC_IN_MEMORY | SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD) } + EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT, + SEC_DATA, + EGPS__V_REL | EGPS__V_RD | EGPS__V_WRT, + SEC_IN_MEMORY | SEC_DATA | SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD } }; /* Retrieve BFD section flags by name and size. */ @@ -1103,12 +1103,8 @@ static bfd_boolean _bfd_vms_slurp_egsd (bfd *abfd) { int gsd_type, gsd_size; - asection *section; unsigned char *vms_rec; - flagword new_flags, old_flags; - char *name; unsigned long base_addr; - unsigned long align_addr; vms_debug2 ((2, "EGSD\n")); @@ -1130,32 +1126,48 @@ _bfd_vms_slurp_egsd (bfd *abfd) switch (gsd_type) { case EGSD__C_PSC: + /* Program section definition. */ { - /* Program section definition. */ struct vms_egps *egps = (struct vms_egps *)vms_rec; - - name = _bfd_vms_save_counted_string (&egps->namlng); - section = bfd_make_section (abfd, name); - if (!section) - return FALSE; + flagword new_flags, old_flags; + asection *section; old_flags = bfd_getl16 (egps->flags); - vms_section_data (section)->flags = old_flags; - vms_section_data (section)->no_flags = 0; - section->size = bfd_getl32 (egps->alloc); - new_flags = vms_secflag_by_name (evax_section_flags, name, - section->size > 0); - if (!(old_flags & EGPS__V_NOMOD)) + + if ((old_flags & EGPS__V_REL) == 0) { - new_flags |= SEC_HAS_CONTENTS; - if (old_flags & EGPS__V_REL) - new_flags |= SEC_RELOC; + /* Use the global absolute section for all absolute sections. */ + section = bfd_abs_section_ptr; } - if (!bfd_set_section_flags (abfd, section, new_flags)) - return FALSE; - section->alignment_power = egps->align; - if ((old_flags & EGPS__V_REL) != 0) + else { + char *name; + unsigned long align_addr; + + name = _bfd_vms_save_counted_string (&egps->namlng); + + section = bfd_make_section (abfd, name); + if (!section) + return FALSE; + + section->filepos = 0; + section->size = bfd_getl32 (egps->alloc); + section->alignment_power = egps->align; + + vms_section_data (section)->flags = old_flags; hooks/post-receive -- Repository for Project Archer.
next reply other threads:[~2010-08-06 15:32 UTC|newest] Thread overview: 120+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-08-06 15:32 jkratoch [this message] -- strict thread matches above, loose matches on Subject: below -- 2011-02-01 19:25 jkratoch 2011-01-29 16:44 jkratoch 2011-01-25 12:53 pmuldoon 2011-01-25 9:10 jkratoch 2011-01-17 13:31 pmuldoon 2011-01-15 11:35 jkratoch 2011-01-14 8:04 jkratoch 2011-01-10 12:00 pmuldoon 2011-01-10 9:10 jkratoch 2011-01-07 5:57 jkratoch 2011-01-06 12:22 pmuldoon 2011-01-04 4:59 jkratoch 2010-12-31 22:30 jkratoch 2010-12-30 7:22 jkratoch 2010-12-22 20:11 swagiaal 2010-12-14 17:13 jkratoch 2010-12-14 8:27 pmuldoon 2010-12-10 17:16 jkratoch 2010-12-08 15:55 pmuldoon 2010-12-06 6:40 jkratoch 2010-12-04 1:03 jkratoch 2010-12-02 15:47 pmuldoon 2010-11-30 0:15 jkratoch 2010-11-28 18:02 jkratoch 2010-11-28 5:41 jkratoch 2010-11-16 5:04 jkratoch 2010-11-12 11:47 pmuldoon 2010-11-11 11:39 pmuldoon 2010-11-10 9:09 pmuldoon 2010-11-08 9:34 pmuldoon 2010-11-07 18:15 jkratoch 2010-10-22 14:28 pmuldoon 2010-10-20 12:48 pmuldoon 2010-10-19 16:01 pmuldoon 2010-10-17 20:27 jkratoch 2010-10-15 17:07 jkratoch 2010-10-14 20:55 jkratoch 2010-10-13 15:06 jkratoch 2010-10-12 16:45 jkratoch 2010-10-11 9:21 jkratoch 2010-10-11 8:47 pmuldoon 2010-10-06 9:00 pmuldoon 2010-09-30 8:56 pmuldoon 2010-09-27 9:48 jkratoch 2010-09-20 12:34 pmuldoon 2010-09-16 20:49 ratmice 2010-09-04 19:59 jkratoch 2010-09-03 7:26 jkratoch 2010-09-02 15:04 jkratoch 2010-09-01 15:29 swagiaal 2010-08-23 13:54 jkratoch 2010-08-20 17:49 jkratoch 2010-08-12 15:19 swagiaal 2010-07-29 19:17 swagiaal 2010-07-22 16:57 jkratoch 2010-07-22 16:26 jkratoch 2010-07-20 18:51 jkratoch 2010-07-09 8:09 jkratoch 2010-06-24 8:55 jkratoch 2010-06-23 20:56 jkratoch 2010-06-17 12:53 jkratoch 2010-06-07 8:14 jkratoch 2010-06-02 19:03 jkratoch 2010-05-28 21:27 jkratoch 2010-05-26 18:36 swagiaal 2010-05-17 18:02 jkratoch 2010-05-17 1:04 jkratoch 2010-05-10 19:30 swagiaal 2010-05-05 14:24 swagiaal 2010-05-03 13:49 jkratoch 2010-05-03 8:48 jkratoch 2010-05-02 23:10 jkratoch 2010-05-02 15:54 jkratoch 2010-04-30 7:11 jkratoch 2010-04-28 11:44 jkratoch 2010-04-25 20:22 jkratoch 2010-04-09 20:37 jkratoch 2010-04-07 1:41 jkratoch 2010-04-05 10:11 jkratoch 2010-04-04 11:58 jkratoch 2010-03-22 23:58 jkratoch 2010-03-20 17:23 jkratoch 2010-03-18 10:01 jkratoch 2010-03-17 18:04 jkratoch 2010-03-12 18:35 jkratoch 2010-03-04 22:28 jkratoch 2010-03-01 22:16 jkratoch 2010-02-26 22:16 jkratoch 2010-02-26 17:50 jkratoch 2010-02-17 16:01 swagiaal 2010-02-13 22:51 jkratoch 2010-02-11 12:51 jkratoch 2010-02-09 19:01 jkratoch 2010-02-08 21:46 jkratoch 2010-02-03 4:38 jkratoch 2010-01-31 17:25 jkratoch 2010-01-28 19:17 swagiaal 2010-01-28 10:56 jkratoch 2010-01-27 19:21 swagiaal 2010-01-27 8:08 jkratoch 2010-01-26 18:58 swagiaal 2010-01-20 21:48 jkratoch 2010-01-15 2:09 jkratoch 2010-01-15 0:52 jkratoch 2010-01-14 22:23 jkratoch 2010-01-13 20:53 jkratoch 2010-01-10 20:47 jkratoch 2010-01-09 10:03 jkratoch 2010-01-09 8:41 jkratoch 2010-01-08 19:16 jkratoch 2009-12-06 17:43 jkratoch 2009-12-03 16:32 jkratoch 2009-11-30 13:59 jkratoch 2009-11-24 21:21 jkratoch 2009-11-21 9:24 jkratoch 2009-11-20 21:06 jkratoch 2009-11-20 15:57 jkratoch 2009-11-17 19:59 jkratoch 2009-11-16 2:22 jkratoch
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100806153240.26069.qmail@sourceware.org \ --to=jkratoch@sourceware.org \ --cc=archer-commits@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).