From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11896 invoked by alias); 10 May 2013 18:29:21 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 11873 invoked by uid 306); 10 May 2013 18:29:21 -0000 Date: Fri, 10 May 2013 18:29:00 -0000 Message-ID: <20130510182919.11553.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] tromey/python-checker: fix gdbpy_selected_inferior X-Git-Refname: refs/heads/tromey/python-checker X-Git-Reftype: branch X-Git-Oldrev: 3174923353fd4cb820e8d7e5fdef43ff99b7f0ed X-Git-Newrev: c2b0168f76566a7057c4e9515411b21333c2cd70 X-SW-Source: 2013-q2/txt/msg00065.txt.bz2 List-Id: 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 Date: Fri Feb 22 12:03:50 2013 -0700 add README.archer commit f9faafae8750b071370766a40e9e1204d667285c Author: Tom Tromey Date: Fri May 10 17:00:59 2013 +0000 2013-05-10 Joel Brobecker Tom Tromey * 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 Date: Fri May 10 16:10:39 2013 +0000 gdb Freddie Chopin 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 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 * remote.c (_initialize_remote): Fix spelling of qXfer:traceframe-info:read packet in packet config command. commit 2b6f779f35f31109cd1fa7e847153d463f1b21ba Author: Pedro Alves 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 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 PR remote/15455 * gdb.trace/qtro.c: New file. * gdb.trace/qtro.exp: New file. commit 4ab6caae50b7dd03fdd35f9b63f74323098d1d1a Author: Joel Brobecker 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 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 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 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 Date: Fri May 10 10:26:01 2013 +0000 2013-05-10 Phil Muldoon * 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 * 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 * 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 + + * COPYING.NEWLIB: Add Altera Corporation copyright. + +2013-04-29 Jan-Benedict Glaw + + * config.guess: Update from config repo. + * config.sub: Ditto. + +2013-04-22 Jan-Benedict Glaw + + * Makefile.def: Sync with GCC. + * Makefile.in: Regenerate. + +2013-04-22 Jan-Benedict Glaw + + * configure.ac: Sync with GCC. + * configure: Regenerate. + 2013-03-22 Mike Frysinger * 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 + + * coffcode.h (styp_to_sec_flags) [RS6000COFF_C]: Add handling + of STYP_EXCEPT, STYP_LOADER and STYP_TYPCHK sections. + +2013-05-09 Joel Brobecker + + * bfd.c (_bfd_default_error_handler): Replace use of putc + by fputc. Add comment explaining why. + +2013-05-09 Alan Modra + + * elflink.c (elf_link_add_object_symbols): Don't omit reading + of symbols when hashes already exist. + +2013-05-07 Will Newton + + * 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 + + * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Remove unused + function. + * elf-bfd.h: Likewise. + +2013-05-06 Paul Brook + + * 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 + + * elf64-ppc.c (opd_entry_value): Handle case where symbol + hashes are not available. + +2013-05-06 Alan Modra + + * 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 + + * 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 + + * 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 + + * config.bfd: Replace alpha*-*-linuxecoff* pattern with + alpha*-*-linux*ecoff*. + +2013-04-30 Olaf Flebbe + + PR binutils/15417 + * elflink.c (elf_link_add_object_symbols): Initialise 'idx' to + zero. + +2013-04-30 Alan Modra + + * elflink.c (bfd_elf_record_link_assignment): Dont make + STV_INTERNAL symbols STV_HIDDEN. + +2013-04-29 Nick Clifton + + * 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 + + * elf32-arm.c (elf32_arm_populate_plt_entry): Call + elf32_arm_add_dynreloc when emitting R_ARM_IRELATIVE relocs. + +2013-04-29 Will Newton + + * elf64-aarch64.c (elf64_aarch64_check_relocs): Move relocation + error check up and add error message. + +2013-04-26 Will Newton + + * elf64-aarch64.c (elf64_aarch64_check_relocs): Remove dead code. + +2013-04-25 Alan Modra + + * config.bfd: Add powerpc64le-linux. + +2013-04-24 H.J. Lu + + * config.bfd (targ_selvecs): Add bfd_elf32_x86_64_vec for + x86_64-*-elf*. + +2013-04-24 Roland McGrath + + * 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 + + * 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 + + 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 + + * 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 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 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.