public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM] tromey/python-checker: fix gdbpy_selected_inferior
@ 2013-05-21 13:58 tromey
0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2013-05-21 13:58 UTC (permalink / raw)
To: archer-commits
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 <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
Date: Fri Feb 22 12:03:50 2013 -0700
add README.archer
commit 7645df08c5ba29820e44a03f7bbf70b478801cae
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
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 <chris@groessler.org>
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 <brobecker@gnat.com>
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 <brobecker@gnat.com>
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 <teawater@gmail.com>
Date: Tue May 21 04:18:54 2013 +0000
2013-05-21 Hui Zhu <hui@codesourcery.com>
* 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 <hui@codesourcery.com>
* gdb.texinfo (GDB/MI Breakpoint Commands): Describe the
"-dprintf-insert" command.
2013-05-21 Hui Zhu <hui@codesourcery.com>
* gdb.mi/Makefile.in (PROGS): Add "mi-dprintf".
* gdb.mi/mi-dprintf.exp, gdb.mi/mi-dprintf.c: New.
commit c91374499747d84609217f6815ffa6e637dedba3
Author: Peter Bergner <bergner@vnet.ibm.com>
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) <bcdadd., bcdsub., bctar, bctar, bctarl, clrbhrb,
fmrgew, fmrgow, lqarx, lxsiwax, lxsiwzx, lxsspx, mfbhrbe,
mffprd, mffprwz, mfvrd, mfvrwz, mfvsrd, mfvsrwz, msgclrp, msgsndp,
mtfprd, mtfprwa, mtfprwz, mtsle, mtvrd, mtvrwa, mtvrwz, mtvsrd,
mtvsrwa, mtvsrwz, pbt., rfebb, stqcx., stxsiwx, stxsspx,
vaddcuq, vaddecuq, vaddeuqm, vaddudm, vadduqm, vbpermq, vcipher,
vcipherlast, vclzb, vclzd, vclzh, vclzw, vcmpequd, vcmpequd.,
vcmpgtsd, vcmpgtsd., vcmpgtud, vcmpgtud., veqv, vgbbd, vmaxsd,
vmaxud, vminsd, vminud, vmrgew, vmrgow, vmulesw, vmuleuw, vmulosw,
vmulouw, vmuluwm, vnand, vncipher, vncipherlast, vorc, vpermxor,
vpksdss, vpksdus, vpkudum, vpkudus, vpmsumb, vpmsumd, vpmsumh,
vpmsumw, vpopcntb, vpopcntd, vpopcnth, vpopcntw, vrld, vsbox,
vshasigmad, vshasigmaw, vsld, vsrad, vsrd, vsubcuq, vsubecuq,
vsubeuqm, vsubudm, vsubuqm, vupkhsw, vupklsw, waitasec, xsaddsp,
xscvdpspn, xscvspdpn, xscvsxdsp, xscvuxdsp, xsdivsp, xsmaddasp,
xsmaddmsp, xsmsubasp, xsmsubmsp, xsmulsp, xsnmaddasp, xsnmaddmsp,
xsnmsubasp, xsnmsubmsp, xsresp, xsrsp, xsrsqrtesp, xssqrtsp,
xssubsp, xxleqv, xxlnand, xxlorc>: New instructions.
<lxvx, stxvx>: 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 <bcdadd., bcdadd., vaddcuq, vaddecuq, vaddeuqm,
vaddudm, vadduqm, vbpermq, vcipher, vcipherlast, vclzb, vclzd, vclzh,
vclzw, vcmpequd, vcmpequd., vcmpgtsd, vcmpgtsd., vcmpgtud, vcmpgtud.,
veqv, vgbbd, vmaxsd, vmaxud, vminsd, vminud, vmrgew, vmrgow, vmulesw,
vmuleuw, vmulosw, vmulouw, vmuluwm, vnand, vncipher, vncipherlast,
vorc, vpermxor, vpksdss, vpksdus, vpkudum, vpkudus, vpmsumb, vpmsumd,
vpmsumh, vpmsumw, vpopcntb, vpopcntd, vpopcnth, vpopcntw, vrld, vsbox,
vshasigmad, vshasigmaw, vsld, vsrad, vsrd, vsubcuq, vsubecuq, vsubeuqm,
vsubudm, vsubuqm, vupkhsw, vupklsw>: Add new tests.
* gas/ppc/altivec2.s: Likewise.
* gas/ppc/power8.d <bcdadd., bcdsub., bctar, bctarl, clrbhrb, fmrgew,
fmrgow, lqarx, lxsiwax, lxsiwzx, lxsspx, mfbhrbe, mfvsrd, mfvsrwz,
msgclrp, msgsndp, mtsle, mtvsrd, mtvsrwa, mtvsrwz, pbt., rfebb,
stqcx., stxsiwx, stxsspx, vaddcuq, vaddecuq, vaddeuqm, vaddudm,
vadduqm, vbpermq, vcipher, vcipherlast, vclzb, vclzd, vclzh, vclzw,
vcmpequd, vcmpequd., vcmpgtsd, vcmpgtsd., vcmpgtud, vcmpgtud., veqv,
vgbbd, vmaxsd, vmaxud, vminsd, vminud, vmrgow, vmulesw, vmuleuw,
vmulosw, vmulouw, vmuluwm, vnand, vncipher, vncipherlast, vorc,
vpermxor, vpksdss, vpksdus, vpkudum, vpkudus, vpmsumb, vpmsumd,
vpmsumh, vpmsumw, vpopcntb, vpopcntd, vpopcnth, vpopcntw, vrld, vsbox,
vshasigmad, vshasigmaw, vsld, vsrad, vsrd, vsubcuq, vsubecuq, vsubeuqm,
vsubuqm, vupkhsw, vupklsw, waitasec, xsaddsp, xscvdpspn, xscvspdpn,
xscvsxdsp, xscvuxdsp, xsdivsp, xsmaddasp, xsmaddmsp, xsmsubasp,
xsmsubmsp, xsmulsp, xsnmaddasp, xsnmaddmsp, xsnmsubasp, xsnmsubmsp,
xsresp, xsrsp, xsrsqrtesp, xssqrtsp, xssubsp, xxleqv, xxlnand,
xxlorc>: Add new tests.
* gas/ppc/power8.s Likewise.
* gas/ppc/vsx.d <lxvd2x, stxvd2x>: 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 <gdbadmin@sourceware.org>
Date: Tue May 21 00:00:32 2013 +0000
*** empty log message ***
commit 1dbe9d429b900945876f8c8c0358f4a18ce57c66
Author: Alan Modra <amodra@bigpond.net.au>
Date: Tue May 21 00:00:04 2013 +0000
daily update
commit 49fca17027ea8a35eae2353248b527415f95f25e
Author: Maciej W. Rozycki <macro@linux-mips.org>
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 <dje@google.com>
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 <tromey@redhat.com>
Date: Mon May 20 20:43:28 2013 +0000
* gdb.gdb/python-selftest.exp: New file.
commit 2d3bbd57c568f6586015ee82b9d2db1d1432cb14
Author: Tom Tromey <tromey@redhat.com>
Date: Mon May 20 20:39:31 2013 +0000
* python/py-prettyprint.c (search_pp_list): Decref 'attr'.
commit 39cc9036cec20e713f4ec002e425422c21f81b12
Author: Tom Tromey <tromey@redhat.com>
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 <tromey@redhat.com>
Date: Mon May 20 20:37:48 2013 +0000
* python/py-type.c (typy_fields): Unconditionally decref 'r'.
commit 7513d357f031eb43c1dc4b309faa80922c41004d
Author: Tom Tromey <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
Date: Mon May 20 20:30:23 2013 +0000
* python/py-param.c (compute_enum_values): Decref 'item'.
commit 27ace36109505b3b255e60778b487decce10e92e
Author: Tom Tromey <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
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 <dje@google.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
Date: Mon May 20 20:20:48 2013 +0000
* python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
commit cf5b0fcbc621db7b4b9da236866a26431151def6
Author: Tom Tromey <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
Date: Mon May 20 20:18:21 2013 +0000
* python/python-internal.h (events_object_type): Remove.
commit 210e3c157c1380359c9702b99eac0a83416ccc24
Author: Tom Tromey <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
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 <tromey@redhat.com>
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 <andreast>
Date: Mon May 20 18:00:35 2013 +0000
2013-05-20 Andreas Tobler <andreas@fgznet.ch>
* Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
(ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
commit f3cc1179691abf92468d89452aae2e1fe5ced731
Author: Doug Evans <dje@google.com>
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 <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 <will.newton@linaro.org>
* 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 <brobecker@gnat.com>
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 <brobecker@gnat.com>
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 <brobecker@gnat.com>
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 <amodra@bigpond.net.au>
Date: Mon May 20 00:00:04 2013 +0000
daily update
commit 0dc1cb92d94b5f56c9bf29b2b103839453b22f36
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Mon May 20 00:00:02 2013 +0000
*** empty log message ***
commit 0baf8277ae52466a945c9e97bdc64459b38cca94
Author: Maciej W. Rozycki <macro@linux-mips.org>
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 <gdbadmin@sourceware.org>
Date: Sun May 19 00:00:33 2013 +0000
*** empty log message ***
commit d0b63f741de6049646fe979182fb390f219ce934
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sun May 19 00:00:07 2013 +0000
daily update
commit 4b7405c0381c72b154d8dddd82cf4e960e27720c
Author: Alan Modra <amodra@bigpond.net.au>
Date: Sat May 18 00:00:06 2013 +0000
daily update
commit 7d9b86e671db86e2d42b833f6033bad30312fea2
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Sat May 18 00:00:02 2013 +0000
*** empty log message ***
commit 73b53903b87f8b8d4561327358bb2ecb55d202fb
Author: emachado <emachado>
Date: Fri May 17 23:05:00 2013 +0000
2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
* 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 <dje@google.com>
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 <dje@google.com>
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 <macro@linux-mips.org>
+
+ * 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 <will.newton@linaro.org>
+
+ * 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 <macro@linux-mips.org>
+
+ * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Convert K&R
+ function definition.
+
+2013-05-16 Cary Coutant <ccoutant@google.com>
+
+ * ecoff.c (ecoff_link_check_archive_element): Add initializers for
+ external_ext_size and esize.
+
+2013-05-16 Tristan Gingold <gingold@adacore.com>
+
+ * 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 <schwab@suse.de>
+
+ * elf64-aarch64.c (elf_backend_default_execstack): Define to 0.
+
2013-05-10 Joel Brobecker <brobecker@adacore.com>
* 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 <jan.kratochvil@redhat.com>
+
+ 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 <brobecker@adacore.com>
+
+ * 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 <brobecker@adacore.com>
+
+ * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
+
+2013-05-21 Hui Zhu <hui@codesourcery.com>
+
+ * 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 <tromey@redhat.com>
+
+ * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-value.c (valpy_get_dynamic_type): Simplify
+ dynamic_type assignment. Use Py_XINCREF.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-type.c (typy_fields): Unconditionally decref 'r'.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * 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 <tromey@redhat.com>
+
+ * 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 <tromey@redhat.com>
+
+ * 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 <tromey@redhat.com>
+
+ * python/py-evts.c (gdbpy_initialize_py_events): Don't
+ incref the module.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/python.c (gdbpy_run_events): Decref the result
+ of PyObject_CallObject.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * 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 <tromey@redhat.com>
+
+ * python/py-param.c (compute_enum_values): Decref 'item'.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * 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 <tromey@redhat.com>
+
+ * 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 <tromey@redhat.com>
+
+ * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
+ Decref the reslut of PyObject_CallMethod.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-event.c (gdbpy_initialize_event_generic): Return
+ early if PyType_Ready fails.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
+ as 'default' in the switch.
+
+2013-05-20 Tom Tromey <tromey@redhat.com>
+
+ * 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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [SCM] tromey/python-checker: fix gdbpy_selected_inferior
@ 2013-05-10 18:29 tromey
0 siblings, 0 replies; 2+ messages in thread
From: tromey @ 2013-05-10 18:29 UTC (permalink / raw)
To: archer-commits
The branch, tromey/python-checker has been updated
discards 3174923353fd4cb820e8d7e5fdef43ff99b7f0ed (commit)
discards 7b014fea57c4efd58feed859337e7cbb6e98255b (commit)
discards 5ebb349a9c76f9b94a069808761676af7d5f7bdc (commit)
discards 02e32f49198c48671357b7a5530c6168e1d81f85 (commit)
discards 59010f16b41d4d43ce75031681dc5fc2b729cbe2 (commit)
discards dacb74ab70be90148b26a99974958066d62b290f (commit)
discards 536776f3624c892c0559a2c0a208ca00d3977e83 (commit)
discards a5ebe4ba7aff9a183362c05686439929f2f44038 (commit)
discards 6e64e1f8b02f5124ba557cd5e80d3dbc43e6b2fa (commit)
discards a6162a2bbb686dbb6d7eaf7cc1bc4b0be9a02ccb (commit)
discards bf352e7752372d2bf6a56284cf8475ce0c474b23 (commit)
discards d7132a0df4d4a4c450b894ea995322fb6d286b7d (commit)
discards c0542bf4e2bb06b43716478dc5f518d0574cf4d5 (commit)
discards fc3f299509b4152002d1cebb59a9d3c0550853f8 (commit)
discards 0a63efb8f35317dec8f2a23c48b3bdd02303c472 (commit)
discards 72160bd8b3af45159f5dcb815f7d111e0e7470b7 (commit)
discards 6180eef24f4f6d1d56276a35c1c0beaa064f8292 (commit)
discards 4092177c7418bf274eb68a916dc914c410ac6cb4 (commit)
discards 3846047ef87507f24a163d9548aaa7076d4eaa05 (commit)
discards d41b5b6279287713ff8422b1181b374499c9f452 (commit)
discards d7ebaae39d428938ff9b4bf4db40354ea5cfd268 (commit)
discards ae6472bbbc457e44b3f65880e24a336f7b993d80 (commit)
discards 548502a238f1d2441df24b58a22270e684ce38d5 (commit)
discards 1551ff30681c01c611ead8adc83a13ad51fec86a (commit)
discards ab94c68b85c108abc846153ed4d3315df22417e4 (commit)
discards 8091b73a70c56a7be474c23efa2a8ab598a7b186 (commit)
discards c2dee2f4e0c0665fe308e596969d5bb3076fdc09 (commit)
discards a1a3207425865c73bb54099458b0bf2f34d1bba9 (commit)
discards dcd2162f91d80718b648e9e2c589ce9dc1197860 (commit)
discards c09308dd0738e16fd91dc84fcf46afda1248f5d1 (commit)
discards 030d6d76b05c55c3fba6cf7b20ddcf5be33ff5c0 (commit)
discards 53f3d1819cedb4efdfb5b2a370ac1786345d3872 (commit)
discards c5ef5e5140a57db32491275d2acc6f374a3d731f (commit)
via c2b0168f76566a7057c4e9515411b21333c2cd70 (commit)
via 3f60bb8936172c3364a7cc0d4d3143c5040b377e (commit)
via fcf3e0646dbbf6d8532782da1ed63165b37ad600 (commit)
via dae17b44346aba08a4054c176b614c0ed97ea8d9 (commit)
via 66c76a593c82422fb134fa4ad8cb5b55d594b1d2 (commit)
via d3174c90c1178199db247ffdf7aaac72c6407108 (commit)
via 4ce8d880d1f6986d8ae9c860329a67074962a6c8 (commit)
via 5bd31e44e6aae0678104fa19c041e4d08c7e5510 (commit)
via a60c9abe8c87d08004832caf52505f3b577bfff3 (commit)
via 6695859bda4cb40ddfe2bb17a15c47d9a28458f2 (commit)
via b1d37e2491ba5e497aaa6878f7be03dffc8498e3 (commit)
via b5c2c3a9dec964dd59827c35cbe8cb97ceca3586 (commit)
via 745167058cdf011cd9b0d040cabf652e77e4fdc8 (commit)
via aefe8c4146ce0829cce2c6797809400aa7d021f7 (commit)
via 9aa12beb70c89d3e7b31a7ba712b3c24ee5b0789 (commit)
via bf9e3fa5610616c68407d282d2b05d65f96529dc (commit)
via 6dce78ad9cc6da7311d706296504ff614bc36725 (commit)
via 4e502087a1abec4ba8d5a459f5b9729d27c848e4 (commit)
via 4d71622c7d89e307a3ce3deb4c1f099b515cef46 (commit)
via 8b9ee004ba10cf7899ed153c8c0f01a2e22f4445 (commit)
via 38229e009b9205d5617fb0529081b440ff865a3f (commit)
via 0928210ce2946f5582775ea934d2e9259a417380 (commit)
via cfe11622a94407f3cbba8e39ec56e2ac64ab31ab (commit)
via 3da7a9c541340d9cb0c2a3095dda43b145ba3731 (commit)
via 7bc938885edc1fd364bd7154df25a6ef69efba2b (commit)
via 59513fb06f4b1441d0514a1037e48a075fa31310 (commit)
via 19238aced8e5083af8271fa021b1fe28ebc2edce (commit)
via 4513d2ca0ae9d9e6756a264ea3fb8cca51afd136 (commit)
via c917b8e88c0abddbc976e1804e65e8269c19387c (commit)
via 9590b0ed1d3262c1d5dcaab5a6bc0f1199b943af (commit)
via bdd851dba1704ff45fd8107ce5b12f6be6b6d57e (commit)
via 7046356d1f654ab31962ac47b73dc85d1ba80425 (commit)
via 07e06674ce23250feaa9130c9eda487e2999357e (commit)
via f9faafae8750b071370766a40e9e1204d667285c (commit)
via a2d6e67eab0c21881486166bb23a22a759cbfe0f (commit)
via c4d847ed07a5b98bc1d22e1053ae6723278a5ade (commit)
via 2b6f779f35f31109cd1fa7e847153d463f1b21ba (commit)
via 4ab6caae50b7dd03fdd35f9b63f74323098d1d1a (commit)
via 7698b6278eabefc34834cd51a04f8c821d6daed4 (commit)
via 6ac38df064fe8efd580ebb9426bbedd343de78c5 (commit)
via 77c8328144b9f4724ec07ec612e65bdbd20b04fb (commit)
via 6fccee683ae32b5ba453daf063581d6819deeaef (commit)
via f039214ffb9514ec16feb28d1f2471b1e1325a0e (commit)
via 9f206662f66c7097aff7ef70925f409825a75bdb (commit)
via b55209d9a23dfc4e2f563a0b6bdd674f18d908d5 (commit)
via c7c855256383b1c3fd1e34704e19e462c603f25b (commit)
via 271c6e6cca0e1a275fc9300f004cd51dc1b5433d (commit)
via d0dde44e0059b3fbfd55efaf87116ee382d775b4 (commit)
via 95615b4a2932c1cbb5e8314afa4f43b1c38a9ee8 (commit)
via 485edc33433aae5742e8cc4fbefdeea586dd7623 (commit)
via 6b0f6001d42f7626cccaf964ce7e218efbc02176 (commit)
via de8127d5c010f93939533769c6adc6e55cec9630 (commit)
via bf21d1963b2a80db660b586ff2bf5fe372b28268 (commit)
via 808e8fdc1d868072ed6cd214603d690d93597c31 (commit)
via 69258f21f6ff1184208c2d3e1110ababc781bec3 (commit)
via fa23708ed5f8249d38948f8d5269bfbbca088417 (commit)
via 390e57deb940ca7330a27b33d1e89652362295fb (commit)
via 17e668f7b1ca5ce96a51886433cb751a0e6a2a2e (commit)
via cd402a50a7be87d91aa0b0b6e4aa09da6527bbd2 (commit)
via 8f10c3cb14e9a12eee7080c48e4f1404a6bd75b4 (commit)
via d9fc67bdef1d95429ac87b80ce9ee6cbcf536878 (commit)
via 9811ffc67ae31043fa2140ab167083f3c299f308 (commit)
via 658b1ee171991584f177badbe08216007220ee9b (commit)
via 5cfeb4fbc6e51fe4f3e1a89bfc2e9f0f76ffa644 (commit)
via d7761df5830ad220cf0ff47e927879d8be7b77c4 (commit)
via 4ef075f1ce5709607742403fb09c9ec83c85d381 (commit)
via 071db9fe6db5df2a5997bf873e5f3ce28739c607 (commit)
via 76d89bfcab8015a6363fad057408d4dc73c342f9 (commit)
via 24158df9a7c93227c2df45c4211b01d363c6ffb4 (commit)
via 3ae4170839d072180476bd01b747d95d0b63ed12 (commit)
via 364608b10bfbcf8943f5e18808734ddcc9206cd4 (commit)
via 7040211e0e969a8cc08934eeec37e67468015079 (commit)
via b8f263742a5673f4ddf988bf93b65274168dc8d9 (commit)
via 5fa94527e555568c45ddee87fbf6cffe68890a1b (commit)
via 21d0dc4e8b695d4640942eccb0be44b4267e1f9a (commit)
via fa3c0d517f8c36110983288ef2f3cf4bbf4a7f36 (commit)
via e012852a9958f732e79d687fc712ec3aba597198 (commit)
via 616e118a7e18a8eef32b846b7e9d7d4197cec627 (commit)
via 28ec3e247cc22ecd040eccc138171e6b5746b211 (commit)
via 1abe07e6a2c57536afbe6f0ddb14f3e9b1d83509 (commit)
via 1fead7632f25000bedff5f753a32b9987117d66a (commit)
via 30d53ace28f23643886348bbd13a78d92c305237 (commit)
via b0ebc73aab236db66ed9baa3a3c1f5ad6336d3c5 (commit)
via d11968d37d20ed65dc9432822b83e948d95b46fe (commit)
via 07c04815e9ba61fb80dfa8b09c88eaabf432126e (commit)
via 9476ac0cbd9ac8410ce1541b5ea0edae425ef3d5 (commit)
via fdf76be874627e0dde995e5555e2c6926bf88db7 (commit)
via b490dc7610f05ed3a3eb9227c82cf1a5cf8f7c97 (commit)
via d9b323ee990314df7981c2d599e932606abc74a4 (commit)
via 1bd49fda93db2805d821307ac8cf65e01d5b54a4 (commit)
via 8a3b4bbdafa5b601e0af356dc73b88b06c6d7332 (commit)
via 8ef0b952c0422658fb407917888d4c98fa55117f (commit)
via faa73d425d03b16dcbb3d7135872558c1852dd45 (commit)
via a9fce1bc95601cd0521adb498a5c3d00a2f41aed (commit)
via f38f5ec74d176ff96ee2a3e642a2920d0e130d20 (commit)
via dc40faa5c564ede6b8f901bc1a7dee76c18c2861 (commit)
via 1b8065336312d4e5b9ef920db43f77f972be4ce7 (commit)
via 96e1ff24b57219e6dffbb90cc023e4cf5027a688 (commit)
via 7862bb5d7eb447f0ae4279d04aedf05bcc254526 (commit)
via cb59f805bbc0ce5ea8bdb58eb582d50fdd6de84d (commit)
via ad8562bf2c2e0d54f691ab4bd6e81de0143e02a8 (commit)
via b9f55e3156d158077c25cff30d68ab07cb85984d (commit)
via 2a76aec91cbf604b4320ff1cf0bc4576a4c916fa (commit)
via f715391fbc62f5406db7ff23c6db5b8b5bdbd08f (commit)
via 4f9c83799fdc146d90c2424ed1cbfcfd4b74147a (commit)
via 9b3730b42180d941c99d31df0db47867bf6398cd (commit)
via 94777abfb8f831fd0dadc9b0572eb097fd50bea3 (commit)
via b395cb33dba6c1bf90226e31de32a59c319963b7 (commit)
via 64b107b6b447c11b4a7891470930e364df930e7a (commit)
via 322c436665d75aaeadadbcb1e3e05b12b437b08c (commit)
via bdefcb14adb0f892bb613a8e891a031775fe6dff (commit)
via 20e2838e70a394df2bcc6867b20cf5986eed6b4a (commit)
via 1121c709b97fe993a34cdec5fd527898704fb8eb (commit)
via 10033b6300129b4662b199a3903da79677c2ddd0 (commit)
via cbc2f1cd213ffcc8d77dbed2654f5eb013182f2f (commit)
via 548fe3aeed52402480a707202c78933b7f0d3748 (commit)
via 1d1e0c44fe05d65f68f73a77e29b1474a9ddfb95 (commit)
via ef40e27e0cee297fac4f7a247ff40f39433fbaf0 (commit)
via 16c0b11b02771012bf4514ba955f681e5994ce3c (commit)
via f48fd02843a2da4e0421d9dfa00686d300a71e16 (commit)
via 3efe260e9d1d0ce992494820b3a6d180a998917e (commit)
via 029d1bad2ac0ff638ecab4b1bb8f737bdb44b417 (commit)
via 82b03c1289c0b95aa5daf168251b51458a996b76 (commit)
via 3fe4aa22545a548d3064fa3ea4e88e8369e45e51 (commit)
via bbafb912fa731c7d09c5ebcbeaffb49b5cb9337a (commit)
via bdc44b2ac9424ef0d2fbfdd7b78f73d7933b4289 (commit)
via 8747f6ed71b9139b1a79ab62202e36537664344d (commit)
via e603b201022b4d2668be888f882d685b79198380 (commit)
via ddbcc3e74124ccca7a8ad8a1e75070790de3776f (commit)
via 51c07ff177513a01184013d85875c328732a68d2 (commit)
via b78790fc3bd1677ea0825df100c5bf524846053a (commit)
via 9c081aa6576570099ede776f98678bd0f7345928 (commit)
via c343590706cffe0cb91c6efda33ad32f9a11d092 (commit)
via d910abfa3b84b0b89abf9039596d783ff00e766d (commit)
via 86398324bfc747b2e5ad4689f5fdd2448dbd9fb1 (commit)
via 7de1158dc2a54a50bf2d47c2674fa80214ebe36b (commit)
via 9ba6e858651d1a124dc20a2e772090669f47e7f0 (commit)
via 7742f4f5e38efacdb8b0c018c2837fcb4a1ec8b7 (commit)
via abd8ed39e861452889728d3fc970af008866f11d (commit)
via 79cef858b75b1eaf117a952ea6d6825c4d237e02 (commit)
via e33a3f1a2e9dedab71d27c029beba8815bcebd1f (commit)
via 7278f246a92191c8fae5abd0c45bc00e6c35b1ca (commit)
via 9fcd69680e6da8bd60cc1073d69d4604c63f3bd7 (commit)
via 77664a6d7cfa893614de5d28b9ca8b26e6b5a874 (commit)
via e96330f8a0b100e9c264977ccd36cecfad66888f (commit)
via b66173eafa56bfa8ddfbfc2bb7c66d97c56046b0 (commit)
via 1bb9f1a19b407289a832608705980821074cd84d (commit)
via f07777f3d6fdeeb0bf54c3411bb9212cf2db8cca (commit)
via 31c5013d4a2abb9e4bff9e46c0782daf7edd1fd7 (commit)
via 0a9e8954b7385596ca4d650c3a9457cd94a9f0c3 (commit)
via 842809252f742c8e84195742cfa8f8c8490d19a8 (commit)
via 157e1b7c1618d417b1d980fd747a64b4dbd637d5 (commit)
via b3115258ab45c340a5bcb74a821e6715d7c6c580 (commit)
via ddabd64d2b6eef792b324de723f5a3de542c2145 (commit)
via 1ef6af4459a5ed937df08728a316b5e77f9b5718 (commit)
via cc173028ea3382ae3e4663f669221835e35a87d0 (commit)
via 13773b30f16fb5c84903139b4018696d900284f3 (commit)
via 7d9c6579c7a3041c73f4e4b161952480990c32a1 (commit)
via 73a9ac437a8d796367b459e9f299228de48db46a (commit)
via 5f84f6446697d2462a51977edff7523d6adc8af7 (commit)
via 334e3f5577eda59dbb1547bad8a58a57cb8a2667 (commit)
via 922f3816b2e61b8b496d5fbc1a45888f292a0734 (commit)
via a770c2cf10da51a32de765b248f8c974620fbdea (commit)
via 87a92a2b9ae99df3543a06f06697dc463db11d2a (commit)
via 6c7bdada280a511749a750246b45c7200d1cb099 (commit)
via 590909ea9631090e227a57ef7e7ef75ac39748fd (commit)
via ca61fe229aa2e5c6c33fa60b28e68039bd6abf01 (commit)
via aefc7d03c760358b9f048f0d0ef0d04f7cb79805 (commit)
via 6330ab576e18fb97912839fc116c7babb5fd8c70 (commit)
via ce8a701215fa121e038199d49a6054aac86ec7f6 (commit)
via b9159f3f27c1d944eb546b31b43bec73b4f275ec (commit)
via 41041102676146d1b4c1045e3475245e67c86eff (commit)
via d6743957be0be6636ecd73ba454379bcf347a65f (commit)
via 39fcd2fdc410efdf2356201b976f21c074b7bd65 (commit)
via 6176274447234dcc9ebcb7e7aefe0cee8367d86c (commit)
via ff7d34eae75e033cdd4cc39c2b19cc8659ff9acf (commit)
via a0a7241421d97061b1e691cdf5657a24f3390c2c (commit)
via 97106f3b3295e83abf1ab3dc3e3ce03dbdd0ff54 (commit)
via 737ce405fa3dfce6f73d5028788d1dbc11c15655 (commit)
via ad06d02eef76b374305e65e1c6c4d4a2c0c752eb (commit)
via 056cef676aa35c35516932443545ad24aa0231cc (commit)
via 9bf5cd53792ab6d5e0113d7c40cf10148fe614bb (commit)
via eb0cef962ccce4c456e6fa87cfbc8f113eec4afb (commit)
via d1debb56c4486497d184ac21c081f47c714f5f0f (commit)
via ffc9246b7b8b1ba1c665ca8deb8c7a59dc129d1d (commit)
via 032553c640bd155aa4fe35b0ff31879a1903f39d (commit)
via 9969e593c6d5c36472dc999f322510bdf042f241 (commit)
via 888cf48cd5de386c518fc6880280466b8bc58be2 (commit)
via 0203b21844827c8cb09a1f01cd1ec2af6d77c140 (commit)
via e40163f78b1c283325520ff1d2eec78cc06ef278 (commit)
via 5cea280c6df6c447c2fb32d01e2b6e0a0d178a5f (commit)
via e4e998fbc0c8ed7c45e322560711d38f38186c0b (commit)
via 038edce9d30490ef69495290a8861085a458545f (commit)
via c3a3c5fe4b9ba9dce63c2aa5e78a0729c33f49cd (commit)
via de8259ea19c9457b0fcc9118d37a3ced3ddaf998 (commit)
via a9c3a3df0662cb0ed15321000107c8c1aa768cdc (commit)
via e72104afc5d23348fc23c206bc32235d4edf9e33 (commit)
via 4a3e7d158ae4a2005ae20e77541152e52acc9582 (commit)
via 0d7b8797a6206f8c706938448d6084c5fe9fdeb7 (commit)
via 7a99bbbf485a85d27aacf5006139fe67eb35ac68 (commit)
via 82110b496cd3e5c0d82796f85201ed8f587bfe4b (commit)
via 6747612706d81d31b1673974537ed8dff22444ba (commit)
via a1ccd4e4395a1215661f4dc88646514c53aeb0b9 (commit)
via ceff6a55e34396c81009e9c93086e7fa84eb73ec (commit)
via c8672d57d6e470057494b26e1a3c58d6b9e45ebe (commit)
via dbd948e82e78b6c0cec97764b9efeafab21bdb3d (commit)
via f2469987720df2d5333e2e46e72c0caa00b40817 (commit)
via 8b336e6bdffba2095f20c39140ca1b4db9d5a9d1 (commit)
via effff1b7fb47a783d5041d5bfa906e0598237f47 (commit)
via 387dcc423f0b0837835ec7d1f1c5ed7728fa9574 (commit)
via 051f357decdb4ebb99a374616ec2f231a231d188 (commit)
via 40f0f68dc579c37f7b8acc50dbea5e4f6c013b1f (commit)
via 9fbc529f6156b9f4b92bd339e2043eb5ef28cded (commit)
via 064089ea8bff6088c25347790569670735fff568 (commit)
via 9d98d54e5dd823ce1db8eaa5565786353bde08d2 (commit)
via 5461f4b4302ed312ae837284661f63bcbb5f0150 (commit)
via f857351bba8ed38f911fae105fb163ecbb891f38 (commit)
via 105a5d1d91e1262b3f9c41cba005de5bb67d1d8b (commit)
via df3f6541130aef717e500bc647efa1bde2ac65d3 (commit)
via 19c227dcd47973ba3d4ab7b69967b94840df0e34 (commit)
via f7eb9e8a850efb3f2c65d29cdacaf88ada15f8bd (commit)
via 5e5c0ff1bb5f27ebd180c0696a104f2816d0c145 (commit)
via 0d9856c8507b0b2e0a88fda3fc14404228218c74 (commit)
via 86beac1070093ae3f91c9e1cd3009bed3e475fa6 (commit)
via 295123e116bd75f28ca1a6c310471668960f2fc0 (commit)
via bf63885a12b4ff83174a400335f6258536e0ff2a (commit)
via 72ba79c167998175b9302b5b83cb472625f886b8 (commit)
via 3b3be33462801c7945e328c6570f7e3d6a4acbac (commit)
via c3f787aca95e3ecb7215b6b42be6f4620fc7c02c (commit)
via 70685987aab47cea63a45e038097fde4fef548fd (commit)
via 29fc1b0ae32e3110fac0313a6720aca198de02c9 (commit)
via 1016d2d11a157ae44dd2f29620bbfd9d459ab7c8 (commit)
via 3b0b4cc40ad6020112bc02ccd539fb0d9b0c6ede (commit)
via 5e50ec2db34555434bdf0c61996647573945f047 (commit)
via 34bcb4e371534d9a450ea11a578adff28704fa23 (commit)
via ea029ce7c43cebe294b644bc316eeefcc774d992 (commit)
via d6617aac65a3e5acc91ea0905a0bdd543a821f2d (commit)
via a2429991882d4235f1eb017ddd0a9d8f1e8b5398 (commit)
via 045f778a4c12658419d10ec5485bd0347935a39d (commit)
via 1d3d38e1eacb431efb1d0a4a67e6eacf15c0f2b2 (commit)
via 31bfb03710f59e01c2cd123bf01be2f991f29e22 (commit)
via 4b42dc673381808a31f0f6cc7ed7eccd3c9043b8 (commit)
via cea2b1f6f345e375adba8f2eb9861b004d33c1e8 (commit)
via 5c6f64738585ff93d63f5782b9bb044eca637fa0 (commit)
via 7b6538165a92ffa94a76d4c7677c8c0a5de527b9 (commit)
via 49c16422a06186b20f0fc33380113b131c20c8f8 (commit)
via 05920b10b4f7e7c44329c13644bbfa14c427ae92 (commit)
via 1614db2f39d46d6ba389e88edfeed3eeef6e3e7e (commit)
via f78a17cc8b54f718d16b6cfd63163a39a6df738b (commit)
via 74d7e164d1e9d6ff1fd7c1acf675e3589098fa81 (commit)
from 3174923353fd4cb820e8d7e5fdef43ff99b7f0ed (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit c2b0168f76566a7057c4e9515411b21333c2cd70
Author: Tom Tromey <tromey@redhat.com>
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 3f60bb8936172c3364a7cc0d4d3143c5040b377e
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Apr 22 12:11:11 2013 -0600
add gdb_python_initialized test case
* gdb.gdb/python-selftest.exp: New file.
commit fcf3e0646dbbf6d8532782da1ed63165b37ad600
Author: Tom Tromey <tromey@redhat.com>
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 dae17b44346aba08a4054c176b614c0ed97ea8d9
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Apr 18 12:51:02 2013 -0600
fix refcount bug in search_pp_list
The checker noticed a missing decref in search_pp_list.
* python/py-prettyprint.c (search_pp_list): Decref 'attr'.
commit 66c76a593c82422fb134fa4ad8cb5b55d594b1d2
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Apr 18 12:50:46 2013 -0600
rearrange for some clarity in valpy_get_dynamic_type
The checker noticed some funny code in valpy_get_dynamic_type. This
simplifies the code a little and also changes an incref to an xincref;
the current code could crash if type_to_type_object failed.
* python/py-value.c (valpy_get_dynamic_type): Simplify
dynamic_type assignment. Use Py_XINCREF.
commit d3174c90c1178199db247ffdf7aaac72c6407108
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Apr 18 12:32:24 2013 -0600
fix refcount bug in typy_fields
The checker found a bug in typy_fields -- we leaked a reference in one
path.
* python/py-type.c (typy_fields): Unconditionally decref 'r'.
commit 4ce8d880d1f6986d8ae9c860329a67074962a6c8
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Apr 18 11:40:47 2013 -0600
some py-frame.c changes to make the checker work better
The checker complained about some code in py-frame.c that was simple
to refactor into a digestible form.
* python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
(gdbpy_selected_frame): Move object-construction code
out of TRY_CATCH.
commit 5bd31e44e6aae0678104fa19c041e4d08c7e5510
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Apr 18 11:26:10 2013 -0600
introduce gdb_pymodule_addobject
The checker pointed out that this common idiom in gdb is wrong:
- Py_INCREF (&arch_object_type);
- return PyModule_AddObject (gdb_module, "Architecture",
- (PyObject *) &arch_object_type);
This is buggy because if PyModule_AddObject fails, then the reference
will not be stolen. So, the object will be leaked.
This isn't extremely important, as such failures probably won't
actually happen. Nevertheless it is better to be clean; and also
remove false reports from the checker.
This patch does so by introducing a wrapper function for
PyModule_AddObject that doesn't steal a reference.
* 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 a60c9abe8c87d08004832caf52505f3b577bfff3
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Apr 18 10:52:17 2013 -0600
use explicit decrefs rather than cleanups in some cases
The checker doesn't understand cleanups, and probably never will.
However, in a few places, I think we use cleanups where explicit
decref calls are just as clean. So, this patch changes those spots
and silences the checker.
There are other spots using decref cleanups that can't readily be
changed. For example, the pretty-printing code calls into parts of
gdb that can throw, and so cleanups must be used.
* 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 6695859bda4cb40ddfe2bb17a15c47d9a28458f2
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Apr 18 08:53:14 2013 -0600
remove erroneous incref from gdbpy_initialize_py_events
The checker noticed a bogus incref in gdbpy_initialize_py_events.
* python/py-evts.c (gdbpy_initialize_py_events): Don't
incref the module.
commit b1d37e2491ba5e497aaa6878f7be03dffc8498e3
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Apr 18 07:46:18 2013 -0600
fix refcounting in gdbpy_run_events
The checker noticed a missing decref in gdbpy_run_events.
* python/python.c (gdbpy_run_events): Decref the result
of PyObject_CallObject.
commit b5c2c3a9dec964dd59827c35cbe8cb97ceca3586
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Apr 17 14:43:26 2013 -0600
make set_sal follow negative result convention
This changes set_sal to follow the "negative means error" convention.
This lets the checker understand it.
* python/py-symtab.c (set_sal): Use
CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
(symtab_and_line_to_sal_object): Update.
commit 745167058cdf011cd9b0d040cabf652e77e4fdc8
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Apr 17 14:35:18 2013 -0600
add missing decref in py-param.c
The checker found a missing decref in compute_enum_values.
* python/py-param.c (compute_enum_values): Decref 'item'.
commit aefe8c4146ce0829cce2c6797809400aa7d021f7
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Apr 17 13:31:38 2013 -0600
check gdb_python_initialized everywhere
This patch changes the rest of gdb to use gdb_python_initialized. It
also changes ensure_python_env to throw an exception if Python is not
initialized. In some spots no other checks were needed -- there is no
way to reach some of the calls to ensure_python_env unless some
previous call into Python was made.
value_get_print_value had to be reindented, which is why that part of
the patch looks odd.
* 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 9aa12beb70c89d3e7b31a7ba712b3c24ee5b0789
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Apr 17 13:12:59 2013 -0600
convert python init functions to do error-checking
The checker pointed out that we did not do Python error checking in
any of our module initialization functions. There is no deep reason
for this -- just that it is common in the Python world to work this
way. However, it seems cleaner to me to be correct, and it makes the
checker quieter besides.
This changes nearly all of the Python initialization functions to
return -1 on error.
This also introduces gdb_python_initialized, which is set to a
non-zero value if initialization went properly. A subsequent patch
will use this to disable Python support if initialization failed.
* 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 bf9e3fa5610616c68407d282d2b05d65f96529dc
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Apr 17 12:20:47 2013 -0600
reference count in bpfinishpy_out_of_scope
The checker noticed a missing decref in bpfinishpy_out_of_scope.
* python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
Decref the reslut of PyObject_CallMethod.
commit 6dce78ad9cc6da7311d706296504ff614bc36725
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Apr 17 12:05:32 2013 -0600
fix bug in gdbpy_initialize_event_generic
The checker noticed that gdbpy_initialize_event_generic could do an
extra decref of 'type' if PyType_Ready failed. This fixes the bug.
* python/py-event.c (gdbpy_initialize_event_generic): Return
early if PyType_Ready fails.
commit 4e502087a1abec4ba8d5a459f5b9729d27c848e4
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Apr 17 10:29:30 2013 -0600
add gdb_assert_not_reached
This patch adds a gdb_assert_not_reached to a switch in
make_fielditem. This avoids a checker complaint.
* python/py-type.c (make_fielditem): Add gdb_assert_not_reached
as 'default' in the switch.
commit 4d71622c7d89e307a3ce3deb4c1f099b515cef46
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Apr 17 10:23:52 2013 -0600
fix get_addr_from_python
get_addr_from_python confused the checker and so I decided to change
it to a form that it found more palatable. In particular now it
returns a negative value on error (using
CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION), and it can no longer throw
a gdb exception. This let me hoist calls to it out of some
TRY_CATCHes.
* 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 8b9ee004ba10cf7899ed153c8c0f01a2e22f4445
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Apr 17 09:31:55 2013 -0600
add decref in evpy_emit_event
The checker noticed a missing decref in evpy_emit_event.
* python/py-event.c (evpy_emit_event): Decref the
result of PyObject_CallFunctionObjArgs.
commit 38229e009b9205d5617fb0529081b440ff865a3f
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Apr 17 09:12:51 2013 -0600
use iterator protocol and avoid refcount bugs
The checker pointed out some refcounting bugs in cmdpy_completer.
And, while looking at it, I noticed that it was not using the iterator
protocol. I couldn't think of a reason why not; and using an iterator
cleaned up the code, so this patch does that.
* python/py-cmd.c (cmdpy_completer): Use iterator protocol.
Correctly decref.
commit 0928210ce2946f5582775ea934d2e9259a417380
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Apr 17 08:56:13 2013 -0600
add decref to cmdpy_init
The checker pointed out some missing decrefs in cmdpy_init.
This patch adds them.
* python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
commit cfe11622a94407f3cbba8e39ec56e2ac64ab31ab
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Apr 17 08:52:35 2013 -0600
introduce and use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION
The checker provides an attribute that indicates that a function sets
the Python exception if it returns a negative value. This patch
introduces a new macro for this attribute and changes gdb to use it
where appropriate.
* 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 3da7a9c541340d9cb0c2a3095dda43b145ba3731
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Mar 4 08:45:17 2013 -0700
use CPYCHECKER_SETS_EXCEPTION
The checker defines an attribute that can be used to indicate that a
function sets the Python exception.
This patch introduces a new macro for this attribute and changes gdb
to use it. I also changed gdbpy_convert_exception to return 'void'.
This is friendlier to the checker, which didn't recognize our current
convention; but also turns out to clean up the code a little.
* 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 7bc938885edc1fd364bd7154df25a6ef69efba2b
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Mar 4 07:45:33 2013 -0700
remove unused declaration
I happened to notice that we declare but do not define
events_object_type. This removes it.
* python/python-internal.h (events_object_type): Remove.
commit 59513fb06f4b1441d0514a1037e48a075fa31310
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Apr 22 12:23:48 2013 -0600
add CPYCHECKER_STEALS_REFERENCE_TO_ARG
The checker provides an attribute that can be used to indicate that a
function steals a reference to an argument. This patch adds a macro
for this attribute to gdb and changes one spot to use it.
* 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 19238aced8e5083af8271fa021b1fe28ebc2edce
Author: Tom Tromey <tromey@redhat.com>
Date: Mon Apr 22 12:23:19 2013 -0600
fix py-evtregistry.c refcount bug
The checker found a refcounting bug in py-evtregistry.c.
* py-evtregistry.c (create_event_object): Decref
eventregistry_object if PyList_New fails.
commit 4513d2ca0ae9d9e6756a264ea3fb8cca51afd136
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jan 4 14:59:59 2012 -0700
py-cmd.c error-checking bug fix
The checker found an error-checking bug in py-cmd.c.
This fixes it.
* py-cmd.c (gdbpy_string_to_argv): Check result of
PyList_New.
commit c917b8e88c0abddbc976e1804e65e8269c19387c
Author: Tom Tromey <tromey@redhat.com>
Date: Thu Apr 18 14:50:46 2013 -0600
add missing decref in before_prompt_hook
The checker noticed a missing decref in before_prompt_hook.
* python/python.c (before_prompt_hook): Add cleanup to
decref 'hook'.
commit 9590b0ed1d3262c1d5dcaab5a6bc0f1199b943af
Author: Tom Tromey <tromey@redhat.com>
Date: Wed Jan 4 14:41:44 2012 -0700
PyObject_GetAttrString returns a new ref
This fixes a bug in py-function.c pointed out by the checker.
PyObject_GetAttrString returns a new ref, so we must decref it.
commit bdd851dba1704ff45fd8107ce5b12f6be6b6d57e
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Apr 19 08:19:12 2013 -0600
add borrowed-ref attribute from the python checker
This adds the borrowed-ref attribute from the CPython checker, and
then updates the code to use it in various places. This attribute
tells the checker that a function returns a borrowed reference.
* 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 7046356d1f654ab31962ac47b73dc85d1ba80425
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Apr 19 08:18:52 2013 -0600
introduce CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF and use it
This introduces the CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF attribute and
changes the Python code to use it. This attribute associates a Python
type object with a particular implementation type. The checker uses
this information to improve its analysis in some cases.
* 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 07e06674ce23250feaa9130c9eda487e2999357e
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Feb 22 12:03:50 2013 -0700
add README.archer
commit f9faafae8750b071370766a40e9e1204d667285c
Author: Tom Tromey <tromey@redhat.com>
Date: Fri May 10 17:00:59 2013 +0000
2013-05-10 Joel Brobecker <brobecker@adacore.com>
Tom Tromey <tromey@redhat.com>
* common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
New functions.
* common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
Declare.
* darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
(darwin_ptrace_him): Use unmark_fd_no_cloexec.
* inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
(inf_ttrace_prepare): Use mark_fd_no_cloexec.
commit a2d6e67eab0c21881486166bb23a22a759cbfe0f
Author: Tom Tromey <tromey@redhat.com>
Date: Fri May 10 16:10:39 2013 +0000
gdb
Freddie Chopin <freddie_chopin@op.pl>
PR build/15414:
* configure: Rebuild.
* configure.ac (build_warnings): Do not use -Wformat-nonliteral
with -Wno-format.
sim/common
* acinclude.m4 (SIM_AC_OPTION_WARNINGS): Do not use
-Wformat-nonliteral with -Wno-format.
sim/bfin
* configure: Rebuild.
sim/cr16
* configure: Rebuild.
sim/cris
* configure: Rebuild.
sim/d10v
* configure: Rebuild.
sim/igen
* configure: Rebuild.
sim/m68hc11
* configure: Rebuild.
sim/mips
* configure: Rebuild.
sim/mn10300
* configure: Rebuild.
sim/v850
* configure: Rebuild.
commit c4d847ed07a5b98bc1d22e1053ae6723278a5ade
Author: Pedro Alves <palves@redhat.com>
Date: Fri May 10 14:31:04 2013 +0000
Fix typo in "show remote traceframe-info-packet"
I noticed:
(gdb) show remote traceframe-info-packet
Support for the `qXfer:trace-frame-info:read' packet is auto-detected, currently unknown.
^^^^^^^^^^^
The packet is actually qXfer:traceframe-info:read.
gdb/
2013-05-10 Pedro Alves <palves@redhat.com>
* remote.c (_initialize_remote): Fix spelling of
qXfer:traceframe-info:read packet in packet config command.
commit 2b6f779f35f31109cd1fa7e847153d463f1b21ba
Author: Pedro Alves <palves@redhat.com>
Date: Fri May 10 13:59:45 2013 +0000
PR remote/15455 - QTro remote packet broken
In the function remote_trace_set_readonly_regions in gdb/remote.c, the
local variable 'offset' does not account for "QTro" at the start of
the packet with the result that if there are any read-only regions,
the packet is sent -- but without the "QTro" -- causing the remote
stub to report that the packet is unsupported:
Sending packet: $:0000000000400200,(...),00000000004560a4#ab...Packet received:
vs the expected:
Sending packet: $QTro:0000000000400200,(...),00000000004560a4#31...Packet received: OK
We don't see the problem when testing with GDBserver, as that supports
qXfer:trace-frame-info:read, meaning GDBserver never needs to read
from the read-only sections directly itself. This commit adds a test
that explicitly disables qXfer:trace-frame-info:read.
gdb/
2013-05-10 David Taylor <dtaylor@emc.com>
PR remote/15455
* remote.c (remote_trace_set_readonly_regions): Do not overwrite
"QTro" at start of packet.
gdb/testsuite/
2013-05-10 Pedro Alves <palves@redhat.com>
PR remote/15455
* gdb.trace/qtro.c: New file.
* gdb.trace/qtro.exp: New file.
commit 4ab6caae50b7dd03fdd35f9b63f74323098d1d1a
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri May 10 13:25:28 2013 +0000
Remove FIXME in solib-aix.c:solib_aix_relocate_section_addresses
This issue should now be fixed thanks to a change in bfd removing
the SEC_ALLOC flag from all sections that do not get mapped to
memory.
gdb/ChangeLog:
* solib-aix.c (solib_aix_relocate_section_addresses):
Remove FIXME comment.
commit 7698b6278eabefc34834cd51a04f8c821d6daed4
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri May 10 13:08:24 2013 +0000
XCOFF/AIX: Remove SEC_ALLOC flags for unmapped sections.
The .except, .loader and .typchk are not mapped to memory,
so do not set their SEC_ALLOC flag.
bfd/ChangeLog:
* coffcode.h (styp_to_sec_flags) [RS6000COFF_C]: Add handling
of STYP_EXCEPT, STYP_LOADER and STYP_TYPCHK sections.
ld/testsuite/ChangeLog:
* ld-powerpc/aix-core-sec-1.hd, ld-powerpc/aix-core-sec-2.hd,
ld-powerpc/aix-core-sec-3.hd: Adjust expected section flags
for section .loader.
commit 6ac38df064fe8efd580ebb9426bbedd343de78c5
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri May 10 12:55:13 2013 +0000
AIX: wrong address for shared object's .bss section
gdb/ChangeLog:
* solib-aix.c (solib_aix_relocate_section_addresses):
For the .bss section action, apply the same offset as
the .data section.
commit 77c8328144b9f4724ec07ec612e65bdbd20b04fb
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri May 10 12:10:19 2013 +0000
move sparc-sol-thread.c back into sol-thread.c.
The routines in sparc-sol-thread used to be SPARC-specific (and
documented as such in the ptrace man page), and therefore hosting them
in a sparc-specific file made sense. However, newer versions of
Solaris now use those callbacks (Solaris 10 Update 10, apparently),
and thus the note about these callbacks being specific to SPARC
was removed.
So this patch deletes sparc-sol-thread.c and moves the code back
inside sol-thread.c.
gdb/ChangeLog:
PR tdep/15420:
* sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
New functions, directly copied from sparc-sol-thread.c.
* sparc-sol-thread.c: Delete.
* configure.ac: Remove code handling sparc-solaris-thread.c.
* configure: Regenerate.
commit 6fccee683ae32b5ba453daf063581d6819deeaef
Author: pmuldoon <pmuldoon>
Date: Fri May 10 10:26:01 2013 +0000
2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
* stack.c (backtrace_command_1): Add "no-filters", and Python frame
filter logic.
(backtrace_command): Add "no-filters" option parsing.
(_initialize_stack): Alter help to reflect "no-filters" option.
* Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
(SUBDIR_PYTHON_SRCS): Add py-framefilter.c
(py-frame.o): Add target
* data-directory/Makefile.in (PYTHON_DIR): Add Python frame
filter files.
* python/python.h: Add new frame filter constants, and flag enum.
(apply_frame_filter): Add definition.
* python/python.c (apply_frame_filter): New non-Python
enabled function.
* python/py-utils.c (py_xdecref): New function.
(make_cleanup_py_xdecref): Ditto.
* python/py-objfile.c: Declare frame_filters dictionary.
(objfpy_dealloc): Add frame_filters dealloc.
(objfpy_new): Initialize frame_filters attribute.
(objfile_to_objfile_object): Ditto.
(objfpy_get_frame_filters): New function.
(objfpy_set_frame_filters): New function.
* python/py-progspace.c: Declare frame_filters dictionary.
(pspy_dealloc): Add frame_filters dealloc.
(pspy_new): Initialize frame_filters attribute.
(pspacee_to_pspace_object): Ditto.
(pspy_get_frame_filters): New function.
(pspy_set_frame_filters): New function.
* python/py-framefilter.c: New file.
* python/lib/gdb/command/frame_filters.py: New file.
* python/lib/gdb/frames.py: New file.
* python/lib/gdb/__init__.py: Initialize global frame_filters
dictionary
* python/lib/gdb/FrameDecorator.py: New file.
* python/lib/gdb/FrameIterator.py: New file.
* mi/mi-cmds.c (mi_cmds): Add frame filters command.
* mi/mi-cmds.h: Declare.
* mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
--no-frame-filter logic, and Python frame filter logic.
(stack_enable_frame_filters): New function.
(parse_no_frame_option): Ditto.
(mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
filter logic.
(mi_cmd_stack_list_locals): Ditto.
(mi_cmd_stack_list_args): Ditto.
(mi_cmd_stack_list_variables): Ditto.
* NEWS: Add frame filter note.
2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
* gdb.python/py-framefilter.py: New File.
* gdb.python/py-framefilter-mi.exp: Ditto.
* gdb.python/py-framefilter.c: Ditto.
* gdb.python/py-framefilter-mi.exp: Ditto.
* gdb.python/py-framefilter-mi.c: Ditto,
* gdb.python/py-framefilter-gdb.py.in: Ditto.
2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
* gdb.texinfo (Backtrace): Add "no-filter" argument.
(Python API): Add Frame Filters API, Frame Wrapper API,
Writing a Frame Filter/Wrapper, Managing Management of Frame
Filters chapter entries.
(Frame Filters API): New Node.
(Frame Wrapper API): New Node.
(Writing a Frame Filter): New Node.
(Managing Frame Filters): New Node.
(Progspaces In Python): Add note about frame_filters attribute.
(Objfiles in Python): Ditto.
(GDB/MI Stack Manipulation): Add -enable-frame-filters command,
@anchors and --no-frame-filters option to -stack-list-variables,
-stack-list-frames, -stack-list-locals and -stack-list-arguments
commands.
-----------------------------------------------------------------------
Summary of changes:
COPYING.NEWLIB | 31 +
ChangeLog | 19 +
Makefile.def | 2 +-
Makefile.in | 18 +-
bfd/ChangeLog | 157 ++
bfd/archures.c | 13 +-
bfd/bfd-in2.h | 24 +
bfd/bfd.c | 4 +-
bfd/coffcode.h | 6 +
bfd/config.bfd | 8 +-
bfd/configure | 1 +
bfd/configure.in | 3 +-
bfd/cpu-msp430.c | 46 +-
bfd/ecoff.c | 6 +-
bfd/elf-bfd.h | 13 +-
bfd/elf-ifunc.c | 48 +-
bfd/elf32-arm.c | 2962 ++++++++++----------
bfd/elf32-i386.c | 3 +-
bfd/elf32-mips.c | 4 +-
bfd/elf32-msp430.c | 1833 +++++++++++--
bfd/elf32-tic6x.c | 5 +-
bfd/elf32-v850.c | 2 +-
bfd/elf64-aarch64.c | 30 +-
bfd/elf64-mips.c | 27 +-
bfd/elf64-ppc.c | 201 +-
bfd/elf64-ppc.h | 2 +-
bfd/elf64-x86-64.c | 1 +
bfd/elflink.c | 101 +-
bfd/elfn32-mips.c | 27 +-
bfd/libbfd.h | 15 +
bfd/reloc.c | 30 +
bfd/targets.c | 6 +-
bfd/version.h | 2 +-
bfd/vms-alpha.c | 2 +-
config.guess | 25 +-
config.sub | 23 +-
config/ChangeLog | 10 +
config/bootstrap-asan.mk | 1 +
config/dfp.m4 | 2 +-
config/picflag.m4 | 4 +-
configure | 2 +
configure.ac | 2 +
gdb/ChangeLog | 1042 +++++++-
gdb/MAINTAINERS | 1 +
gdb/Makefile.in | 30 +-
gdb/NEWS | 13 +
gdb/aarch64-tdep.c | 6 +-
gdb/ada-lang.c | 6 +-
gdb/ada-tasks.c | 2 +-
gdb/alpha-tdep.c | 6 +-
gdb/alphanbsd-tdep.c | 8 +-
gdb/amd64-darwin-tdep.c | 1 -
gdb/arm-linux-tdep.c | 16 +-
gdb/arm-tdep.c | 14 +-
gdb/arm-tdep.h | 6 +-
gdb/arm-wince-tdep.c | 4 +-
gdb/armnbsd-tdep.c | 8 +-
gdb/armobsd-tdep.c | 4 +-
gdb/auto-load.c | 5 +-
gdb/auxv.c | 3 +-
gdb/avr-tdep.c | 8 +-
gdb/break-catch-sig.c | 10 +-
gdb/breakpoint.c | 60 +-
gdb/c-lang.c | 2 +-
gdb/cleanups.c | 1 +
gdb/cli/cli-cmds.c | 3 +
gdb/cli/cli-decode.c | 3 +
gdb/cli/cli-dump.c | 3 +-
gdb/coff-pe-read.c | 7 +-
gdb/common/agent.c | 6 +-
gdb/common/filestuff.c | 399 +++
gdb/common/filestuff.h | 70 +
gdb/common/linux-btrace.c | 70 +-
gdb/common/linux-osdata.c | 17 +-
gdb/common/linux-procfs.c | 5 +-
gdb/config.in | 9 +-
gdb/config/powerpc/aix.mh | 5 +-
gdb/config/rs6000/nm-rs6000.h | 50 -
gdb/configure | 15 +-
gdb/configure.ac | 15 +-
gdb/configure.tgt | 13 +-
gdb/contrib/ari/gdb_ari.sh | 8 +-
gdb/corelow.c | 21 +-
gdb/cp-valprint.c | 2 +-
gdb/cris-tdep.c | 26 +-
gdb/ctf.c | 19 +-
gdb/darwin-nat.c | 135 +-
gdb/data-directory/Makefile.in | 4 +
gdb/dbxread.c | 2 +-
gdb/doc/ChangeLog | 64 +
gdb/doc/gdb.texinfo | 996 +++++++-
gdb/doc/gdbint.texinfo | 103 +-
gdb/dwarf2-frame.c | 6 +-
gdb/dwarf2loc.c | 58 +-
gdb/dwarf2loc.h | 5 +
gdb/dwarf2read.c | 316 ++-
gdb/elfread.c | 4 +-
gdb/event-top.c | 1 +
gdb/exec.c | 120 -
gdb/features/Makefile | 2 +
gdb/features/library-list-aix.dtd | 18 +
gdb/features/nios2-cpu.xml | 59 +
gdb/features/nios2-linux.c | 71 +
gdb/features/nios2-linux.xml | 13 +
gdb/features/nios2.c | 69 +
gdb/features/nios2.xml | 12 +
gdb/fork-child.c | 3 +
gdb/frv-tdep.c | 10 +-
gdb/gcore.c | 5 +-
gdb/gdb_bfd.c | 3 +-
gdb/gdbserver/ChangeLog | 26 +
gdb/gdbserver/Makefile.in | 12 +-
gdb/gdbserver/ax.c | 1 +
gdb/gdbserver/config.in | 6 +
gdb/gdbserver/configure | 2 +-
gdb/gdbserver/configure.ac | 2 +-
gdb/gdbserver/configure.srv | 9 +
gdb/gdbserver/linux-nios2-low.c | 234 ++
gdb/gdbserver/tracepoint.c | 2 +
gdb/hppa-hpux-tdep.c | 16 +-
gdb/hppa-tdep.c | 4 +-
gdb/i386-cygwin-tdep.c | 6 +-
gdb/i386gnu-nat.c | 15 +-
gdb/i387-tdep.c | 2 +-
gdb/ia64-tdep.c | 32 +-
gdb/inf-child.c | 3 +-
gdb/inf-ttrace.c | 11 +
gdb/infcmd.c | 14 +-
gdb/infrun.c | 6 +-
gdb/linux-nat.c | 11 +-
gdb/linux-tdep.c | 8 +-
gdb/m32c-tdep.c | 3 +-
gdb/m32r-tdep.c | 8 +-
gdb/m68hc11-tdep.c | 14 +-
gdb/machoread.c | 2 +-
gdb/main.c | 2 +
gdb/mep-tdep.c | 11 +-
gdb/mi/mi-cmd-stack.c | 229 ++-
gdb/mi/mi-cmds.c | 1 +
gdb/mi/mi-cmds.h | 1 +
gdb/mips-tdep.c | 6 +-
gdb/mipsnbsd-tdep.c | 2 +-
gdb/mn10300-tdep.c | 11 +-
gdb/monitor.c | 14 +-
gdb/moxie-tdep.c | 14 +-
gdb/nios2-linux-tdep.c | 233 ++
gdb/nios2-tdep.c | 1637 +++++++++++
gdb/nios2-tdep.h | 80 +
gdb/objfiles.c | 7 +-
gdb/objfiles.h | 2 +-
gdb/ppc-linux-nat.c | 13 +-
gdb/ppc-linux-tdep.c | 2 +-
gdb/ppc-ravenscar-thread.c | 6 +-
gdb/psympriv.h | 4 +-
gdb/psymtab.c | 20 +-
gdb/python/lib/gdb/FrameDecorator.py | 285 ++
gdb/python/lib/gdb/FrameIterator.py | 45 +
gdb/python/lib/gdb/__init__.py | 2 +
gdb/python/lib/gdb/command/frame_filters.py | 461 +++
gdb/python/lib/gdb/frames.py | 229 ++
gdb/python/py-framefilter.c | 1528 ++++++++++
gdb/python/py-inferior.c | 9 +-
gdb/python/py-objfile.c | 60 +
gdb/python/py-prettyprint.c | 10 +-
gdb/python/py-progspace.c | 60 +
gdb/python/py-utils.c | 22 +
gdb/python/py-value.c | 3 +-
gdb/python/python-internal.h | 3 +
gdb/python/python.c | 9 +
gdb/python/python.h | 66 +
gdb/ravenscar-thread.c | 2 +-
gdb/record-full.c | 10 +-
gdb/record.c | 2 +-
gdb/regformats/nios2-linux.dat | 53 +
gdb/remote-fileio.c | 3 +-
gdb/remote-m32r-sdi.c | 2 +-
gdb/remote-mips.c | 34 +-
gdb/remote-sim.c | 6 +-
gdb/remote.c | 39 +-
gdb/reverse.c | 4 +-
gdb/rl78-tdep.c | 16 +-
gdb/rs6000-aix-tdep.c | 20 +-
gdb/rs6000-nat.c | 770 ++----
gdb/rs6000-tdep.h | 4 -
gdb/s390-tdep.c | 8 +-
gdb/score-tdep.c | 2 +-
gdb/ser-base.c | 9 +-
gdb/ser-base.h | 2 +-
gdb/ser-go32.c | 21 +-
gdb/ser-pipe.c | 17 +-
gdb/ser-tcp.c | 10 +-
gdb/ser-unix.c | 3 +-
gdb/serial.c | 16 +-
gdb/serial.h | 6 +-
gdb/sh-tdep.c | 44 +-
gdb/sh64-tdep.c | 41 +-
gdb/sol-thread.c | 68 +-
gdb/solib-aix.c | 841 ++++++
gdb/{sparc-sol-thread.c => solib-aix.h} | 31 +-
gdb/solib-darwin.c | 10 +-
gdb/solib-dsbt.c | 193 +-
gdb/solib-frv.c | 8 +-
gdb/solib-ia64-hpux.c | 3 +-
gdb/solib-irix.c | 12 +-
gdb/solib-som.c | 2 +-
gdb/solib-spu.c | 2 +-
gdb/solib-svr4.c | 15 +-
gdb/solib-target.c | 2 +-
gdb/solib.c | 30 +-
gdb/solist.h | 5 +
gdb/somread.c | 3 +-
gdb/source.c | 15 +-
gdb/sparc-ravenscar-thread.c | 6 +-
gdb/spu-multiarch.c | 2 +-
gdb/spu-tdep.c | 18 +-
gdb/stabsread.h | 3 +-
gdb/stack.c | 126 +-
gdb/symfile.c | 129 +-
gdb/symfile.h | 22 +-
gdb/target-descriptions.c | 33 +-
gdb/target.h | 2 +
gdb/testsuite/ChangeLog | 162 ++
.../shr2.c => gdb.arch/arm-bl-branch-dest.c} | 21 +-
gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp | 37 +
gdb/testsuite/gdb.arch/gcore.c | 70 -
.../{gdb.reverse/shr2.c => gdb.arch/i386-float.S} | 36 +-
gdb/testsuite/gdb.arch/i386-float.exp | 43 +
gdb/testsuite/gdb.arch/system-gcore.exp | 215 --
gdb/testsuite/gdb.arch/vsx-regs.exp | 33 +-
gdb/testsuite/gdb.base/catch-signal.c | 2 +
gdb/testsuite/gdb.base/catch-signal.exp | 13 +
gdb/testsuite/gdb.base/dprintf.exp | 4 +-
gdb/testsuite/gdb.base/gcore.exp | 34 +-
gdb/testsuite/gdb.base/pending.exp | 3 +
gdb/testsuite/gdb.base/save-bp.exp | 5 +-
gdb/testsuite/gdb.base/setshow.exp | 7 +
.../{catch-signal.c => solib-search-lib1.c} | 47 +-
.../{catch-signal.c => solib-search-lib2.c} | 47 +-
.../shr2.c => gdb.base/solib-search.c} | 27 +-
gdb/testsuite/gdb.base/solib-search.exp | 186 ++
.../gdb.base/solib-search.h} | 24 +-
.../shr2.c => gdb.dwarf2/implptrconst.c} | 20 +-
gdb/testsuite/gdb.dwarf2/implptrconst.exp | 103 +
gdb/testsuite/gdb.dwarf2/nostaticblock.exp | 59 +
gdb/testsuite/gdb.gdb/selftest.exp | 4 +
gdb/testsuite/gdb.linespec/linespec.exp | 4 +
gdb/testsuite/gdb.python/py-framefilter-gdb.py.in | 48 +
gdb/testsuite/gdb.python/py-framefilter-mi.c | 138 +
gdb/testsuite/gdb.python/py-framefilter-mi.exp | 179 ++
gdb/testsuite/gdb.python/py-framefilter.c | 155 +
gdb/testsuite/gdb.python/py-framefilter.exp | 239 ++
gdb/testsuite/gdb.python/py-framefilter.py | 117 +
gdb/testsuite/gdb.reverse/{shr2.c => shr.h} | 24 +-
gdb/testsuite/gdb.reverse/{shr2.c => shr1.c} | 20 +-
gdb/testsuite/gdb.reverse/shr2.c | 2 +
gdb/testsuite/gdb.reverse/solib-precsave.exp | 59 +-
gdb/testsuite/gdb.reverse/solib-reverse.c | 25 +-
gdb/testsuite/gdb.reverse/solib-reverse.exp | 59 +-
gdb/testsuite/gdb.threads/gcore-thread.exp | 33 +-
gdb/testsuite/gdb.threads/wp-replication.c | 163 ++
gdb/testsuite/gdb.threads/wp-replication.exp | 151 +
gdb/testsuite/gdb.trace/circ.exp | 363 ++-
.../{gdb.reverse/shr2.c => gdb.trace/qtro.c} | 25 +-
gdb/testsuite/gdb.trace/qtro.exp | 173 ++
gdb/testsuite/gdb.trace/status-stop.exp | 10 +-
gdb/testsuite/gdb.xml/maint_print_struct.exp | 35 +
gdb/testsuite/gdb.xml/maint_print_struct.xml | 26 +
gdb/testsuite/gdb.xml/tdesc-regs.exp | 3 +
gdb/testsuite/lib/dwarf.exp | 30 +-
gdb/testsuite/lib/gdb.exp | 43 +
gdb/tic6x-tdep.c | 2 +-
gdb/tic6x-tdep.h | 2 +-
gdb/tracepoint.c | 24 +-
gdb/tui/tui-io.c | 3 +-
gdb/ui-file.c | 3 +-
gdb/v850-tdep.c | 309 ++-
gdb/value.c | 12 +-
gdb/version.in | 2 +-
gdb/windows-nat.c | 11 +-
gdb/xcoffread.c | 90 +-
gdb/xcoffsolib.c | 182 --
gdb/xcoffsolib.h | 65 -
gdb/xml-support.c | 5 +-
gdb/xstormy16-tdep.c | 10 +-
gdb/xtensa-tdep.c | 10 +-
include/ChangeLog | 5 +
include/elf/ChangeLog | 6 +
include/elf/mips.h | 5 +-
include/elf/msp430.h | 47 +-
include/opcode/ChangeLog | 13 +
include/opcode/mips.h | 17 +-
include/opcode/msp430.h | 70 +-
libiberty/ChangeLog | 12 +
libiberty/hashtab.c | 24 +-
opcodes/ChangeLog | 27 +
opcodes/mips-dis.c | 19 +-
opcodes/mips-opc.c | 26 +-
opcodes/msp430-dis.c | 712 ++++-
opcodes/nios2-opc.c | 2 +-
opcodes/ppc-opc.c | 9 +-
sim/bfin/ChangeLog | 4 +
sim/bfin/configure | 3 +-
sim/common/ChangeLog | 6 +
sim/common/acinclude.m4 | 3 +-
sim/cr16/ChangeLog | 4 +
sim/cr16/configure | 3 +-
sim/cris/ChangeLog | 4 +
sim/cris/configure | 3 +-
sim/d10v/ChangeLog | 4 +
sim/d10v/configure | 3 +-
sim/igen/ChangeLog | 4 +
sim/igen/configure | 3 +-
sim/m68hc11/ChangeLog | 4 +
sim/m68hc11/configure | 3 +-
sim/mips/ChangeLog | 4 +
sim/mips/configure | 3 +-
sim/mn10300/ChangeLog | 4 +
sim/mn10300/configure | 3 +-
sim/ppc/ChangeLog | 10 +
sim/v850/ChangeLog | 4 +
sim/v850/configure | 3 +-
321 files changed, 18048 insertions(+), 5167 deletions(-)
create mode 100644 gdb/common/filestuff.c
create mode 100644 gdb/common/filestuff.h
delete mode 100644 gdb/config/rs6000/nm-rs6000.h
create mode 100644 gdb/features/library-list-aix.dtd
create mode 100644 gdb/features/nios2-cpu.xml
create mode 100644 gdb/features/nios2-linux.c
create mode 100644 gdb/features/nios2-linux.xml
create mode 100644 gdb/features/nios2.c
create mode 100644 gdb/features/nios2.xml
create mode 100644 gdb/gdbserver/linux-nios2-low.c
create mode 100644 gdb/nios2-linux-tdep.c
create mode 100644 gdb/nios2-tdep.c
create mode 100644 gdb/nios2-tdep.h
create mode 100644 gdb/python/lib/gdb/FrameDecorator.py
create mode 100644 gdb/python/lib/gdb/FrameIterator.py
create mode 100644 gdb/python/lib/gdb/command/frame_filters.py
create mode 100644 gdb/python/lib/gdb/frames.py
create mode 100644 gdb/python/py-framefilter.c
create mode 100644 gdb/regformats/nios2-linux.dat
create mode 100644 gdb/solib-aix.c
rename gdb/{sparc-sol-thread.c => solib-aix.h} (54%)
copy gdb/testsuite/{gdb.reverse/shr2.c => gdb.arch/arm-bl-branch-dest.c} (75%)
create mode 100644 gdb/testsuite/gdb.arch/arm-bl-branch-dest.exp
delete mode 100644 gdb/testsuite/gdb.arch/gcore.c
copy gdb/testsuite/{gdb.reverse/shr2.c => gdb.arch/i386-float.S} (61%)
create mode 100644 gdb/testsuite/gdb.arch/i386-float.exp
delete mode 100644 gdb/testsuite/gdb.arch/system-gcore.exp
copy gdb/testsuite/gdb.base/{catch-signal.c => solib-search-lib1.c} (54%)
copy gdb/testsuite/gdb.base/{catch-signal.c => solib-search-lib2.c} (54%)
copy gdb/testsuite/{gdb.reverse/shr2.c => gdb.base/solib-search.c} (68%)
create mode 100644 gdb/testsuite/gdb.base/solib-search.exp
copy gdb/{rs6000-tdep.h => testsuite/gdb.base/solib-search.h} (58%)
copy gdb/testsuite/{gdb.reverse/shr2.c => gdb.dwarf2/implptrconst.c} (75%)
create mode 100644 gdb/testsuite/gdb.dwarf2/implptrconst.exp
create mode 100644 gdb/testsuite/gdb.dwarf2/nostaticblock.exp
create mode 100644 gdb/testsuite/gdb.python/py-framefilter-gdb.py.in
create mode 100644 gdb/testsuite/gdb.python/py-framefilter-mi.c
create mode 100644 gdb/testsuite/gdb.python/py-framefilter-mi.exp
create mode 100644 gdb/testsuite/gdb.python/py-framefilter.c
create mode 100644 gdb/testsuite/gdb.python/py-framefilter.exp
create mode 100644 gdb/testsuite/gdb.python/py-framefilter.py
copy gdb/testsuite/gdb.reverse/{shr2.c => shr.h} (74%)
copy gdb/testsuite/gdb.reverse/{shr2.c => shr1.c} (75%)
create mode 100644 gdb/testsuite/gdb.threads/wp-replication.c
create mode 100644 gdb/testsuite/gdb.threads/wp-replication.exp
copy gdb/testsuite/{gdb.reverse/shr2.c => gdb.trace/qtro.c} (75%)
create mode 100644 gdb/testsuite/gdb.trace/qtro.exp
create mode 100644 gdb/testsuite/gdb.xml/maint_print_struct.exp
create mode 100644 gdb/testsuite/gdb.xml/maint_print_struct.xml
delete mode 100644 gdb/xcoffsolib.c
delete mode 100644 gdb/xcoffsolib.h
First 500 lines of diff:
diff --git a/COPYING.NEWLIB b/COPYING.NEWLIB
index 6849eb5..73379ff 100644
--- a/COPYING.NEWLIB
+++ b/COPYING.NEWLIB
@@ -894,3 +894,34 @@ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+(40) - Altera Corportion (nios2-* targets)
+
+Copyright (c) 2003 Altera Corporation
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+
+ o Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ o Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ o Neither the name of Altera Corporation nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY ALTERA CORPORATION, THE COPYRIGHT HOLDER,
+AND ITS CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
+THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
+TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
+USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/ChangeLog b/ChangeLog
index 07594a4..2d6d310 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
+
+ * COPYING.NEWLIB: Add Altera Corporation copyright.
+
+2013-04-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
+
+ * config.guess: Update from config repo.
+ * config.sub: Ditto.
+
+2013-04-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
+
+ * Makefile.def: Sync with GCC.
+ * Makefile.in: Regenerate.
+
+2013-04-22 Jan-Benedict Glaw <jbglaw@lug-owl.de>
+
+ * configure.ac: Sync with GCC.
+ * configure: Regenerate.
+
2013-03-22 Mike Frysinger <vapier@gentoo.org>
* src-release (VER): Change bfd/configure.in sed to use the new
diff --git a/Makefile.def b/Makefile.def
index 1af7460..90d9653 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -138,7 +138,7 @@ target_modules = { module= libtermcap; no_check=true;
missing=maintainer-clean; };
target_modules = { module= winsup; };
target_modules = { module= libgloss; no_check=true; };
-target_modules = { module= libffi; };
+target_modules = { module= libffi; no_install=true; };
target_modules = { module= libjava; raw_cxx=true;
extra_configure_flags="$(EXTRA_CONFIGARGS_LIBJAVA)"; };
target_modules = { module= zlib; };
diff --git a/Makefile.in b/Makefile.in
index 08049de..bfbaf03 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -38710,13 +38710,8 @@ maybe-install-target-libffi:
@if target-libffi
maybe-install-target-libffi: install-target-libffi
-install-target-libffi: installdirs
- @: $(MAKE); $(unstage)
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(NORMAL_TARGET_EXPORTS) \
- (cd $(TARGET_SUBDIR)/libffi && \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install)
+# Dummy target for uninstallable.
+install-target-libffi:
@endif target-libffi
@@ -38725,13 +38720,8 @@ maybe-install-strip-target-libffi:
@if target-libffi
maybe-install-strip-target-libffi: install-strip-target-libffi
-install-strip-target-libffi: installdirs
- @: $(MAKE); $(unstage)
- @r=`${PWD_COMMAND}`; export r; \
- s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
- $(NORMAL_TARGET_EXPORTS) \
- (cd $(TARGET_SUBDIR)/libffi && \
- $(MAKE) $(TARGET_FLAGS_TO_PASS) install-strip)
+# Dummy target for uninstallable.
+install-strip-target-libffi:
@endif target-libffi
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 22cf440..eb254b7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,160 @@
+2013-05-10 Joel Brobecker <brobecker@adacore.com>
+
+ * coffcode.h (styp_to_sec_flags) [RS6000COFF_C]: Add handling
+ of STYP_EXCEPT, STYP_LOADER and STYP_TYPCHK sections.
+
+2013-05-09 Joel Brobecker <brobecker@adacore.com>
+
+ * bfd.c (_bfd_default_error_handler): Replace use of putc
+ by fputc. Add comment explaining why.
+
+2013-05-09 Alan Modra <amodra@gmail.com>
+
+ * elflink.c (elf_link_add_object_symbols): Don't omit reading
+ of symbols when hashes already exist.
+
+2013-05-07 Will Newton <will.newton@linaro.org>
+
+ * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Add a
+ plt_header_size argument for ports where it differs from
+ plt_entry_size.
+ * elf-bfd.h: Likewise.
+ * elf32-i386.c: Pass plt_header_size to
+ _bfd_elf_allocate_ifunc_dyn_relocs.
+ * elf64-x86-64.c: Likewise.
+
+2013-05-07 Will Newton <will.newton@linaro.org>
+
+ * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Remove unused
+ function.
+ * elf-bfd.h: Likewise.
+
+2013-05-06 Paul Brook <paul@codesourcery.com>
+
+ * elf64-mips.c (elf_mips_gnu_pcrel32): New.
+ (bfd_elf64_bfd_reloc_type_lookup, bfd_elf64_bfd_reloc_name_lookup,
+ mips_elf64_rtype_to_howto): Handle R_MIPS_PC32.
+ * elfn32-mips.c (elf_mips_gnu_pcrel32): New.
+ (bfd_elfn32_bfd_reloc_type_lookup, bfd_elfn32_bfd_reloc_name_lookup,
+ mips_elfn32_rtype_to_howto): Handle R_MIPS_PC32.
+
+2013-05-06 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (opd_entry_value): Handle case where symbol
+ hashes are not available.
+
+2013-05-06 Alan Modra <amodra@gmail.com>
+
+ * elflink.c (elf_link_add_object_symbols): Don't save symbol
+ hashes around loading as-needed library. Zero them on allocation,
+ and restore to initial all-zero state if library not needed.
+ Arrange to reuse hashes if we load library again later.
+
+2013-05-04 Richard Sandiford <rdsandiford@googlemail.com>
+
+ * elf32-mips.c (elf_mips_copy_howto, elf_mips_jump_slot_howto):
+ Use _bfd_mips_elf_generic_reloc instead of bfd_elf_generic_reloc.
+ * elfn32-mips.c: Likewise.
+ * elf64-mips.c: Likewise.
+
+2013-05-02 Nick Clifton <nickc@redhat.com>
+
+ * archures.c: Add some more MSP430 machine numbers.
+ * config.bfd (msp430): Define targ_selvecs.
+ * configure.in: Add bfd_elf32_msp430_ti_vec.
+ * cpu-msp430.c: Add some more MSP430 machine numbers.
+ * elf32-msp430.c Add support for MSP430X relocations.
+ Add support for TI compiler generated relocations.
+ Add support for sym_diff relocations.
+ Add support for relaxing out of range short branches into long
+ branches.
+ Add support for MSP430 attribute section.
+ * reloc.c: Add MSP430X relocations.
+ * targets.c: Add bfd_elf32_msp430_ti_vec.
+ * bfd-in2.h: Regenerate.
+ * configure: Regenerate.
+ * libbfd.h: Regenerate.
+
+2013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * config.bfd: Replace alpha*-*-linuxecoff* pattern with
+ alpha*-*-linux*ecoff*.
+
+2013-04-30 Olaf Flebbe <o.flebbe@science-computing.de>
+
+ PR binutils/15417
+ * elflink.c (elf_link_add_object_symbols): Initialise 'idx' to
+ zero.
+
+2013-04-30 Alan Modra <amodra@gmail.com>
+
+ * elflink.c (bfd_elf_record_link_assignment): Dont make
+ STV_INTERNAL symbols STV_HIDDEN.
+
+2013-04-29 Nick Clifton <nickc@redhat.com>
+
+ * elflink.c (_bfd_elf_gc_mark_extra_sections): Remove mark from
+ fragmented .debug_line sections associated with unmarked code
+ sections.
+
+2013-04-29 Will Newton <will.newton@linaro.org>
+
+ * elf32-arm.c (elf32_arm_populate_plt_entry): Call
+ elf32_arm_add_dynreloc when emitting R_ARM_IRELATIVE relocs.
+
+2013-04-29 Will Newton <will.newton@linaro.org>
+
+ * elf64-aarch64.c (elf64_aarch64_check_relocs): Move relocation
+ error check up and add error message.
+
+2013-04-26 Will Newton <will.newton@linaro.org>
+
+ * elf64-aarch64.c (elf64_aarch64_check_relocs): Remove dead code.
+
+2013-04-25 Alan Modra <amodra@gmail.com>
+
+ * config.bfd: Add powerpc64le-linux.
+
+2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config.bfd (targ_selvecs): Add bfd_elf32_x86_64_vec for
+ x86_64-*-elf*.
+
+2013-04-24 Roland McGrath <mcgrathr@google.com>
+
+ * elf32-arm.c (elf32_arm_allocate_plt_entry): If HTAB->nacl_p,
+ allocate space for PLT header even if IS_IPLT_ENTRY.
+ (arm_nacl_put_plt0): New function, broken out of ...
+ (elf32_arm_finish_dynamic_sections): ... here. Call it.
+ If HTAB->nacl_p, set up the PLT header in .iplt too.
+ (elf32_arm_output_arch_local_syms): If HTAB->nacl_p, write
+ a mapping symbol for the start of .iplt too.
+
+2013-04-19 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
+
+ * ecoff.c (_bfd_ecoff_sizeof_headers): Cast the return value of
+ BFD_ALIGN to int.
+ * elf32-tic6x.c (elf32_tic6x_size_dynamic_sections): Remove unused
+ variables.
+ * elf32-v850.c (v850_elf_relax_section): Redefine the type of 'i'
+ to bfd_vma.
+ * vms-alpha.c (evax_bfd_print_etir): Initialize sec_len.
+
+2013-04-22 Alan Modra <amodra@gmail.com>
+
+ PR ld/15382
+ * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Don't multiply
+ sh_size or reloc_count adjustment by count.
+
+2013-04-22 Alan Modra <amodra@gmail.com>
+
+ * elf64-ppc.c (ppc64_elf_check_relocs): Don't call
+ create_linkage_sections here..
+ (ppc64_elf_init_stub_bfd): ..do so here. Return status.
+ (create_linkage_sections): Move earlier in file.
+ (ppc64_elf_setup_section_lists): Remove now useless htab->brlt test.
+ * elf64-ppc.h (ppc64_elf_init_stub_bfd): Update proto.
+
2013-04-19 Nick Clifton <nickc@redhat.com>
PR binutils/15356
diff --git a/bfd/archures.c b/bfd/archures.c
index 0be72da..f7cef8b 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -1,7 +1,5 @@
/* BFD library support routines for architectures.
- Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
- 2012, 2013 Free Software Foundation, Inc.
+ Copyright 1990-2013 Free Software Foundation, Inc.
Hacked by John Gilmore and Steve Chamberlain of Cygnus Support.
This file is part of BFD, the Binary File Descriptor library.
@@ -437,7 +435,12 @@ DESCRIPTION
.#define bfd_mach_msp14 14
.#define bfd_mach_msp15 15
.#define bfd_mach_msp16 16
+.#define bfd_mach_msp20 20
.#define bfd_mach_msp21 21
+.#define bfd_mach_msp22 22
+.#define bfd_mach_msp23 23
+.#define bfd_mach_msp24 24
+.#define bfd_mach_msp26 26
.#define bfd_mach_msp31 31
.#define bfd_mach_msp32 32
.#define bfd_mach_msp33 33
@@ -445,6 +448,10 @@ DESCRIPTION
.#define bfd_mach_msp42 42
.#define bfd_mach_msp43 43
.#define bfd_mach_msp44 44
+.#define bfd_mach_msp430x 45
+.#define bfd_mach_msp46 46
+.#define bfd_mach_msp47 47
+.#define bfd_mach_msp54 54
. bfd_arch_xc16x, {* Infineon's XC16X Series. *}
.#define bfd_mach_xc16x 1
.#define bfd_mach_xc16xl 2
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 5c4e9c4..0050f46 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -2170,7 +2170,12 @@ enum bfd_architecture
#define bfd_mach_msp14 14
#define bfd_mach_msp15 15
#define bfd_mach_msp16 16
+#define bfd_mach_msp20 20
#define bfd_mach_msp21 21
+#define bfd_mach_msp22 22
+#define bfd_mach_msp23 23
+#define bfd_mach_msp24 24
+#define bfd_mach_msp26 26
#define bfd_mach_msp31 31
#define bfd_mach_msp32 32
#define bfd_mach_msp33 33
@@ -2178,6 +2183,10 @@ enum bfd_architecture
#define bfd_mach_msp42 42
#define bfd_mach_msp43 43
#define bfd_mach_msp44 44
+#define bfd_mach_msp430x 45
+#define bfd_mach_msp46 46
+#define bfd_mach_msp47 47
+#define bfd_mach_msp54 54
bfd_arch_xc16x, /* Infineon's XC16X Series. */
#define bfd_mach_xc16x 1
#define bfd_mach_xc16xl 2
@@ -4918,6 +4927,21 @@ a matching LO8XG part. */
BFD_RELOC_MSP430_16_BYTE,
BFD_RELOC_MSP430_2X_PCREL,
BFD_RELOC_MSP430_RL_PCREL,
+ BFD_RELOC_MSP430_ABS8,
+ BFD_RELOC_MSP430X_PCR20_EXT_SRC,
+ BFD_RELOC_MSP430X_PCR20_EXT_DST,
+ BFD_RELOC_MSP430X_PCR20_EXT_ODST,
+ BFD_RELOC_MSP430X_ABS20_EXT_SRC,
+ BFD_RELOC_MSP430X_ABS20_EXT_DST,
+ BFD_RELOC_MSP430X_ABS20_EXT_ODST,
+ BFD_RELOC_MSP430X_ABS20_ADR_SRC,
+ BFD_RELOC_MSP430X_ABS20_ADR_DST,
+ BFD_RELOC_MSP430X_PCR16,
+ BFD_RELOC_MSP430X_PCR20_CALL,
+ BFD_RELOC_MSP430X_ABS16,
+ BFD_RELOC_MSP430_ABS_HI16,
+ BFD_RELOC_MSP430_PREL31,
+ BFD_RELOC_MSP430_SYM_DIFF,
/* Relocations used by the Altera Nios II core. */
BFD_RELOC_NIOS2_S16,
diff --git a/bfd/bfd.c b/bfd/bfd.c
index 10bc319..8d0580c 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -733,7 +733,9 @@ _bfd_default_error_handler (const char *fmt, ...)
vfprintf (stderr, new_fmt, ap);
va_end (ap);
- putc ('\n', stderr);
+ /* On AIX, putc is implemented as a macro that triggers a -Wunused-value
+ warning, so use the fputc function to avoid it. */
+ fputc ('\n', stderr);
fflush (stderr);
}
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 9d9c992..2a1a172 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -795,6 +795,12 @@ styp_to_sec_flags (bfd *abfd ATTRIBUTE_UNUSED,
else if (styp_flags & STYP_PAD)
sec_flags = 0;
#ifdef RS6000COFF_C
+ else if (styp_flags & STYP_EXCEPT)
+ sec_flags |= SEC_LOAD;
+ else if (styp_flags & STYP_LOADER)
+ sec_flags |= SEC_LOAD;
+ else if (styp_flags & STYP_TYPCHK)
+ sec_flags |= SEC_LOAD;
else if (styp_flags & STYP_DWARF)
sec_flags |= SEC_DEBUGGING;
#endif
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 10820e2..ebc9d40 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -202,7 +202,7 @@ case "${targ}" in
targ_selvecs=nlm32_alpha_vec
want64=true
;;
- alpha*-*-linuxecoff*)
+ alpha*-*-linux*ecoff*)
targ_defvec=ecoffalpha_little_vec
targ_selvecs=bfd_elf64_alpha_vec
want64=true
@@ -644,7 +644,7 @@ case "${targ}" in
;;
x86_64-*-elf*)
targ_defvec=bfd_elf64_x86_64_vec
- targ_selvecs="bfd_elf32_i386_vec bfd_elf64_l1om_vec bfd_elf64_k1om_vec i386coff_vec"
+ targ_selvecs="bfd_elf32_i386_vec bfd_elf32_x86_64_vec bfd_elf64_l1om_vec bfd_elf64_k1om_vec"
want64=true
;;
x86_64-*-dragonfly*)
@@ -1134,6 +1134,7 @@ case "${targ}" in
msp430-*-*)
targ_defvec=bfd_elf32_msp430_vec
+ targ_selvecs=bfd_elf32_msp430_ti_vec
;;
ns32k-pc532-mach* | ns32k-pc532-ux*)
@@ -1242,7 +1243,8 @@ case "${targ}" in
targ_selvecs="bfd_elf64_powerpcle_vec bfd_elf32_powerpc_vec bfd_elf32_powerpcle_vec rs6000coff_vec rs6000coff64_vec aix5coff64_vec"
want64=true
;;
- powerpc64le-*-elf* | powerpcle-*-elf64*)
+ powerpc64le-*-elf* | powerpcle-*-elf64* | powerpc64le-*-linux* | \
+ powerpc64le-*-*bsd*)
targ_defvec=bfd_elf64_powerpcle_vec
targ_selvecs="bfd_elf64_powerpc_vec bfd_elf32_powerpcle_vec bfd_elf32_powerpc_vec rs6000coff_vec rs6000coff64_vec aix5coff64_vec"
want64=true
diff --git a/bfd/configure b/bfd/configure
index 24f6fd3..5fc08e4 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -15292,6 +15292,7 @@ do
bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
+ bfd_elf32_msp430_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf32_ntradbigmips_vec | bfd_elf32_ntradbigmips_freebsd_vec)
diff --git a/bfd/configure.in b/bfd/configure.in
index d9bef83..befcf27 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -1,6 +1,6 @@
dnl Process this file with autoconf to produce a configure script.
dnl
-dnl Copyright 2012 Free Software Foundation
+dnl Copyright 2012-2013 Free Software Foundation
dnl
dnl This file is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
@@ -789,6 +789,7 @@ do
bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
+ bfd_elf32_msp430_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
bfd_elf32_ntradbigmips_vec | bfd_elf32_ntradbigmips_freebsd_vec)
diff --git a/bfd/cpu-msp430.c b/bfd/cpu-msp430.c
index 09c0e54..73b6e66 100644
--- a/bfd/cpu-msp430.c
+++ b/bfd/cpu-msp430.c
@@ -1,6 +1,5 @@
/* BFD library support routines for the MSP architecture.
- Copyright (C) 2002, 2003, 2005, 2007, 2012
- Free Software Foundation, Inc.
+ Copyright (C) 2002-2013 Free Software Foundation, Inc.
Contributed by Dmitry Diky <diwil@mail.ru>
This file is part of BFD, the Binary File Descriptor library.
@@ -82,29 +81,56 @@ static const bfd_arch_info_type arch_info_struct[] =
/* msp430x16x. */
N (16, bfd_mach_msp16, "msp:16", FALSE, & arch_info_struct[7]),
+ /* msp430x20x. */
+ N (16, bfd_mach_msp20, "msp:20", FALSE, & arch_info_struct[8]),
+
/* msp430x21x. */
- N (16, bfd_mach_msp21, "msp:21", FALSE, & arch_info_struct[8]),
+ N (16, bfd_mach_msp21, "msp:21", FALSE, & arch_info_struct[9]),
+
+ /* msp430x22x. */
+ N (16, bfd_mach_msp22, "msp:22", FALSE, & arch_info_struct[10]),
+
+ /* msp430x23x. */
+ N (16, bfd_mach_msp23, "msp:23", FALSE, & arch_info_struct[11]),
+
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-05-21 13:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-21 13:58 [SCM] tromey/python-checker: fix gdbpy_selected_inferior tromey
-- strict thread matches above, loose matches on Subject: below --
2013-05-10 18:29 tromey
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).