From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9694 invoked by alias); 21 May 2013 13:58:40 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 9676 invoked by uid 306); 21 May 2013 13:58:39 -0000 Date: Tue, 21 May 2013 13:58:00 -0000 Message-ID: <20130521135838.9502.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] tromey/python-checker: fix gdbpy_selected_inferior X-Git-Refname: refs/heads/tromey/python-checker X-Git-Reftype: branch X-Git-Oldrev: c2b0168f76566a7057c4e9515411b21333c2cd70 X-Git-Newrev: fca02479285d955dc47269f1200d0fd4dbcb9caa X-SW-Source: 2013-q2/txt/msg00083.txt.bz2 List-Id: The branch, tromey/python-checker has been updated discards c2b0168f76566a7057c4e9515411b21333c2cd70 (commit) discards 3f60bb8936172c3364a7cc0d4d3143c5040b377e (commit) discards fcf3e0646dbbf6d8532782da1ed63165b37ad600 (commit) discards dae17b44346aba08a4054c176b614c0ed97ea8d9 (commit) discards 66c76a593c82422fb134fa4ad8cb5b55d594b1d2 (commit) discards d3174c90c1178199db247ffdf7aaac72c6407108 (commit) discards 4ce8d880d1f6986d8ae9c860329a67074962a6c8 (commit) discards 5bd31e44e6aae0678104fa19c041e4d08c7e5510 (commit) discards a60c9abe8c87d08004832caf52505f3b577bfff3 (commit) discards 6695859bda4cb40ddfe2bb17a15c47d9a28458f2 (commit) discards b1d37e2491ba5e497aaa6878f7be03dffc8498e3 (commit) discards b5c2c3a9dec964dd59827c35cbe8cb97ceca3586 (commit) discards 745167058cdf011cd9b0d040cabf652e77e4fdc8 (commit) discards aefe8c4146ce0829cce2c6797809400aa7d021f7 (commit) discards 9aa12beb70c89d3e7b31a7ba712b3c24ee5b0789 (commit) discards bf9e3fa5610616c68407d282d2b05d65f96529dc (commit) discards 6dce78ad9cc6da7311d706296504ff614bc36725 (commit) discards 4e502087a1abec4ba8d5a459f5b9729d27c848e4 (commit) discards 4d71622c7d89e307a3ce3deb4c1f099b515cef46 (commit) discards 8b9ee004ba10cf7899ed153c8c0f01a2e22f4445 (commit) discards 38229e009b9205d5617fb0529081b440ff865a3f (commit) discards 0928210ce2946f5582775ea934d2e9259a417380 (commit) discards cfe11622a94407f3cbba8e39ec56e2ac64ab31ab (commit) discards 3da7a9c541340d9cb0c2a3095dda43b145ba3731 (commit) discards 7bc938885edc1fd364bd7154df25a6ef69efba2b (commit) discards 59513fb06f4b1441d0514a1037e48a075fa31310 (commit) discards 19238aced8e5083af8271fa021b1fe28ebc2edce (commit) discards 4513d2ca0ae9d9e6756a264ea3fb8cca51afd136 (commit) discards c917b8e88c0abddbc976e1804e65e8269c19387c (commit) discards 9590b0ed1d3262c1d5dcaab5a6bc0f1199b943af (commit) discards bdd851dba1704ff45fd8107ce5b12f6be6b6d57e (commit) discards 7046356d1f654ab31962ac47b73dc85d1ba80425 (commit) discards 07e06674ce23250feaa9130c9eda487e2999357e (commit) via fca02479285d955dc47269f1200d0fd4dbcb9caa (commit) via f89e21d7c2ee5745274659779b5828a0be049062 (commit) via 85a95984ed9f972235c6227924407af9f90c2e0b (commit) via 7645df08c5ba29820e44a03f7bbf70b478801cae (commit) via c6bf3878c5f48650e928c55e7a454583d977a1cf (commit) via e3ae979a6c36d47350919caaf654e656dea3ac76 (commit) via 01219ac3f8e7fa6f5a5876afd826d0283d29524b (commit) via 2f2a2015c740d447fee472e08471aa28d416b551 (commit) via c91374499747d84609217f6815ffa6e637dedba3 (commit) via 1d990d7bb9acc77de45d92801bc116f875bfd621 (commit) via 1dbe9d429b900945876f8c8c0358f4a18ce57c66 (commit) via 49fca17027ea8a35eae2353248b527415f95f25e (commit) via 2005985ad1c8abbf905a9c6ab269e9a96f836e3b (commit) via 35c1e5efc16caf256acb5c76df8f02a3f1de246e (commit) via 2d3bbd57c568f6586015ee82b9d2db1d1432cb14 (commit) via 39cc9036cec20e713f4ec002e425422c21f81b12 (commit) via 29b26fc5635d26ca73927809396f6c8c03de159e (commit) via 7513d357f031eb43c1dc4b309faa80922c41004d (commit) via 62234c99e3a311c07838ebaea38198d7f4239d0c (commit) via a1dc2890b9843e7bbadb81cf7d733d2954dbb097 (commit) via c84620664b6cd95ef9d2609c73c6832dba830cdf (commit) via 636305372b3cdc5b60127ed7ea546bdbee217226 (commit) via 2e687216be4e6f289cb8083e18f1ccfb3bde90cd (commit) via e0ede36274a194c07ed4407f4471849e3bda9db8 (commit) via 27ace36109505b3b255e60778b487decce10e92e (commit) via 7fb29343dacbc73483669327128c491a9a17ccaa (commit) via 80a8b525413b213614508a73c3b95e683e412942 (commit) via a906bc6480dbdc7cc1bd54884702fb807ef0fbc1 (commit) via 9b859adb4f3dfc4df5022746517422d8769100ee (commit) via 65882c1a92a8d600890bab983a7e013faac37e3e (commit) via 6466b77e27b5743f65a4c3e02fa6ef17c86f43bd (commit) via e99af83087857cf32e550d45c338587dd0fc1a6c (commit) via 174e82f2f135bada36bbb0abf52b46319421b71a (commit) via 3d850673810aa884193630d83749cb658165c8b2 (commit) via cf5b0fcbc621db7b4b9da236866a26431151def6 (commit) via 5ce3c185948cce3e2d7e1801bb19aac009ca7ebb (commit) via 6a7ee8d8ad61cfb463d7e9bb95dd7dd23f5d8110 (commit) via 210e3c157c1380359c9702b99eac0a83416ccc24 (commit) via 81387c7f1f50f0b076617fd37e2df0055a74e762 (commit) via b30830ad38d34bdeedd0e5571845821eae50b661 (commit) via 73748a82bb4a64335cc3388b34ef9c5486b69e65 (commit) via d0a19b37c43775341c5412d90635353345b5f5c8 (commit) via 8bc515ce4080608a1a35b00d8d9706a5778025d6 (commit) via 826738a7377eb04bf47c7a9f469948de0b4ec4ab (commit) via cd1f6ea471233b241a973de805d3bb6386d6edf1 (commit) via f3cc1179691abf92468d89452aae2e1fe5ced731 (commit) via 9cba98336ff14e06e83494a55c71e795f130700d (commit) via 5aee30367e9dfb9af9b3b461d91eb640ed2c94ea (commit) via 452e29236ed5bf99404ecd3531df85a058a12ff5 (commit) via 4072a8adda6f9c894beee03ed64a2b3c9b8c182b (commit) via 12eebc99a69a969e7d2adaffdc48e6714ecccb6e (commit) via 0dc1cb92d94b5f56c9bf29b2b103839453b22f36 (commit) via 0baf8277ae52466a945c9e97bdc64459b38cca94 (commit) via f1710886bbcad31da44b5ab3be5e9fbc04c0fb49 (commit) via d0b63f741de6049646fe979182fb390f219ce934 (commit) via 4b7405c0381c72b154d8dddd82cf4e960e27720c (commit) via 7d9b86e671db86e2d42b833f6033bad30312fea2 (commit) via 73b53903b87f8b8d4561327358bb2ecb55d202fb (commit) via 4fd63bf1390f2e850157a51c5771a304dc713d31 (commit) via cc10b3df010272968aa2e6e1768ffd5da2100f4b (commit) via d192e191467b71a5ab3bc93515126ed534148602 (commit) via 5a4337e6ec84ebc21bdf15e9d7076576e4f8e862 (commit) via 6f78e1e9b3d53d75b3f8c9fe2fb0c90774fc3641 (commit) via f26df3c4024643a8608ba16fd9cfd1e04048b9d7 (commit) via dde6c19a39f11b3835b9903fc459f337b86daf81 (commit) via 10361b212f7b40ed6eacf773adf7716f8f640e1e (commit) via dbd14a18547bd78def0d91c5bb5324d79b87cad4 (commit) via 1035e7311fb8ea56f99c4698e9e8ee1dfb0c4f86 (commit) via 92dc8d9605a1472907a18e5548b0116ed759c42b (commit) via 753a490543a83113f173beba637b2adf661b8698 (commit) via 8e8d0e321d16b1c1bdb71ad268df467a13ad3b81 (commit) via 5aa148e4cbf9f25d8a1a33d71c029abe3a7d9f6c (commit) via 0e8baff8e5a7752131364f177906d70ee92934f0 (commit) via 0c4d80b4815ec4698a37846243ac1994f4d461bf (commit) via 7353e382d81309bf17cc4addd99ef6e52df49150 (commit) via 10853ff1dc86eb6f331f4c7b175d1cb0308b19d0 (commit) via 4917f7eef3ad12d18fe0757ffda9de60ba556078 (commit) via e55999758aa986a1f3e55ad3e741e3d591e3b38a (commit) via 19d4501df9cf271fed4f30f8a24e786d4add9552 (commit) via 6f0258cb652b897a1c2e50197a59c7e8c117f91b (commit) via b01b13936c8ef44b9eb3bc1f6a85edc4c6610888 (commit) via e6e0cb74ef4c2fad6b021adbf9cfb28e1b90372a (commit) via aaff5eec7e98db292460ab53f47194a9e762798d (commit) via b74c156c02cac7fb90ea19bc7a5de78457987a85 (commit) via 78762a4af473e619e3d2b4c545f544ab887d5b6b (commit) via 7a6238d05b50241a569ca445dfa618c3cd3a638c (commit) via a91d830489296a37cc62b9cedff6072b88a8e9fe (commit) via a4c8dde8904ab79f98b6450b1b8deb4c4c32fa7f (commit) via d3184353b6f0f57269d312135c4073c3ebeea74a (commit) via 405f66c46796dbbc453d77ddd8472899c7e0359e (commit) via b5ae236fa445289bccdfcb131df21dc1f7512567 (commit) via a6b1ebe618d1e0e0a01cbeecd11c227469eb7ce9 (commit) via 100be925a50e9bc2634749aef30454ef91892fae (commit) via f34f21507d436eccdc711811486bdb2a3fff0fd7 (commit) via 499e1aa537ff95059f94e3578b46bad03476f81d (commit) via 9ebb53df62142e78f45f2038d1abd6cc50140cf3 (commit) via b7b21175961e89d402475f8315ebd41d38a8b1e1 (commit) via 4561066c2ca4b9803f61aa3d5ab922eacf9074e6 (commit) via 18ff964b7afe30af7c370dc755bab2ba4f6904d1 (commit) via 0b6d485333eaecc80f2ee1c526d00afc34545568 (commit) via 85d1ecb8e8c205ad9920ec7d9122e1f41a8722e6 (commit) via 99625c81b71b4ebde9922688db0c52533ad9169a (commit) via 9ff19ea62ce51ec67ab3fe646aec8a5b3d8b06ce (commit) via 599663b891b44af7854305c29b2e5c9036d3d18a (commit) via a9fd162da6d20785d86daf2963c175d7b31b1502 (commit) via 81160eb832e138cbbbaefcb1a618b833e0cba067 (commit) via e093c20cb935fd6cfd50166fce1f476f61cdedb4 (commit) via 5f44153b7e6247e1a59ada51f4ff56f9ba43d019 (commit) via 6043f67954e86f417874a92239683afc05acc197 (commit) via 3f9c92cea940830cd60a14f0918fc8881c10a11a (commit) via 16231982db16e600b6678b7ba8a50db941f71448 (commit) via c9d9bd917e99201f16e2d7da4b8637d37df66224 (commit) from c2b0168f76566a7057c4e9515411b21333c2cd70 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit fca02479285d955dc47269f1200d0fd4dbcb9caa Author: Tom Tromey Date: Fri May 10 12:29:11 2013 -0600 fix gdbpy_selected_inferior gdbpy_selected_inferior is double-counting its returned object. * python/py-inferior.c (gdbpy_selected_inferior): Don't incref. commit f89e21d7c2ee5745274659779b5828a0be049062 Author: Tom Tromey Date: Fri Apr 19 09:04:08 2013 -0600 decref fix in python.c * python/python.c (finish_python_initialization): Decref 'pythondir' on failure path as well. commit 85a95984ed9f972235c6227924407af9f90c2e0b Author: Tom Tromey Date: Fri Feb 22 12:03:50 2013 -0700 add README.archer commit 7645df08c5ba29820e44a03f7bbf70b478801cae Author: Jan Kratochvil Date: Tue May 21 08:16:10 2013 +0000 gdb/ Code cleanup: constification. * solib.c (solib_ops): Make return type and ops variable type const. (set_solib_ops): Make the new_ops parameter and ops variable const. (solib_find, solib_map_sections, clear_so, free_so, update_solib_list) (solib_add, solib_keep_data_in_core, clear_solib) (solib_create_inferior_hook, in_solib_dynsym_resolve_code) (reload_shared_libraries, solib_global_lookup): Make the ops variable const. * solib.h (set_solib_ops): Make the new_ops parameter const. commit c6bf3878c5f48650e928c55e7a454583d977a1cf Author: Christian Groessler Date: Tue May 21 07:25:51 2013 +0000 * gdb.dwarf2/dw2-dir-file-name.exp: Don't use brace expansion, since it's not supported in all shells. commit e3ae979a6c36d47350919caaf654e656dea3ac76 Author: Joel Brobecker Date: Tue May 21 06:50:12 2013 +0000 Add new system-gdbinit infrastructure gdb/ChangeLog: * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New variable. (VPATH): Add SYSTEM_GDBINIT_SRCDIR. (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR) (SYSTEM_GDBINIT_FILES): New variables. (all): Add stamp-system-gdbinit. (stamp-system-gdbinit): New rule. (clean-system-gdbinit, install-system-gdbinit) (uninstall-system-gdbinit): New rules. Make them .PHONY. (install-only): Add dependency on install-system-gdbinit. (uninstall): Add dependency on uninstall-system-gdbinit. (clean): Add dependency on clean-system-gdbinit. * system-gdbinit/elinos.py: New file. * system-gdbinit/wrs-linux.py: New file. commit 01219ac3f8e7fa6f5a5876afd826d0283d29524b Author: Joel Brobecker Date: Tue May 21 05:41:31 2013 +0000 [Ada] Fix cleanup leak in ada-lang.c:old_renaming_is_invisible gdb/ChangeLog: * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak. commit 2f2a2015c740d447fee472e08471aa28d416b551 Author: Hui Zhu Date: Tue May 21 04:18:54 2013 +0000 2013-05-21 Hui Zhu * breakpoint.c (dprintf_breakpoint_ops): Remove its static. * breakpoint.h (dprintf_breakpoint_ops): Add extern. * mi/mi-cmd-break.c (ctype.h): New include. (gdb_obstack.h): New include. (mi_argv_to_format, mi_cmd_break_insert_1): New. (mi_cmd_break_insert): Call mi_cmd_break_insert_1. (mi_cmd_dprintf_insert): New. * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert". * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern. 2013-05-21 Hui Zhu * gdb.texinfo (GDB/MI Breakpoint Commands): Describe the "-dprintf-insert" command. 2013-05-21 Hui Zhu * gdb.mi/Makefile.in (PROGS): Add "mi-dprintf". * gdb.mi/mi-dprintf.exp, gdb.mi/mi-dprintf.c: New. commit c91374499747d84609217f6815ffa6e637dedba3 Author: Peter Bergner Date: Tue May 21 01:36:46 2013 +0000 opcodes/ * ppc-dis.c (powerpc_init_dialect): Set default dialect to power8. * ppc-opc.c (BHRBE, ST, SIX, PS, SXL, VXPS_MASK, XX1RB_MASK, XLS_MASK, PPCVSX2): New defines. (powerpc_opcodes) : New instructions. : New extended mnemonics. gas/ * config/tc-ppc.c (ppc_setup_opcodes): Use new_seg to fix error and clean up warning when using PRINT_OPCODE_TABLE. gas/testsuite/ * gas/ppc/altivec2.d : Add new tests. * gas/ppc/altivec2.s: Likewise. * gas/ppc/power8.d : Add new tests. * gas/ppc/power8.s Likewise. * gas/ppc/vsx.d : Add new tests. * gas/ppc/vsx.s Likewise. * gas/ppc/vsx2.d: New test file. * gas/ppc/vsx2.s: Likewise. * gas/ppc/ppc.exp: Run it. commit 1d990d7bb9acc77de45d92801bc116f875bfd621 Author: gdbadmin Date: Tue May 21 00:00:32 2013 +0000 *** empty log message *** commit 1dbe9d429b900945876f8c8c0358f4a18ce57c66 Author: Alan Modra Date: Tue May 21 00:00:04 2013 +0000 daily update commit 49fca17027ea8a35eae2353248b527415f95f25e Author: Maciej W. Rozycki Date: Mon May 20 23:28:32 2013 +0000 * elf32-vax.c (elf_vax_instantiate_got_entries): Only set the refcount member of the gotplt_union when resetting the reference count. Adjust comment. commit 2005985ad1c8abbf905a9c6ab269e9a96f836e3b Author: Doug Evans Date: Mon May 20 22:11:36 2013 +0000 * lib/dwarf.exp (Dwarf): New variable _abbrev_section. (_handle_DW_TAG): Use it. (cu, tu): Replace parameters is_64, version, addr_size with options. All callers updated. Add Fission support. * gdb.dwarf2/implptrconst.exp: Update callers of "cu". * gdb.dwarf2/method-ptr.exp: Ditto. * gdb.dwarf2/nostaticblock.exp: Ditto. * gdb.dwarf2/subrange.exp: Ditto. * gdb.dwarf2/missing-sig-type.exp: Update callers of "cu", "tu". commit 35c1e5efc16caf256acb5c76df8f02a3f1de246e Author: Tom Tromey Date: Mon May 20 20:43:28 2013 +0000 * gdb.gdb/python-selftest.exp: New file. commit 2d3bbd57c568f6586015ee82b9d2db1d1432cb14 Author: Tom Tromey Date: Mon May 20 20:39:31 2013 +0000 * python/py-prettyprint.c (search_pp_list): Decref 'attr'. commit 39cc9036cec20e713f4ec002e425422c21f81b12 Author: Tom Tromey Date: Mon May 20 20:38:47 2013 +0000 * python/py-value.c (valpy_get_dynamic_type): Simplify dynamic_type assignment. Use Py_XINCREF. commit 29b26fc5635d26ca73927809396f6c8c03de159e Author: Tom Tromey Date: Mon May 20 20:37:48 2013 +0000 * python/py-type.c (typy_fields): Unconditionally decref 'r'. commit 7513d357f031eb43c1dc4b309faa80922c41004d Author: Tom Tromey Date: Mon May 20 20:37:05 2013 +0000 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame) (gdbpy_selected_frame): Move object-construction code out of TRY_CATCH. commit 62234c99e3a311c07838ebaea38198d7f4239d0c Author: Tom Tromey Date: Mon May 20 20:36:18 2013 +0000 * python/py-arch.c (gdbpy_initialize_arch): Use gdb_pymodule_addobject. * python/py-block.c (gdbpy_initialize_blocks): Use gdb_pymodule_addobject. * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use gdb_pymodule_addobject. * python/py-cmd.c (gdbpy_initialize_breakpoints): Use gdb_pymodule_addobject. * python/py-event.c (gdbpy_initialize_event_generic): Use gdb_pymodule_addobject. * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use gdb_pymodule_addobject. * python/py-evts.c (add_new_registry): Use gdb_pymodule_addobject. (gdbpy_initialize_py_events): Likewise. * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints): Use gdb_pymodule_addobject. * python/py-frame.c (gdbpy_initialize_frames): Use gdb_pymodule_addobject. * python/py-function.c (gdbpy_initialize_functions): Use gdb_pymodule_addobject. * python/py-inferior.c (gdbpy_initialize_inferior): Use gdb_pymodule_addobject. * python/py-infthread.c (gdbpy_initialize_thread): Use gdb_pymodule_addobject. * python/py-objfile.c (gdbpy_initialize_objfile): Use gdb_pymodule_addobject. * python/py-param.c (gdbpy_initialize_parameters): Use gdb_pymodule_addobject. * python/py-progspace.c (gdbpy_initialize_pspace): Use gdb_pymodule_addobject. * python/py-symbol.c (gdbpy_initialize_symbols): Use gdb_pymodule_addobject. * python/py-symtab.c (gdbpy_initialize_symtabs): Use gdb_pymodule_addobject. * python/py-type.c (gdbpy_initialize_types): Use gdb_pymodule_addobject. * python/py-utils.c (gdb_pymodule_addobject): New function. * python/py-value.c (gdbpy_initialize_values): Use gdb_pymodule_addobject. * python/python-internal.h (gdb_pymodule_addobject): Declare. * python/python.c (_initialize_python): Use gdb_pymodule_addobject. commit a1dc2890b9843e7bbadb81cf7d733d2954dbb097 Author: Tom Tromey Date: Mon May 20 20:34:48 2013 +0000 * python/py-cmd.c (cmdpy_completer): Use explicit decref. * python/py-param.c (get_set_value, get_show_value): Use explicit decrefs. * python/python.c (start_type_printers, apply_type_printers): Use explicit decrefs. commit c84620664b6cd95ef9d2609c73c6832dba830cdf Author: Tom Tromey Date: Mon May 20 20:34:11 2013 +0000 * python/py-evts.c (gdbpy_initialize_py_events): Don't incref the module. commit 636305372b3cdc5b60127ed7ea546bdbee217226 Author: Tom Tromey Date: Mon May 20 20:32:56 2013 +0000 * python/python.c (gdbpy_run_events): Decref the result of PyObject_CallObject. commit 2e687216be4e6f289cb8083e18f1ccfb3bde90cd Author: Tom Tromey Date: Mon May 20 20:31:17 2013 +0000 * python/py-symtab.c (set_sal): Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error. (symtab_and_line_to_sal_object): Update. commit e0ede36274a194c07ed4407f4471849e3bda9db8 Author: Tom Tromey Date: Mon May 20 20:30:23 2013 +0000 * python/py-param.c (compute_enum_values): Decref 'item'. commit 27ace36109505b3b255e60778b487decce10e92e Author: Tom Tromey Date: Mon May 20 20:29:44 2013 +0000 * mi/mi-main.c: Include python-internal.h. (mi_cmd_list_features): Check gdb_python_initialized. * python/py-inferior.c (python_on_normal_stop, python_on_resume) (python_inferior_exit, python_new_objfile, add_thread_object) (delete_thread_object, py_free_inferior): Check gdb_python_initialized. * python/py-prettyprint.c (apply_val_pretty_printer): Check gdb_python_initialized. * python/py-type.c (save_objfile_types): Check gdb_python_initialized. * python/python-internal.h (gdb_python_initialized): Declare. * python/python.c (ensure_python_env): Throw exception if Python not initialized. (before_prompt_hook, source_python_script_for_objfile) (start_type_printers, apply_type_printers, free_type_printers): Check gdb_python_initialized. * varobj.c (varobj_get_display_hint) (dynamic_varobj_has_child_method, update_dynamic_varobj_children) (install_new_value_visualizer, varobj_set_visualizer) (value_get_print_value): Check gdb_python_initialized. commit 7fb29343dacbc73483669327128c491a9a17ccaa Author: Tom Tromey Date: Mon May 20 20:28:51 2013 +0000 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'. Check errors. * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'. * python/py-block.c (gdbpy_initialize_blocks): Return 'int'. Check errors. * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'. Check errors. * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'. Check errors. * python/py-event.c (gdbpy_initialize_event): Return 'int'. Check errors. * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated init function to return 'int'. * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Return 'int'. Check errors. * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'. Check errors. * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints): Return 'int'. Check errors. * python/py-frame.c (gdbpy_initialize_frames): Return 'int'. Check errors. * python/py-function.c (gdbpy_initialize_functions): Return 'int'. Check errors. * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline): Check errors. * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'. Check errors. * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'. Check errors. * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'. Check errors. * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'. Check errors. * python/py-param.c (gdbpy_initialize_parameters): Return 'int'. Check errors. * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'. Check errors. * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'. Check errors. * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'. Check errors. * python/py-type.c (gdbpy_initialize_types): Return 'int'. Check errors. * python/py-value.c (gdbpy_initialize_values): Return 'int'. Check errors. * python/python-internal.h (gdbpy_initialize_auto_load, gdbpy_initialize_values, gdbpy_initialize_frames, gdbpy_initialize_symtabs, gdbpy_initialize_commands, gdbpy_initialize_symbols, gdbpy_initialize_symtabs, gdbpy_initialize_blocks, gdbpy_initialize_types, gdbpy_initialize_functions, gdbpy_initialize_pspace, gdbpy_initialize_objfile, gdbpy_initialize_breakpoints, gdbpy_initialize_finishbreakpoints, gdbpy_initialize_lazy_string, gdbpy_initialize_parameters, gdbpy_initialize_thread, gdbpy_initialize_inferior, gdbpy_initialize_eventregistry, gdbpy_initialize_event, gdbpy_initialize_py_events, gdbpy_initialize_stop_event, gdbpy_initialize_signal_event, gdbpy_initialize_breakpoint_event, gdbpy_initialize_continue_event, gdbpy_initialize_exited_event, gdbpy_initialize_thread_event, gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch): Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. * python/python.c (gdb_python_initialized): New global. (gdbpy_initialize_events): Return 'int'. Check errors. (_initialize_python): Check errors. Set gdb_python_initialized. commit 80a8b525413b213614508a73c3b95e683e412942 Author: Tom Tromey Date: Mon May 20 20:27:43 2013 +0000 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): Decref the reslut of PyObject_CallMethod. commit a906bc6480dbdc7cc1bd54884702fb807ef0fbc1 Author: Tom Tromey Date: Mon May 20 20:26:39 2013 +0000 * python/py-event.c (gdbpy_initialize_event_generic): Return early if PyType_Ready fails. commit 9b859adb4f3dfc4df5022746517422d8769100ee Author: Tom Tromey Date: Mon May 20 20:25:40 2013 +0000 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached as 'default' in the switch. commit 65882c1a92a8d600890bab983a7e013faac37e3e Author: Tom Tromey Date: Mon May 20 20:24:48 2013 +0000 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist get_addr_from_python calls out of TRY_CATCH. (infpy_write_memory, infpy_search_memory): Likewise. * python/py-utils.c (get_addr_from_python): Return negative value on error. Use TRY_CATCH. * python/python-internal.h (get_addr_from_python): Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. commit 6466b77e27b5743f65a4c3e02fa6ef17c86f43bd Author: Doug Evans Date: Mon May 20 20:23:20 2013 +0000 * gdb.base/maint.exp: Fix test for "mt expand-symtabs" to account for -fdebug-types-section. commit e99af83087857cf32e550d45c338587dd0fc1a6c Author: Tom Tromey Date: Mon May 20 20:23:19 2013 +0000 * python/py-event.c (evpy_emit_event): Decref the result of PyObject_CallFunctionObjArgs. commit 174e82f2f135bada36bbb0abf52b46319421b71a Author: Tom Tromey Date: Mon May 20 20:21:55 2013 +0000 * python/py-cmd.c (cmdpy_completer): Use iterator protocol. Correctly decref. commit 3d850673810aa884193630d83749cb658165c8b2 Author: Tom Tromey Date: Mon May 20 20:20:48 2013 +0000 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'. commit cf5b0fcbc621db7b4b9da236866a26431151def6 Author: Tom Tromey Date: Mon May 20 20:19:54 2013 +0000 * python/py-event.h (gdbpy_initialize_event_generic): Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. * python/py-evts.c (add_new_registry): Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. * python/python-internal.h (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro. commit 5ce3c185948cce3e2d7e1801bb19aac009ca7ebb Author: Tom Tromey Date: Mon May 20 20:19:03 2013 +0000 * python/py-arch.c (archpy_disassemble): Update. * python/py-type.c (typy_get_composite, typy_lookup_typename) (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION. * python/py-utils.c (gdbpy_convert_exception): Return 'void'. * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New macro. (GDB_PY_HANDLE_EXCEPTION): Update. (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION. commit 6a7ee8d8ad61cfb463d7e9bb95dd7dd23f5d8110 Author: Tom Tromey Date: Mon May 20 20:18:21 2013 +0000 * python/python-internal.h (events_object_type): Remove. commit 210e3c157c1380359c9702b99eac0a83416ccc24 Author: Tom Tromey Date: Mon May 20 20:16:57 2013 +0000 * python/py-event.h (evpy_emit_event): Use CPYCHECKER_STEALS_REFERENCE_TO_ARG. * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG): New macro. commit 81387c7f1f50f0b076617fd37e2df0055a74e762 Author: Tom Tromey Date: Mon May 20 20:16:23 2013 +0000 * py-evtregistry.c (create_event_object): Decref eventregistry_object if PyList_New fails. commit b30830ad38d34bdeedd0e5571845821eae50b661 Author: Tom Tromey Date: Mon May 20 20:14:51 2013 +0000 * py-cmd.c (gdbpy_string_to_argv): Check result of PyList_New. commit 73748a82bb4a64335cc3388b34ef9c5486b69e65 Author: Tom Tromey Date: Mon May 20 20:13:28 2013 +0000 * python/python.c (before_prompt_hook): Add cleanup to decref 'hook'. commit d0a19b37c43775341c5412d90635353345b5f5c8 Author: Tom Tromey Date: Mon May 20 20:12:04 2013 +0000 * python/py-function.c (fnpy_init): Decref result of PyObject_GetAttrString. commit 8bc515ce4080608a1a35b00d8d9706a5778025d6 Author: Tom Tromey Date: Mon May 20 20:10:02 2013 +0000 * python/py-threadevent.c (get_event_thread): Use CPYCHECKER_RETURNS_BORROWED_REF. * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF): New define. (pspace_to_pspace_object, objfile_to_objfile_object) (find_thread_object): Use it. commit 826738a7377eb04bf47c7a9f469948de0b4ec4ab Author: Tom Tromey Date: Mon May 20 20:09:00 2013 +0000 * python/py-arch.c (arch_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-block.c (block_syms_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-bpevent.c (breakpoint_event_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-cmd.c (cmdpy_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-continueevent.c (continue_event_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-events.h (thread_event_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-evtregistry.c (eventregistry_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-exitedevent.c (exited_event_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-function.c (fnpy_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-inferior.c (inferior_object_type, membuf_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-infthread.c (thread_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-lazy-string.c (lazy_string_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-newobjfileevent.c (new_objfile_event_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-objfile.c (objfile_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-param.c (parmpy_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-progspace.c (pspace_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-signalevent.c (signal_event_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-symtab.c (symtab_object_type, sal_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-type.c (type_object_type, field_object_type) (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New define. (value_object_type, block_object_type, symbol_object_type) (event_object_type, stop_event_object_type, breakpoint_object_type) (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF. commit cd1f6ea471233b241a973de805d3bb6386d6edf1 Author: andreast Date: Mon May 20 18:00:35 2013 +0000 2013-05-20 Andreas Tobler * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o. (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c. commit f3cc1179691abf92468d89452aae2e1fe5ced731 Author: Doug Evans Date: Mon May 20 17:24:21 2013 +0000 When reading CU, stay in DWO. Be more tolerent of bad debug info. For Fission. * dwarf2read.c (struct dwarf2_per_cu_data): New member reading_dwo_directly. (struct signatured_type): New member dwo_unit. (struct die_reader_specs): New member comp_dir. (create_signatured_type_table_from_index): Use malloc for all_type_units instead of objfile's obstack. (create_all_type_units): Ditto. (fill_in_sig_entry_from_dwo_entry): New function. (add_type_unit): New function. (lookup_dwo_signatured_type): New function. (lookup_dwp_signatured_type): New function. (lookup_signatured_type): New arg cu. All callers updated. (init_cu_die_reader): Initialize comp_dir. (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated. Change assert of matching type signatures to call error on mismatch. (lookup_dwo_unit): Add assert. (init_tu_and_read_dwo_dies): New function. (init_cutu_and_read_dies): Call it. (build_type_unit_groups): Handle case of no type unit groups created. (hash_dwo_file, eq_dwo_file): Handle missing comp_dir. (lookup_dwo_cutu): Tweak complaint. (dwarf2_free_abbrev_table): Check for NULL abbrev_table. (dwarf2_per_objfile_free): Free all_type_units. commit 9cba98336ff14e06e83494a55c71e795f130700d Author: willnewton Date: Mon May 20 13:26:40 2013 +0000 bfd/elf64-aarch64.c: Remove dead code. The relocs_copied member is never assigned a non-NULL value, so this code does not appear to be used. bfd/ChangeLog: 2013-05-20 Will Newton * elf64-aarch64.c (elf64_aarch64_link_hash_entry): Remove relocs_copied member. (elf64_aarch64_link_hash_newfunc): Remove initialization of relocs_copied member. (elf64_aarch64_copy_indirect_symbol): Remove code to copy relocs_copied member. commit 5aee30367e9dfb9af9b3b461d91eb640ed2c94ea Author: Joel Brobecker Date: Mon May 20 10:27:26 2013 +0000 Add missing empty line after var declarations in handle_unload_dll gdb/ChangeLog: * windows-nat.c (handle_unload_dll): Add missing empty line. commit 452e29236ed5bf99404ecd3531df85a058a12ff5 Author: Joel Brobecker Date: Mon May 20 09:45:11 2013 +0000 [dwarf] Mark all functions as prototyped except C functions. This makes sure that the types of the arguments are taken into account when performing an inferior function call to a non-C (or C-like) function. In particular, this makes sure that the arguments are appropriatly converted to the correct type. For instance, on x86_64-linux, with the following Ada code: procedure Set_Float (F : Float) is begin Global_Float := F; end Set_Float; The following sequence shows that Float arguments are incorrectly passed (Ada's Float type is the equivalent of type "float" in C): (gdb) call set_float (2.0) (gdb) print global_float $1 = 0.0 Putting a breakpoint inside set_float to inspect the value of register xmm0 gives the first hint of the problem: (gdb) p $xmm0 $2 = (v4_float => (0 => 0.0, 2.0, 0.0, 0.0), v2_double => (0 => 2.0, 0.0), [...] It shows that the argument was passed as a double. The code responsible for doing appropriate type conversions for the arguments (value_arg_coerce) found that our function was not prototyped, and thus could not use typing information for the arguments. Instead, it defaulted to the value of "set coerce-float-to-double", which by default is true, to determine the argument type. This patch fixes the problem by setting the PROTOTYPE flag for all functions of any language except C and Objective C. gdb/ChangeLog: * dwarf2read.c (prototyped_function_p): New function. (read_subroutine_type): Use it. gdb/testsuite/ChangeLog: * gdb.ada/float_param: New testcase. commit 4072a8adda6f9c894beee03ed64a2b3c9b8c182b Author: Joel Brobecker Date: Mon May 20 09:14:23 2013 +0000 De-indent example code in rs6000-aix-tdep.c (ARI fix) This patch de-indents the code provided as a comment explaining how the code declaring the ld_info32_desc and ld_info64_desc globals was generated. The intent is to avoid an ARI warning about a macro not starting at column zero of the line. gdb/ChangeLog: * rs6000-aix-tdep.c: De-indent some example code provided as a comment. commit 12eebc99a69a969e7d2adaffdc48e6714ecccb6e Author: Alan Modra Date: Mon May 20 00:00:04 2013 +0000 daily update commit 0dc1cb92d94b5f56c9bf29b2b103839453b22f36 Author: gdbadmin Date: Mon May 20 00:00:02 2013 +0000 *** empty log message *** commit 0baf8277ae52466a945c9e97bdc64459b38cca94 Author: Maciej W. Rozycki Date: Sun May 19 21:40:00 2013 +0000 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Convert K&R function definition. commit f1710886bbcad31da44b5ab3be5e9fbc04c0fb49 Author: gdbadmin Date: Sun May 19 00:00:33 2013 +0000 *** empty log message *** commit d0b63f741de6049646fe979182fb390f219ce934 Author: Alan Modra Date: Sun May 19 00:00:07 2013 +0000 daily update commit 4b7405c0381c72b154d8dddd82cf4e960e27720c Author: Alan Modra Date: Sat May 18 00:00:06 2013 +0000 daily update commit 7d9b86e671db86e2d42b833f6033bad30312fea2 Author: gdbadmin Date: Sat May 18 00:00:02 2013 +0000 *** empty log message *** commit 73b53903b87f8b8d4561327358bb2ecb55d202fb Author: emachado Date: Fri May 17 23:05:00 2013 +0000 2013-05-17 Edjunior Machado * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the region is ok for a hardware watchpoint using the new ptrace interface on Power servers. commit 4fd63bf1390f2e850157a51c5771a304dc713d31 Author: Doug Evans Date: Fri May 17 18:09:05 2013 +0000 * NEWS: Mention new maintenance commands check-symtabs, and expand-symtabs, and renamed check-psymtabs. * psymtab.c (maintenance_check_psymtabs): Renamed from maintenance_check_symtabs. Only process already-expanded symbol tables. (_initialize_psymtab): Update. * symmisc.c (maintenance_check_symtabs): New function. (maintenance_expand_name_matcher): New function (maintenance_expand_file_matcher): New function (maintenance_expand_symtabs): New function. (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs" commands. doc/ * gdb.texinfo (Maintenance Commands): Update doc for "maint check-psymtabs". Add doc for "maint check-symtabs", "maint expand-symtabs". testsuite/ * gdb.base/maint.exp: Update test for "maint check-psymtabs". Add tests for "maint check-symtabs", "maint expand-symtabs". commit cc10b3df010272968aa2e6e1768ffd5da2100f4b Author: Doug Evans Date: Fri May 17 18:05:19 2013 +0000 * gdb.base/maint.exp: Remove testing of individual maint command help output. ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 34 ++ bfd/coff-rs6000.c | 4 +- bfd/coff64-rs6000.c | 3 + bfd/ecoff.c | 4 +- bfd/elf32-vax.c | 19 +- bfd/elf64-aarch64.c | 56 +--- bfd/version.h | 2 +- gdb/ChangeLog | 608 ++++++++++++++++++++++++ gdb/Makefile.in | 8 +- gdb/NEWS | 8 + gdb/acinclude.m4 | 2 +- gdb/ada-lang.c | 18 +- gdb/breakpoint.c | 2 +- gdb/breakpoint.h | 1 + gdb/cleanups.c | 5 +- gdb/configure | 239 +++++++++- gdb/configure.ac | 13 +- gdb/corelow.c | 12 + gdb/data-directory/Makefile.in | 58 ++- gdb/doc/ChangeLog | 16 + gdb/doc/gdb.texinfo | 108 +++++- gdb/dwarf2read.c | 433 +++++++++++++++-- gdb/eval.c | 14 +- gdb/frame.c | 101 ++++- gdb/gcore.c | 2 +- gdb/gcore.h | 2 +- gdb/gdbarch.c | 33 ++ gdb/gdbarch.h | 9 + gdb/gdbarch.sh | 4 + gdb/gdbserver/ChangeLog | 35 ++ gdb/gdbserver/i386-low.c | 2 +- gdb/gdbserver/linux-low.c | 57 ++- gdb/gdbserver/lynx-low.c | 58 ++- gdb/go32-nat.c | 2 +- gdb/inferior.h | 2 +- gdb/inflow.c | 2 +- gdb/linespec.c | 4 + gdb/mi/mi-cmd-break.c | 163 ++++++- gdb/mi/mi-cmds.c | 2 + gdb/mi/mi-cmds.h | 1 + gdb/opencl-lang.c | 11 +- gdb/ppc-linux-nat.c | 19 +- gdb/psymtab.c | 45 +- gdb/python/py-frame.c | 6 +- gdb/python/py-inferior.c | 2 - gdb/python/python-internal.h | 6 + gdb/record-full.c | 4 +- gdb/record.c | 54 ++- gdb/remote.c | 3 +- gdb/rs6000-aix-tdep.c | 312 ++++++++++++- gdb/{gcore.h => rs6000-aix-tdep.h} | 19 +- gdb/rs6000-lynx178-tdep.c | 14 +- gdb/rs6000-nat.c | 210 +-------- gdb/solib.c | 32 +- gdb/solib.h | 2 +- gdb/symmisc.c | 138 ++++++ gdb/system-gdbinit/elinos.py | 79 +++ gdb/system-gdbinit/wrs-linux.py | 25 + gdb/target.c | 12 +- gdb/target.h | 9 +- gdb/testsuite/ChangeLog | 73 +++ gdb/testsuite/gdb.ada/complete.exp | 24 +- gdb/testsuite/gdb.ada/float_param.exp | 43 ++ gdb/testsuite/gdb.ada/float_param/foo.adb | 23 + gdb/testsuite/gdb.ada/float_param/pck.adb | 35 ++ gdb/testsuite/gdb.ada/float_param/pck.ads | 31 ++ gdb/testsuite/gdb.base/default.exp | 2 + gdb/testsuite/gdb.base/exprs.c | 1 + gdb/testsuite/gdb.base/exprs.exp | 4 + gdb/{gcore.h => testsuite/gdb.base/filesym.c} | 25 +- gdb/testsuite/gdb.base/filesym.exp | 50 ++ gdb/testsuite/gdb.base/fixsection.c | 4 +- gdb/testsuite/gdb.base/maint.exp | 100 ++--- gdb/testsuite/gdb.base/setshow.exp | 2 + gdb/testsuite/gdb.base/watch-read.exp | 2 - gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp | 33 ++- gdb/testsuite/gdb.dwarf2/implptrconst.exp | 8 +- gdb/testsuite/gdb.dwarf2/method-ptr.exp | 2 +- gdb/testsuite/gdb.dwarf2/missing-sig-type.exp | 4 +- gdb/testsuite/gdb.dwarf2/nostaticblock.exp | 2 +- gdb/testsuite/gdb.dwarf2/subrange.exp | 2 +- gdb/testsuite/gdb.mi/Makefile.in | 2 +- gdb/testsuite/gdb.mi/mi-dprintf.c | 59 +++ gdb/testsuite/gdb.mi/mi-dprintf.exp | 145 ++++++ gdb/testsuite/lib/dwarf.exp | 144 ++++-- gdb/ui-file.c | 2 +- gdb/ui-file.h | 2 +- gdb/utils.h | 2 +- gdb/value.h | 2 +- gdb/version.in | 2 +- gdb/windows-nat.c | 1 + opcodes/ChangeLog | 42 ++ opcodes/aarch64-asm.c | 1 - opcodes/aarch64-opc.c | 6 +- opcodes/i386-gen.c | 2 +- opcodes/i386-init.h | 2 +- opcodes/ia64-asmtab.c | 10 +- opcodes/ia64-raw.tbl | 8 +- opcodes/ia64-waw.tbl | 2 +- opcodes/ppc-dis.c | 5 +- opcodes/ppc-opc.c | 177 +++++++- sim/arm/ChangeLog | 5 + sim/arm/armemu.c | 12 +- sim/testsuite/sim/arm/ChangeLog | 5 + sim/testsuite/sim/arm/movw-movt.ms | 53 ++ sim/v850/ChangeLog | 4 + sim/v850/v850.igen | 8 +- 107 files changed, 3628 insertions(+), 693 deletions(-) copy gdb/{gcore.h => rs6000-aix-tdep.h} (67%) create mode 100644 gdb/system-gdbinit/elinos.py create mode 100644 gdb/system-gdbinit/wrs-linux.py create mode 100644 gdb/testsuite/gdb.ada/float_param.exp create mode 100644 gdb/testsuite/gdb.ada/float_param/foo.adb create mode 100644 gdb/testsuite/gdb.ada/float_param/pck.adb create mode 100644 gdb/testsuite/gdb.ada/float_param/pck.ads copy gdb/{gcore.h => testsuite/gdb.base/filesym.c} (65%) create mode 100644 gdb/testsuite/gdb.base/filesym.exp create mode 100644 gdb/testsuite/gdb.mi/mi-dprintf.c create mode 100644 gdb/testsuite/gdb.mi/mi-dprintf.exp create mode 100644 sim/testsuite/sim/arm/movw-movt.ms First 500 lines of diff: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index eb254b7..49f3487 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,37 @@ +2013-05-20 Maciej W. Rozycki + + * elf32-vax.c (elf_vax_instantiate_got_entries): Only set the + refcount member of the gotplt_union when resetting the reference + count. Adjust comment. + +2013-05-20 Will Newton + + * elf64-aarch64.c (elf64_aarch64_link_hash_entry): Remove + relocs_copied member. + (elf64_aarch64_link_hash_newfunc): Remove initialization of + relocs_copied member. + (elf64_aarch64_copy_indirect_symbol): Remove code to copy + relocs_copied member. + +2013-05-19 Maciej W. Rozycki + + * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Convert K&R + function definition. + +2013-05-16 Cary Coutant + + * ecoff.c (ecoff_link_check_archive_element): Add initializers for + external_ext_size and esize. + +2013-05-16 Tristan Gingold + + * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_16. + * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise. + +2013-05-15 Andreas Schwab + + * elf64-aarch64.c (elf_backend_default_execstack): Define to 0. + 2013-05-10 Joel Brobecker * coffcode.h (styp_to_sec_flags) [RS6000COFF_C]: Add handling diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c index 0945aca..aa61afb 100644 --- a/bfd/coff-rs6000.c +++ b/bfd/coff-rs6000.c @@ -1098,7 +1098,6 @@ reloc_howto_type xcoff_howto_table[] = 0xffff, /* src_mask */ 0xffff, /* dst_mask */ FALSE), /* pcrel_offset */ - }; void @@ -1146,6 +1145,9 @@ _bfd_xcoff_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED, return &xcoff_howto_table[8]; case BFD_RELOC_PPC_TOC16: return &xcoff_howto_table[3]; + case BFD_RELOC_16: + /* Note that this relocation is only internally used by gas. */ + return &xcoff_howto_table[0xc]; case BFD_RELOC_32: case BFD_RELOC_CTOR: return &xcoff_howto_table[0]; diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c index 5f4a502..56a0d25 100644 --- a/bfd/coff64-rs6000.c +++ b/bfd/coff64-rs6000.c @@ -1826,6 +1826,9 @@ xcoff64_reloc_type_lookup (bfd *abfd ATTRIBUTE_UNUSED, return &xcoff64_howto_table[8]; case BFD_RELOC_PPC_TOC16: return &xcoff64_howto_table[3]; + case BFD_RELOC_16: + /* Note that this relocation is only internally used by gas. */ + return &xcoff64_howto_table[0xc]; case BFD_RELOC_32: case BFD_RELOC_CTOR: return &xcoff64_howto_table[0x1c]; diff --git a/bfd/ecoff.c b/bfd/ecoff.c index 5add50c..7bfb333 100644 --- a/bfd/ecoff.c +++ b/bfd/ecoff.c @@ -3561,9 +3561,9 @@ ecoff_link_check_archive_element (bfd *abfd, void (* const swap_ext_in) (bfd *, void *, EXTR *) = backend->debug_swap.swap_ext_in; HDRR *symhdr; - bfd_size_type external_ext_size; + bfd_size_type external_ext_size = 0; void * external_ext = NULL; - bfd_size_type esize; + bfd_size_type esize = 0; char *ssext = NULL; char *ext_ptr; char *ext_end; diff --git a/bfd/elf32-vax.c b/bfd/elf32-vax.c index f13ec1b..77b8e0d 100644 --- a/bfd/elf32-vax.c +++ b/bfd/elf32-vax.c @@ -914,9 +914,8 @@ elf_vax_gc_sweep_hook (bfd *abfd, struct bfd_link_info *info, asection *sec, understand. */ static bfd_boolean -elf_vax_adjust_dynamic_symbol (info, h) - struct bfd_link_info *info; - struct elf_link_hash_entry *h; +elf_vax_adjust_dynamic_symbol (struct bfd_link_info *info, + struct elf_link_hash_entry *h) { bfd *dynobj; asection *s; @@ -1263,10 +1262,10 @@ elf_vax_discard_copies (struct elf_vax_link_hash_entry *h, /* This function is called via elf_link_hash_traverse. It looks for entries that have GOT or PLT (.GOT) references. If creating a static object or a - shared object with -Bsymbolic, it resets the reference count back to 0 - and sets the offset to -1 so normal PC32 relocation will be done. If - creating a shared object or executable, space in the .got and .rela.got - will be reserved for the symbol. */ + shared object with -Bsymbolic, or the symbol has been forced local, then + it resets the reference count back to -1 so normal PC32 relocation will + be done. Otherwise space in the .got and .rela.got will be reserved for + the symbol. */ static bfd_boolean elf_vax_instantiate_got_entries (struct elf_link_hash_entry *h, void * infoptr) @@ -1291,10 +1290,8 @@ elf_vax_instantiate_got_entries (struct elf_link_hash_entry *h, void * infoptr) || (info->shared && info->symbolic) || h->forced_local) { - h->got.refcount = 0; - h->got.offset = (bfd_vma) -1; - h->plt.refcount = 0; - h->plt.offset = (bfd_vma) -1; + h->got.refcount = -1; + h->plt.refcount = -1; } else if (h->got.refcount > 0) { diff --git a/bfd/elf64-aarch64.c b/bfd/elf64-aarch64.c index e3cae95..fe9d5b1 100644 --- a/bfd/elf64-aarch64.c +++ b/bfd/elf64-aarch64.c @@ -1730,26 +1730,6 @@ elf64_aarch64_mkobject (bfd *abfd) AARCH64_ELF_DATA); } -/* The AArch64 linker needs to keep track of the number of relocs that it - decides to copy in check_relocs for each symbol. This is so that - it can discard PC relative relocs if it doesn't need them when - linking with -Bsymbolic. We store the information in a field - extending the regular ELF linker hash table. */ - -/* This structure keeps track of the number of relocs we have copied - for a given symbol. */ -struct elf64_aarch64_relocs_copied -{ - /* Next section. */ - struct elf64_aarch64_relocs_copied *next; - /* A section in dynobj. */ - asection *section; - /* Number of relocs copied in this section. */ - bfd_size_type count; - /* Number of PC-relative relocs copied in this section. */ - bfd_size_type pc_count; -}; - #define elf64_aarch64_hash_entry(ent) \ ((struct elf64_aarch64_link_hash_entry *)(ent)) @@ -1769,9 +1749,6 @@ struct elf64_aarch64_link_hash_entry /* Track dynamic relocs copied for this symbol. */ struct elf_dyn_relocs *dyn_relocs; - /* Number of PC relative relocs copied for this symbol. */ - struct elf64_aarch64_relocs_copied *relocs_copied; - /* Since PLT entries have variable size, we need to record the index into .got.plt instead of recomputing it from the PLT offset. */ @@ -1950,7 +1927,6 @@ elf64_aarch64_link_hash_newfunc (struct bfd_hash_entry *entry, if (ret != NULL) { ret->dyn_relocs = NULL; - ret->relocs_copied = NULL; ret->got_type = GOT_UNKNOWN; ret->plt_got_offset = (bfd_vma) - 1; ret->stub_cache = NULL; @@ -2041,37 +2017,6 @@ elf64_aarch64_copy_indirect_symbol (struct bfd_link_info *info, eind->dyn_relocs = NULL; } - if (eind->relocs_copied != NULL) - { - if (edir->relocs_copied != NULL) - { - struct elf64_aarch64_relocs_copied **pp; - struct elf64_aarch64_relocs_copied *p; - - /* Add reloc counts against the indirect sym to the direct sym - list. Merge any entries against the same section. */ - for (pp = &eind->relocs_copied; (p = *pp) != NULL;) - { - struct elf64_aarch64_relocs_copied *q; - - for (q = edir->relocs_copied; q != NULL; q = q->next) - if (q->section == p->section) - { - q->pc_count += p->pc_count; - q->count += p->count; - *pp = p->next; - break; - } - if (q == NULL) - pp = &p->next; - } - *pp = edir->relocs_copied; - } - - edir->relocs_copied = eind->relocs_copied; - eind->relocs_copied = NULL; - } - if (ind->root.type == bfd_link_hash_indirect) { /* Copy over PLT info. */ @@ -7181,6 +7126,7 @@ const struct elf_size_info elf64_aarch64_size_info = #define elf_backend_may_use_rela_p 1 #define elf_backend_default_use_rela_p 1 #define elf_backend_got_header_size (GOT_ENTRY_SIZE * 3) +#define elf_backend_default_execstack 0 #undef elf_backend_obj_attrs_section #define elf_backend_obj_attrs_section ".ARM.attributes" diff --git a/bfd/version.h b/bfd/version.h index fe85ccd..b84affd 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20130510 +#define BFD_VERSION_DATE 20130521 #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/gdb/ChangeLog b/gdb/ChangeLog index 84159e1..79bc1b3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,611 @@ +2013-05-21 Jan Kratochvil + + Code cleanup: constification. + * solib.c (solib_ops): Make return type and ops variable type const. + (set_solib_ops): Make the new_ops parameter and ops variable const. + (solib_find, solib_map_sections, clear_so, free_so, update_solib_list) + (solib_add, solib_keep_data_in_core, clear_solib) + (solib_create_inferior_hook, in_solib_dynsym_resolve_code) + (reload_shared_libraries, solib_global_lookup): Make the ops variable + const. + * solib.h (set_solib_ops): Make the new_ops parameter const. + +2013-05-21 Joel Brobecker + + * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New + variable. + (VPATH): Add SYSTEM_GDBINIT_SRCDIR. + (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR) + (SYSTEM_GDBINIT_FILES): New variables. + (all): Add stamp-system-gdbinit. + (stamp-system-gdbinit): New rule. + (clean-system-gdbinit, install-system-gdbinit) + (uninstall-system-gdbinit): New rules. Make them .PHONY. + (install-only): Add dependency on install-system-gdbinit. + (uninstall): Add dependency on uninstall-system-gdbinit. + (clean): Add dependency on clean-system-gdbinit. + * system-gdbinit/elinos.py: New file. + * system-gdbinit/wrs-linux.py: New file. + +2013-05-21 Joel Brobecker + + * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak. + +2013-05-21 Hui Zhu + + * breakpoint.c (dprintf_breakpoint_ops): Remove its static. + * breakpoint.h (dprintf_breakpoint_ops): Add extern. + * mi/mi-cmd-break.c (ctype.h): New include. + (gdb_obstack.h): New include. + (mi_argv_to_format, mi_cmd_break_insert_1): New. + (mi_cmd_break_insert): Call mi_cmd_break_insert_1. + (mi_cmd_dprintf_insert): New. + * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert". + * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern. + +2013-05-20 Tom Tromey + + * python/py-prettyprint.c (search_pp_list): Decref 'attr'. + +2013-05-20 Tom Tromey + + * python/py-value.c (valpy_get_dynamic_type): Simplify + dynamic_type assignment. Use Py_XINCREF. + +2013-05-20 Tom Tromey + + * python/py-type.c (typy_fields): Unconditionally decref 'r'. + +2013-05-20 Tom Tromey + + * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame) + (gdbpy_selected_frame): Move object-construction code + out of TRY_CATCH. + +2013-05-20 Tom Tromey + + * python/py-arch.c (gdbpy_initialize_arch): Use + gdb_pymodule_addobject. + * python/py-block.c (gdbpy_initialize_blocks): Use + gdb_pymodule_addobject. + * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use + gdb_pymodule_addobject. + * python/py-cmd.c (gdbpy_initialize_breakpoints): Use + gdb_pymodule_addobject. + * python/py-event.c (gdbpy_initialize_event_generic): Use + gdb_pymodule_addobject. + * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use + gdb_pymodule_addobject. + * python/py-evts.c (add_new_registry): Use + gdb_pymodule_addobject. + (gdbpy_initialize_py_events): Likewise. + * python/py-finishbreakpoint.c + (gdbpy_initialize_finishbreakpoints): Use + gdb_pymodule_addobject. + * python/py-frame.c (gdbpy_initialize_frames): Use + gdb_pymodule_addobject. + * python/py-function.c (gdbpy_initialize_functions): Use + gdb_pymodule_addobject. + * python/py-inferior.c (gdbpy_initialize_inferior): Use + gdb_pymodule_addobject. + * python/py-infthread.c (gdbpy_initialize_thread): Use + gdb_pymodule_addobject. + * python/py-objfile.c (gdbpy_initialize_objfile): Use + gdb_pymodule_addobject. + * python/py-param.c (gdbpy_initialize_parameters): Use + gdb_pymodule_addobject. + * python/py-progspace.c (gdbpy_initialize_pspace): Use + gdb_pymodule_addobject. + * python/py-symbol.c (gdbpy_initialize_symbols): Use + gdb_pymodule_addobject. + * python/py-symtab.c (gdbpy_initialize_symtabs): Use + gdb_pymodule_addobject. + * python/py-type.c (gdbpy_initialize_types): Use + gdb_pymodule_addobject. + * python/py-utils.c (gdb_pymodule_addobject): New function. + * python/py-value.c (gdbpy_initialize_values): Use + gdb_pymodule_addobject. + * python/python-internal.h (gdb_pymodule_addobject): Declare. + * python/python.c (_initialize_python): Use + gdb_pymodule_addobject. + +2013-05-20 Tom Tromey + + * python/py-cmd.c (cmdpy_completer): Use explicit decref. + * python/py-param.c (get_set_value, get_show_value): Use + explicit decrefs. + * python/python.c (start_type_printers, apply_type_printers): + Use explicit decrefs. + +2013-05-20 Tom Tromey + + * python/py-evts.c (gdbpy_initialize_py_events): Don't + incref the module. + +2013-05-20 Tom Tromey + + * python/python.c (gdbpy_run_events): Decref the result + of PyObject_CallObject. + +2013-05-20 Tom Tromey + + * python/py-symtab.c (set_sal): Use + CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error. + (symtab_and_line_to_sal_object): Update. + +2013-05-20 Tom Tromey + + * python/py-param.c (compute_enum_values): Decref 'item'. + +2013-05-20 Tom Tromey + + * mi/mi-main.c: Include python-internal.h. + (mi_cmd_list_features): Check gdb_python_initialized. + * python/py-inferior.c (python_on_normal_stop, python_on_resume) + (python_inferior_exit, python_new_objfile, add_thread_object) + (delete_thread_object, py_free_inferior): Check + gdb_python_initialized. + * python/py-prettyprint.c (apply_val_pretty_printer): Check + gdb_python_initialized. + * python/py-type.c (save_objfile_types): Check + gdb_python_initialized. + * python/python-internal.h (gdb_python_initialized): Declare. + * python/python.c (ensure_python_env): Throw exception if + Python not initialized. + (before_prompt_hook, source_python_script_for_objfile) + (start_type_printers, apply_type_printers, + free_type_printers): Check gdb_python_initialized. + * varobj.c (varobj_get_display_hint) + (dynamic_varobj_has_child_method, update_dynamic_varobj_children) + (install_new_value_visualizer, varobj_set_visualizer) + (value_get_print_value): Check gdb_python_initialized. + +2013-05-20 Tom Tromey + + * python/py-arch.c (gdbpy_initialize_arch): Return 'int'. + Check errors. + * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'. + * python/py-block.c (gdbpy_initialize_blocks): Return 'int'. + Check errors. + * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'. + Check errors. + * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'. + Check errors. + * python/py-event.c (gdbpy_initialize_event): Return 'int'. + Check errors. + * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated + init function to return 'int'. + * python/py-evtregistry.c (gdbpy_initialize_eventregistry): + Return 'int'. Check errors. + * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'. + Check errors. + * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints): + Return 'int'. Check errors. + * python/py-frame.c (gdbpy_initialize_frames): Return 'int'. + Check errors. + * python/py-function.c (gdbpy_initialize_functions): Return 'int'. + Check errors. + * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline): + Check errors. + * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'. + Check errors. + * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'. + Check errors. + * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'. + Check errors. + * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'. + Check errors. + * python/py-param.c (gdbpy_initialize_parameters): Return 'int'. + Check errors. + * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'. + Check errors. + * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'. + Check errors. + * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'. + Check errors. + * python/py-type.c (gdbpy_initialize_types): Return 'int'. + Check errors. + * python/py-value.c (gdbpy_initialize_values): Return 'int'. + Check errors. + * python/python-internal.h (gdbpy_initialize_auto_load, + gdbpy_initialize_values, gdbpy_initialize_frames, + gdbpy_initialize_symtabs, gdbpy_initialize_commands, + gdbpy_initialize_symbols, gdbpy_initialize_symtabs, + gdbpy_initialize_blocks, gdbpy_initialize_types, + gdbpy_initialize_functions, gdbpy_initialize_pspace, + gdbpy_initialize_objfile, gdbpy_initialize_breakpoints, + gdbpy_initialize_finishbreakpoints, + gdbpy_initialize_lazy_string, gdbpy_initialize_parameters, + gdbpy_initialize_thread, gdbpy_initialize_inferior, + gdbpy_initialize_eventregistry, gdbpy_initialize_event, + gdbpy_initialize_py_events, gdbpy_initialize_stop_event, + gdbpy_initialize_signal_event, + gdbpy_initialize_breakpoint_event, + gdbpy_initialize_continue_event, + gdbpy_initialize_exited_event, gdbpy_initialize_thread_event, + gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch): + Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. + * python/python.c (gdb_python_initialized): New global. + (gdbpy_initialize_events): Return 'int'. Check errors. + (_initialize_python): Check errors. Set + gdb_python_initialized. + +2013-05-20 Tom Tromey + + * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope): + Decref the reslut of PyObject_CallMethod. + +2013-05-20 Tom Tromey + + * python/py-event.c (gdbpy_initialize_event_generic): Return + early if PyType_Ready fails. + +2013-05-20 Tom Tromey + + * python/py-type.c (make_fielditem): Add gdb_assert_not_reached + as 'default' in the switch. + +2013-05-20 Tom Tromey + + * python/py-inferior.c (gdbpy_inferiors): Update. Hoist + get_addr_from_python calls out of TRY_CATCH. + (infpy_write_memory, infpy_search_memory): Likewise. hooks/post-receive -- Repository for Project Archer.