From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15587 invoked by alias); 4 Oct 2011 17:22:26 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 15330 invoked by uid 306); 4 Oct 2011 17:22:19 -0000 Date: Tue, 04 Oct 2011 17:22:00 -0000 Message-ID: <20111004172218.15312.qmail@sourceware.org> From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-tromey-ambiguous-linespec: Merge remote-tracking branch 'gdb/master' into duplicate-feature-2 X-Git-Refname: refs/heads/archer-tromey-ambiguous-linespec X-Git-Reftype: branch X-Git-Oldrev: ea73e687deefc54039bafb3100facc779cbafd48 X-Git-Newrev: 119571bd058c06566421918c88f4be4531bad0e7 X-SW-Source: 2011-q4/txt/msg00001.txt.bz2 List-Id: The branch, archer-tromey-ambiguous-linespec has been updated via 119571bd058c06566421918c88f4be4531bad0e7 (commit) via 6080d11494b683ff7c7aeb7141751110fd966187 (commit) via b29551ecf30b9b0c6a31bb40f1315ff00edeae5a (commit) via 2a74ace2a0e445b6a9e161bf5b010103a549fe2a (commit) via f63bc7184c640063714e2a8a1bace3fad470f37a (commit) via c9d4d8d5e96cdd8b82c33e772e6c75d9c899967a (commit) via a42c9bff94ac91da99dc76d46a84a3c4aa1c29bb (commit) via 65da2b735484ecfee87ffa5352b48d0444b362be (commit) via 91914816afba4b07adf3e8610c042028f55157dd (commit) via 361c5ac7a1fd06cd86c4b20fcd9d77ed713e84dc (commit) via 665b0ae31cfd5ef41dcb082dea14055e881d17bc (commit) via e5e9d08c064eb7d7358c3de2b2bfee3527dc55be (commit) via 439eaff911867f62533c3a018d2f8fb766f1d93a (commit) via 3608e83c5fe0ac956718d4017fc93d7aed9333b6 (commit) via e93f4ae6aa29887e022cf389dcbf1440b457e67b (commit) via 794929bdced64854d1c9f861f4894bd76f93e2a9 (commit) via 7a508915a1a6d978be80db3c8183a7e090f53767 (commit) via 5e24e7d92e5ce021c774520a19edd1752d646cb5 (commit) via fe7fbf3b21ae5f37f510d3a066c9c0f15fc863ca (commit) via 888df6392fb589da0804cbfefd068240dcf03e94 (commit) via 929eff21af3724aa656c8b022c12158881a99b12 (commit) via cacbc8340a3456a69666cd5c6af31772896b048a (commit) via 8c2e9af99137e1cc425959c267876cf0111d16b8 (commit) via 7c4093cd024c5a59d8176793a0e64335ce9abc53 (commit) via e40f893a301ec70986722c23b407aa32c9805412 (commit) via 3ed81300f1823dbb76f03dded62e7623be7635fc (commit) via 60a154696d52a1a493bb9f7dca649359ae1ff056 (commit) via 8d343b233a9a6dcae7ea5a8fb79c8d9e4db80cb9 (commit) via 2aea7997d9cc449422c78d7b451ce2587fcbe062 (commit) via df69f2537c2478706c9bed64df2c39618835b67a (commit) via 4170953e718f82e490bd91e9d63482751dd3f138 (commit) via 77ad24042504627c2c9a49eae86fef3045591689 (commit) via b81337fed4b93835da4074f86ca963db83568569 (commit) via a04698b43600530797f3f3fbd740bfb60e944ecc (commit) via 720d970a5f7af4ba3f9f3ef8519e4f1303bfba7e (commit) via b7e62eefc8a55361eb5f133a2c004cd9b53022fc (commit) via 11374b510239e8fc8a1e9e1014482b84f45925a9 (commit) via 590bd09be7beaf4f7fcbeeef4b12625a14df74f8 (commit) via c3adc0af22359c617b6f2550d628a4d15762959a (commit) via c89f67a886ad68ee49db73882fc87ff7bb24691b (commit) via c952ac3470ee0985837886e32ccaf2ac5bc5ff69 (commit) via d7dea6c5cb0af9b2fa2fbe50341eac8bb1a31e74 (commit) via 08be60b1c2062e62cbeec5293f776064f1087101 (commit) via 62f1230c92f4a5c10dcdeb8ba902e8a93c27094e (commit) via 5609d923ea12413baece6115b0d099e7a2a2c1fc (commit) via 02fd7aa6950726ebf181edf6804d61c96eb3640b (commit) via d8d587a112bd89794551db2548f59996a0d43dfc (commit) via 288eb9a9f8fc4d75476e219ab3830722fddef194 (commit) via 6e282f742177e31ad50d6179ad101317cf9c3e5a (commit) via 2e12e3321a50cdd923b4b4e2da678d6a02823ba7 (commit) via b57c50b3d2c4da9c12c2954e673460d03b639d5f (commit) via d4871699341ae02fd1092be3ca0c84c0d479445e (commit) via 63dd89fd4bfcdbbd875dfd80ff4bae89b6160e79 (commit) via 5f141148949a9cae831bf11ea7586d82b13296f7 (commit) via 0a9ba7b66bcfe8436005915ad111138b121b12ca (commit) via bf103c9b24ca19d3a924dde07cc7543642109dc3 (commit) via f48d34f602cc6c6f84537cae87103dffb5f1672b (commit) via 4e1931f1dbf7656af13336ddf03c36c2f526ad50 (commit) via a9363afb96819f8767c51b6bb4fa05f9b0ff965b (commit) via ed2de1992a04fca8ad02d50ef72c1966a80b0013 (commit) via 0b248999e91cb67c9736e47d129e9f1b57e7c034 (commit) via 78571c0d1bd3dc2f62a7d4863fb561634ed5dc23 (commit) via f7b0a07b2cb854ea5d188a548a2fab3880cf6193 (commit) via a241a5aac63217dea24f79fd8c65adb5eadf092d (commit) via a5ca04c70c1c8656686f00ef95cd78fef2573c0d (commit) via 748be735e97e9639cad37e5a817df50d6932ab86 (commit) via 04b16148d032c27c7c01ba41ee21a125b008e806 (commit) via 60d38c725cfd9c9bc8a557d8a1aa7bf4afabcab0 (commit) via fc6f0c054beadce0ab0819d84b45337187010cad (commit) via 3926c6165da5176f3cac5fa3b94291896cb1599d (commit) via 6aa68330e61f155f7b4f92f8124a303e015eb465 (commit) via 65f3eb3e7fd442f7b932d9e0187eb17cff756c00 (commit) via 7ebecdc022207ab3c5bc9474469274a82dc162a5 (commit) via 02ab174244b595484ea05d1aaf0ca9a46466cfe5 (commit) via 27188e81fa8f01c8b1f6ab3502c470096c45bd1c (commit) via 9c5120013daab0e197038f73788ad36d81bdd65c (commit) via 42b0a89ba60936910216f803670c75a3585fcc66 (commit) via a3086f1764d548cc8e727be83799e51097beaf54 (commit) via a88c782ccab99eb0f04159ec987b4d4bd72a384f (commit) via 3a63cc0973619425dc4abe8350296166fa05a63c (commit) via 0e323b8f4b078a2fc8832b488393b7b9dc319741 (commit) via bf6eee817b272214a34b857e71deddfe3af13105 (commit) via fe6432e6dfe4ee5694075a3555241db962a4e694 (commit) via f3e41cf293b2081d5bb0dfbd27ed83640d235e9b (commit) via 46a9c49fec086ccd462270aae1c0f3d3ed3dd69e (commit) via 82524a05c7622782911b0eb88cf83cb198f1e27f (commit) via 395baf139e133ede7f3843d2500024171e12364a (commit) via 15b775d3fe81611d5b635b8ebedeec91e9117f4d (commit) via 5a69c603c21e67fcf3e08b7e13fd14c1d675b11d (commit) via f5f1d0779ee329a89fd237e4ba1a88081dca603e (commit) via 3c0bdf709f6d676fc135f3d48c9407f3e1b46d4a (commit) via f750e1f08b5ed753ac455d20b20c76048082dd9e (commit) via 81216376a6f3d93bf4542bbaf96bf8336a4d2dfa (commit) via 6df333da8a43ca1c29df254034a423c81b4c1b10 (commit) via abea3d89c115a043320a6cf9a880f11cc6662402 (commit) via d13df52f8ca412198406349b3489dc538aade6c7 (commit) via 877a367fc8dcb2eb086c7887a9a35c23a039870e (commit) via ba9841d9df87bf928d1a3bc278328f2bb333dca3 (commit) via eb978f4d8b74c5f5d5987f32f3b4b35471804e24 (commit) via 0875b2082ba13b8672f7e29018f6e98e864e8d65 (commit) via 0ff7274b81fedd9ab8900767e5ec7584ce435242 (commit) via 1388fdd805d38e48b54fa87cf1218658ba7ef932 (commit) via 039d4214f0b345c748a79caeca21e71207f1e3eb (commit) via d50bc29aa4cec2ce1f2ba16fc3d2b4469629f975 (commit) via 8103104335131f63c61214764516157ed7d2698e (commit) via 330493017870f461331dc16ad19fb4dc6f004c69 (commit) via 4dcb3c2cee03fab4e63d6a943c5df4aa3150b12f (commit) via 22066972d1da5ebb94948e44fdbe44647d0c5dc3 (commit) via 511dce04a7b1f41962bc3e8ccbba75ed47e96b02 (commit) via 9089501591dfb8fe952466054790a36bba4dc1c0 (commit) via 5fdb1400efa86f952c80fd6bcb678c7434a7349f (commit) via 163218763abc26c11655c823fef7557d343281f8 (commit) via a838b3885e67f64b6fda52b948972abf6d13edcb (commit) via 1583d192891eed8bc0b127176e085364448d4b07 (commit) via 49ec5fb81eb03779c92041cb3128df8411f773e3 (commit) via 80392e4459e1677e4caf78a42bc907f0af233d9b (commit) via b7ef9704fc8f39b43dce5bed2555741aecdcbb1a (commit) via 7415a28ea07963b683264ad1e077bd3e51418247 (commit) via 935f8bbb0ed844002c96c19bc6c15de27b7cda57 (commit) via efd1cf697e7d4599a58c337caf34ebd265420537 (commit) via 8ba26228b6a1443531474f5dff59866d0e6c4fb0 (commit) via 85e9d04ff7d889feb8e4d6fe0fdf1f288154d8f5 (commit) via 7d7435d975525baa58c42e6678cbdf5711feae47 (commit) via 5ebee2f673580902cc4dff58fff9ee50cf0a2429 (commit) via 975b6def37ed46afad7ec2762c7c59785c121ec5 (commit) via 43ab025f3e1465dd4e77ae133de3b9735310989b (commit) via 7708492d5503abdc506e0ea77edab578c4b5c7b3 (commit) via 5d9ec63c88c807aebf9d0b6ac83872b38139d762 (commit) via 0dbbfd10e6b5ed133ad20dd7cd4771da6bed3f8a (commit) via 576c57b99b9420d7ce9af2f74507e22ecb07455e (commit) via bb10f67c6eaf80a68aac0f98c7d90fdae11eab32 (commit) via 0a39680f90f2b5df8f434616854d2254f47804a7 (commit) via b8b72542b2b0a5f1bdfdd1179ba1e80fa35db563 (commit) via a38d5512f8e3a15d03384106c98da13dab5c469c (commit) via 794203316b664e350669f7866d21547fd33d9b12 (commit) via 78353e0505896285ea08ec82eb6f5d46941a27cc (commit) via 23d635d8628692aff08a173682cc10d74bf58429 (commit) via aac263605bbf0e32be09831b20cb10187df4be94 (commit) via 17bdafbc84cbd5d4a7ab004086f3380355bd11e8 (commit) via be6ea846156ab73309712e82a2ac1db1f4536107 (commit) via 6c1170160cfeff5fba7d2f6d0e6ae7e1b3a287bd (commit) via 69f491e9c91f9e08833b0140710088e7c76bcb22 (commit) via a50e608bee1643ed89dfa05d9401fd87fcebf412 (commit) via e8717f1616f946e39959b3fac661f9a20894f0d2 (commit) via a56017290cf33626526eb28389366b577a064c4a (commit) via bcf560ba8430e91452ed433d5d540f3d7a307ce1 (commit) via d89ba70b241a8b8576ba7bdf211e368ddbe2a606 (commit) via b8a2b7946102a7cb9baaea0432990e5a1321a677 (commit) via 26b72bde435c04ac8480b7cbebd197d40615628d (commit) via acd27888c005c45b06bd65aa2b53b91aee5ee42c (commit) via db70590359afdaafa4809f241878c74e89d2edb7 (commit) via 5faec932ca3a1a153d34c0afbf0faceee1e0bfc0 (commit) via 09779e1e305fc14262432ecc7574c20e694c7bba (commit) via da4f6cd39f75215fe88c0a158badfdb443012242 (commit) via b1acabc1fdf460144494cd48a9675971aa9c9d36 (commit) via 4de169112e6cc0420530e63822ec66b22718e616 (commit) via 54016887134acb8c82eec9cbe4a0b0840ca2e070 (commit) via b9b6b2ddac134d87204353bf58bd55838c311949 (commit) via b8f1c28d7973827de8c5ff703758d0830bdcf183 (commit) via 29b937e31d78b4a9d036fe425b0ee4e3ab1a9609 (commit) via fdb1dad9291bd20666ec8938137c3e9852328f37 (commit) via 07f24d5ce79067e7753199cd2fabcd97d60a3e69 (commit) via 4d0765fe27f5de1ff94db3c76c0386821ae13b7f (commit) via 99c4255f19047c004b50c2672353df7a1ed98389 (commit) via 1c7ceb7dc272ef5dc37e759bda204b7fa52982d4 (commit) via 341eac093386bf8a9fc40371f1d96a5c6f244024 (commit) via 7abfa7a472e202528e07b9b8d0c89920a8813241 (commit) via 8616609ce4b0e9b0e3f0651d01e3ee4507d021af (commit) via 81554f3fd59ad04ac0b3fa3295a7e35ac11fe6f4 (commit) via 3d0a5ee6551a1f2036a574f7802c1abc47eada41 (commit) via 32c2066039dab949ffee3f229caae170c283b422 (commit) via 997e2329080d16647f6a466b2dce1657ce4d2183 (commit) via 17174e6aac2869b41398d66e542b2e924396eecc (commit) via ac07666749fcad712775b5a64a4c58abb3af15ad (commit) via c4eb8a1ab95ffd9876cc11744daf433bd946194c (commit) via b0106514bfeb2e4d3b24e923aba92ef4c635a179 (commit) via e53e633a3f09f7fba923872f536a4f4276d6ea2c (commit) via 8ac81feb44e603695f2c04f243453b159382dcf4 (commit) via 44a017f92479a01b43ed9012b36ffbbf72b242b3 (commit) via ea9812279fe436be9a010d07ef1dbe465199a3d7 (commit) via 223b94cd31189790fd589618830f9d7a987f20a2 (commit) via 0d0c9d4edec15d0f470bf193d541444c00d6bb52 (commit) via e6297a6a3a9bbf2b4c4f38c0f6590fcf3551719a (commit) via 09ddc54333cdbc2f695fd83cbf091a7d5a1c3604 (commit) via 1ba50975b735290741c573d101b3339407ccc84d (commit) via 9d1f51be0b0f3c47098cc061dd29c1ed29cd04ed (commit) via 93c0714bf2a8759cdd916d368488b6352949d811 (commit) via f9b9164d0f132935187c5130caa1378df6675f24 (commit) via 462962a5ad66d2d45c54f3ced634074f7cb5d3f8 (commit) via 0e9c90dbc769e61035874cee40cf6a87ae576cc3 (commit) via 973529616bdbecd60c9a74b1235e93bd98cd35c9 (commit) via ddb99de5e2539a85b005852c119ecb5a2de341d1 (commit) via a909855032cbb0408a2666834f2899fce22b6731 (commit) via 8f783e789fc7b8586ceea0aa739aafc53db77a79 (commit) via 9126e263107c91d5dd8aad079d78dcb2f2de1eeb (commit) via 6d2b337c616b606a8abe20dbdd96b199d1ea9d65 (commit) via 13f3861ce8c3d00073cfb10550e58103a5de08d9 (commit) via 18226da50927085daf9783c9af3b891347d72ed9 (commit) via fca274d0bfc5590a1bd33f2655fa5cdfd136998c (commit) via 16369dbf89c7e65c48f70c35bbacb7dc11488781 (commit) via 116949a3172eb5fd7f7e32fef3a6f5ac08788c9e (commit) via 4b0ad5d3fb4b15bbc8a951aa8df8c36fd868c87b (commit) via 0a5f727ba1d6334dd9548284ccbfc8fe7d4e9c47 (commit) via 1e00603daae80372f25992191b3e1c9cc5c6af2e (commit) via d7d8c63c1f96e5b47ea7968c509e2c74fc8bb207 (commit) via d5c33f3d943ad3f57a8f0e97f05477e7abca1db3 (commit) via 3853dac583b9ce91ce23347ee39483747e261f65 (commit) via 933c88fcd452923382e24d46b390d03459b39fa6 (commit) via c300d5222f55a8c132140d776f3fe72ffabc13a6 (commit) via 929134dae8eb92b6b901a4ec3931d6708dee6bc7 (commit) via 3c68476e500822f8e71fc62d428045bbe7eddda1 (commit) via 6d634ce74058b33fa847e9a99db4e88e2342d127 (commit) from ea73e687deefc54039bafb3100facc779cbafd48 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 119571bd058c06566421918c88f4be4531bad0e7 Merge: ea73e68 6080d11 Author: Tom Tromey Date: Tue Oct 4 09:30:02 2011 -0600 Merge remote-tracking branch 'gdb/master' into duplicate-feature-2 commit 6080d11494b683ff7c7aeb7141751110fd966187 Author: kpouget Date: Tue Oct 4 08:04:08 2011 +0000 2011-10-04 Kevin Pouget PR python/12691: Add the inferior to Python exited event * python/py-exitedevent.c (create_exited_event_object): Add inferior to exited_event. * python/py-event.h (emit_exited_event): Likewise * python/-inferior.c (python_inferior_exit): Likewise 2011-10-04 Kevin Pouget PR python/12691: Add the inferior to Python exited event * gdb.python/py-events.exp: Test the inferior attribute of exited event with a fork. * gdb.python/py-events.py: Print inferior number on exit. * gdb.python/py-events.c: Fork the inferior. 2011-10-04 Kevin Pouget PR python/12691: Add the inferior to Python exited event * gdb.texinfo (Events In Python): Describe exited inferior attribute. commit b29551ecf30b9b0c6a31bb40f1315ff00edeae5a Author: gdbadmin Date: Tue Oct 4 00:00:33 2011 +0000 *** empty log message *** commit 2a74ace2a0e445b6a9e161bf5b010103a549fe2a Author: Alan Modra Date: Mon Oct 3 23:00:06 2011 +0000 daily update commit f63bc7184c640063714e2a8a1bace3fad470f37a Author: Joel Brobecker Date: Mon Oct 3 21:39:03 2011 +0000 [doco] rephrase `presence of' with `support for'. gdb/doc/ChangeLog: * gdb.texinfo (GDB/MI Miscellaneous Commands): Minor rephasing. commit c9d4d8d5e96cdd8b82c33e772e6c75d9c899967a Author: Joel Brobecker Date: Mon Oct 3 21:38:51 2011 +0000 [Ada/doco] Document the new -ada-task-info GDB/MI command. gdb/doc/ChangeLog: * gdb.texinfo (GDB/MI Ada Tasking Commands): New node. (GDB/MI Miscellaneous Commands): Add `ada-task-info' as possible feature returned by the `-list-features' command. commit a42c9bff94ac91da99dc76d46a84a3c4aa1c29bb Author: Joel Brobecker Date: Mon Oct 3 21:38:39 2011 +0000 [Ada] Add field "thread-id" in -ada-task-info output This patch enhances the -ada-task-info command, adding a new field called "thread-id" in the command output. This field provides the ID of the task's corresponding thread (if that information could not be determined, the field is omitted). This field is useful in the context of GDB/MI users, because it allows a quick translation from Ada task to thread, and thus easy use of all the commands that take a --thread argument. gdb/ChangeLog: * ada-tasks.c (print_ada_task_info): Add "thread-id" field in output of -ada-task-info GDB/MI command. commit 65da2b735484ecfee87ffa5352b48d0444b362be Author: Joel Brobecker Date: Mon Oct 3 21:38:30 2011 +0000 [Ada] New GDB/MI command: -ada-tasks-info This patch introduces a new GDB/MI command: -ada-tasks-info, which is meant to be the MI equivalent of the CLI `info tasks' command. This new command returns an array, with each row corresponding to one task. For now, the columns of the array corresponds to the columns displayed in the CLI output. gdb/ChangeLog: * ada-lang.h (struct inferior): Declare. (print_ada_task_info): Add declaration. * ada-tasks.c (print_ada_task_info): Make non-static. * mi/mi-cmds.c (mi_cmds): Add "ada-task-info". * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration. * mi/mi-main.c: #include "ada-lang.h". (mi_cmd_list_features): Add "ada-task-info" to the list of supported features. (mi_cmd_ada_task_info): New function. commit 91914816afba4b07adf3e8610c042028f55157dd Author: Joel Brobecker Date: Mon Oct 3 20:46:18 2011 +0000 Crash sourcing Python script on Windows gdb/ChangeLog: * python/python.c (python_run_simple_file): New function. (source_python_script, source_python_script_for_objfile): Replace call to PyRun_SimpleFile by call to python_run_simple_file. commit 361c5ac7a1fd06cd86c4b20fcd9d77ed713e84dc Author: emachado Date: Mon Oct 3 20:13:51 2011 +0000 * gdb.base/jit.exp: Add testcase name to log message commit 665b0ae31cfd5ef41dcb082dea14055e881d17bc Author: Paul Koning Date: Mon Oct 3 16:15:18 2011 +0000 * gdb.python/py-value.exp (python inval = gdb.parse_and_eval('*(int*)0')) (python argc_lazy = gdb.parse_and_eval('argc'), sanity check argc) (set argc=2, python print argc_lazy): New tests. commit e5e9d08c064eb7d7358c3de2b2bfee3527dc55be Author: Paul Koning Date: Mon Oct 3 16:14:38 2011 +0000 * python/py-value.c (valpy_get_address): Use Py_XINCREF. (value_to_value_object): Fetch value if it was lazy. commit 439eaff911867f62533c3a018d2f8fb766f1d93a Author: gdbadmin Date: Mon Oct 3 00:00:03 2011 +0000 *** empty log message *** commit 3608e83c5fe0ac956718d4017fc93d7aed9333b6 Author: Alan Modra Date: Sun Oct 2 23:00:06 2011 +0000 daily update commit e93f4ae6aa29887e022cf389dcbf1440b457e67b Author: Jan Kratochvil Date: Sun Oct 2 21:05:58 2011 +0000 gdb/ Code cleanup. * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr. Rearrange the code for it. commit 794929bdced64854d1c9f861f4894bd76f93e2a9 Author: Joel Brobecker Date: Sun Oct 2 02:13:11 2011 +0000 thread-specific breakpoints not saved properly by save-breakpoint Initially, I noticed that the save command was often missing new lines in the file that it generated. For instance, consider: % gdb save-bp (gdb) b break_me (gdb) b save-bp.c:27 (gdb) save breakpoints bps The contents of the bps file would be: % cat bps break break_mebreak save-bp.c:27 Looking further into the problem, I realized that the missing newlines are just a consequence of a missing call to print_recreate_thread. After having generated the breakpoint location in the break command, we cannot put a new line until we have looked at whether we need to add a 'thread NUM' argument. gdb/ChangeLog: * breakpoint.c (bkpt_print_recreate): Add call to print_recreate_thread. gdb/testsuite/ChangeLog: * gdb.base/save-bp.exp, gdb.base/save-bp.c: New files. commit 7a508915a1a6d978be80db3c8183a7e090f53767 Author: gdbadmin Date: Sun Oct 2 00:00:03 2011 +0000 *** empty log message *** commit 5e24e7d92e5ce021c774520a19edd1752d646cb5 Author: Alan Modra Date: Sat Oct 1 23:00:05 2011 +0000 daily update commit fe7fbf3b21ae5f37f510d3a066c9c0f15fc863ca Author: Jan Kratochvil Date: Sat Oct 1 11:02:10 2011 +0000 gdb/testsuite/ * gdb.python/py-value.exp (test_value_in_inferior): New variable can_read_0, test for it. (python print gdb.parse_and_eval('*(int*)0')): Rename to ... (parse_and_eval with memory error): ... here, make it untested if can_read_0. commit 888df6392fb589da0804cbfefd068240dcf03e94 Author: gdbadmin Date: Sat Oct 1 00:00:32 2011 +0000 *** empty log message *** commit 929eff21af3724aa656c8b022c12158881a99b12 Author: Alan Modra Date: Sat Oct 1 00:00:05 2011 +0000 daily update commit cacbc8340a3456a69666cd5c6af31772896b048a Author: mpolacek Date: Fri Sep 30 15:07:32 2011 +0000 gdb.python/python.exp: fix up race commit 8c2e9af99137e1cc425959c267876cf0111d16b8 Author: Tristan Gingold Date: Fri Sep 30 10:39:44 2011 +0000 2011-09-30 Tristan Gingold * dwarf2.c (struct dwarf2_debug): Add field debug_sections. (read_section): Add sec argument. Adjust the code to get section names from it. (read_indirect_string): Adjust call to read_section. (read_abbrevs): Ditto. (decode_line_info): Ditto. (read_debug_ranges): Ditto. (DWARF2_DEBUG_INFO, DWARF2_COMPRESSED_DEBUG_INFO): Remove. (find_debug_info): Add debug_sections parameter. Use it instead the above macros. (place_sections): Get section names from stash. (find_line): Add debug_sections argument. Initialize debug_sections field of stash from it. Adjust calls to find_debug_info. (_bfd_dwarf2_find_nearest_line): Add debug_sections argument. Adjust call to find_line. (_bfd_dwarf2_find_line): Adjust call to find_line. * libcoff-in.h (struct dwarf_debug_section): New declaration. (coff_find_nearest_line_with_names): Likewise. * libcoff.h: Regenerate. * libbfd-in.h (struct dwarf_debug_section): Move declaration. (dwarf_debug_sections): Likewise. (_bfd_dwarf2_find_nearest_line): Add debug_sections argument. * libbfd.h: Regenerate. * elf.c (_bfd_elf_find_nearest_line): Adjust call to _bfd_dwarf2_find_nearest_line. * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Ditto. * elf64-alpha.c (elf64_alpha_find_nearest_line): Ditto. * elf32-arm.c (elf32_arm_find_nearest_line): Ditto. * coffgen.c (coff_find_nearest_line_with_names): New function. (coff_find_nearest_line): Calls coff_find_nearest_line_with_names. * coff-rs6000.c (xcoff_debug_sections): New constant. (xcoff_find_nearest_line): New function. (rs6000coff_vec): Use xcoff_find_nearest_line. (pmac_xcoff_vec): Ditto. commit 7c4093cd024c5a59d8176793a0e64335ce9abc53 Author: Alan Modra Date: Fri Sep 30 05:10:58 2011 +0000 PR ld/13235 bfd/ * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add ha_relocs_not_using_r2. (ppc64_elf_edit_toc): Check HA relocs. (ha_reloc_match): Delete function. (ppc64_elf_relocate_section): Remove delayed HA nop optimization. Instead do it and low part optimization based on ha_relocs_not_using_r2. ld/testsuite/ * ld-powerpc/tocopt.d: Update. * ld-powerpc/tocopt5.d, * ld-powerpc/tocopt5.s: New test. * ld-powerpc/powerpc.exp: Run new test. commit e40f893a301ec70986722c23b407aa32c9805412 Author: Mike Frysinger Date: Fri Sep 30 00:01:56 2011 +0000 gdbserver: add support for FDPIC loadmaps The DSBT support is very close to the FDPIC code, so extend the existing loadmap support to work with FDPIC loadmaps too. Signed-off-by: Mike Frysinger commit 3ed81300f1823dbb76f03dded62e7623be7635fc Author: gdbadmin Date: Fri Sep 30 00:00:32 2011 +0000 *** empty log message *** commit 60a154696d52a1a493bb9f7dca649359ae1ff056 Author: Alan Modra Date: Fri Sep 30 00:00:05 2011 +0000 daily update ----------------------------------------------------------------------- Summary of changes: bfd/ChangeLog | 136 ++ bfd/bfd-in.h | 3 +- bfd/bfd-in2.h | 6 +- bfd/bfdwin.c | 41 +- bfd/coff-rs6000.c | 48 +- bfd/coffcode.h | 10 +- bfd/coffgen.c | 33 +- bfd/configure | 2 +- bfd/configure.in | 2 +- bfd/dwarf2.c | 86 +- bfd/elf-ifunc.c | 7 +- bfd/elf.c | 3 +- bfd/elf32-arm.c | 6 +- bfd/elf32-sparc.c | 5 +- bfd/elf64-alpha.c | 3 +- bfd/elf64-ppc.c | 171 +-- bfd/elf64-sparc.c | 5 +- bfd/elflink.c | 79 +- bfd/elfxx-mips.c | 3 +- bfd/elfxx-sparc.c | 35 + bfd/elfxx-sparc.h | 5 +- bfd/libbfd-in.h | 26 +- bfd/libbfd.h | 26 +- bfd/libcoff-in.h | 4 + bfd/libcoff.h | 4 + bfd/linker.c | 23 + bfd/mach-o.c | 9 +- bfd/peicode.h | 6 +- bfd/version.h | 2 +- gdb/ChangeLog | 730 +++++++++++ gdb/MAINTAINERS | 2 + gdb/NEWS | 9 +- gdb/ada-lang.h | 7 +- gdb/ada-tasks.c | 725 ++++++++---- gdb/amd64-tdep.c | 103 ++- gdb/arch-utils.c | 8 + gdb/arch-utils.h | 5 + gdb/arm-tdep.c | 1367 +++++++++++++++++++- gdb/ax-gdb.c | 47 +- gdb/ax-gdb.h | 3 + gdb/breakpoint.c | 107 ++- gdb/cli/cli-decode.c | 1 + gdb/cli/cli-interp.c | 12 +- gdb/cli/cli-script.c | 16 + gdb/common/linux-ptrace.h | 7 + gdb/config/s390/s390.mh | 2 +- gdb/darwin-nat.c | 84 ++- gdb/defs.h | 2 + gdb/doc/ChangeLog | 55 + gdb/doc/gdb.texinfo | 891 +++++++------ gdb/dwarf2loc.c | 23 +- gdb/dwarf2read.c | 63 +- gdb/eval.c | 2 +- gdb/event-top.c | 314 ++--- gdb/event-top.h | 52 - gdb/findvar.c | 22 +- gdb/fork-child.c | 95 +- gdb/frame.c | 22 +- gdb/gdbarch.c | 24 + gdb/gdbarch.h | 11 + gdb/gdbarch.sh | 9 + gdb/gdbserver/ChangeLog | 97 ++ gdb/gdbserver/linux-arm-low.c | 479 +++++++- gdb/gdbserver/linux-low.c | 36 +- gdb/gdbserver/linux-x86-low.c | 297 +++++- gdb/gdbserver/server.c | 3 - gdb/gdbserver/server.h | 10 +- gdb/gdbserver/target.c | 16 +- gdb/gdbserver/tracepoint.c | 160 +++- gdb/gdbthread.h | 39 +- gdb/gnu-nat.c | 3 +- gdb/i386-linux-nat.c | 3 +- gdb/i386-tdep.c | 31 + gdb/inf-loop.c | 45 +- gdb/inf-ptrace.c | 2 +- gdb/inf-ttrace.c | 2 +- gdb/inferior.h | 9 +- gdb/infrun.c | 196 ++-- gdb/interps.c | 44 +- gdb/interps.h | 25 +- gdb/linux-fork.c | 35 + gdb/linux-nat.c | 259 +++-- gdb/linux-nat.h | 17 + gdb/linux-thread-db.c | 56 +- gdb/main.c | 4 + gdb/mi/mi-cmd-stack.c | 6 +- gdb/mi/mi-cmds.c | 1 + gdb/mi/mi-cmds.h | 1 + gdb/mi/mi-common.h | 3 + gdb/mi/mi-interp.c | 42 +- gdb/mi/mi-main.c | 15 +- gdb/p-exp.y | 4 +- gdb/parse.c | 30 +- gdb/parser-defs.h | 2 - gdb/procfs.c | 2 +- gdb/python/py-auto-load.c | 16 +- gdb/python/py-bpevent.c | 8 +- gdb/python/py-cmd.c | 46 +- gdb/python/py-event.h | 2 +- gdb/python/py-exitedevent.c | 13 +- gdb/python/py-frame.c | 8 - gdb/python/py-inferior.c | 16 +- gdb/python/py-param.c | 12 +- gdb/python/py-stopevent.c | 43 +- gdb/python/py-stopevent.h | 3 +- gdb/python/py-type.c | 419 ++++++- gdb/python/py-value.c | 10 +- gdb/python/python-internal.h | 5 +- gdb/python/python.c | 63 +- gdb/ravenscar-thread.c | 2 +- gdb/regcache.c | 30 +- gdb/regcache.h | 3 + gdb/remote.c | 8 +- gdb/s390-tdep.c | 27 +- gdb/solib-darwin.c | 74 +- gdb/solib-svr4.c | 34 +- gdb/solib.c | 20 +- gdb/sparc-tdep.c | 55 +- gdb/sparc-tdep.h | 6 + gdb/sparc64-tdep.c | 32 +- gdb/stack.c | 53 +- gdb/symfile.c | 2 +- gdb/target.h | 2 + gdb/testsuite/ChangeLog | 207 +++ gdb/testsuite/gdb.ada/tasks.exp | 20 +- .../py-events.c => gdb.arch/amd64-prologue-xmm.c} | 27 +- gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp | 46 + gdb/testsuite/gdb.arch/amd64-prologue-xmm.s | 400 ++++++ gdb/testsuite/gdb.arch/arm-disp-step.S | 166 +++- gdb/testsuite/gdb.arch/arm-disp-step.exp | 210 +++- gdb/testsuite/gdb.base/annota1.exp | 29 +- gdb/testsuite/gdb.base/annota3.exp | 28 +- .../py-type.c => gdb.base/disp-step-fork.c} | 77 +- gdb/testsuite/gdb.base/disp-step-syscall.exp | 138 ++ .../py-type.c => gdb.base/disp-step-vfork.c} | 84 +- gdb/testsuite/gdb.base/foll-fork.exp | 4 +- .../{gdb.python/py-events.c => gdb.base/interp.c} | 21 +- gdb/testsuite/gdb.base/interp.exp | 52 +- gdb/testsuite/gdb.base/jit.exp | 4 +- gdb/testsuite/gdb.base/kill-after-signal.exp | 6 + .../{gdb.python/py-events.c => gdb.base/save-bp.c} | 29 +- gdb/testsuite/gdb.base/save-bp.exp | 69 + gdb/testsuite/gdb.base/valgrind-db-attach.exp | 3 + gdb/testsuite/gdb.dwarf2/clztest.exp | 6 +- .../gdb.dwarf2/dw2-ifort-parameter-debug.S | 122 ++ .../dw2-ifort-parameter.c} | 22 +- gdb/testsuite/gdb.dwarf2/dw2-ifort-parameter.exp | 40 + .../dw2-param-error-main.c} | 28 +- gdb/testsuite/gdb.dwarf2/dw2-param-error.S | 108 ++ .../dw2-param-error.exp} | 22 +- gdb/testsuite/gdb.dwarf2/typeddwarf.exp | 10 +- gdb/testsuite/gdb.python/py-events.c | 1 + gdb/testsuite/gdb.python/py-events.exp | 19 +- gdb/testsuite/gdb.python/py-events.py | 5 +- .../gdb.python/{py-events.exp => py-evsignal.exp} | 51 +- gdb/testsuite/gdb.python/py-evthreads.c | 28 +- gdb/testsuite/gdb.python/py-evthreads.exp | 100 +- gdb/testsuite/gdb.python/py-inferior.exp | 12 +- .../gdb.python/{py-events.c => py-prompt.c} | 24 +- gdb/testsuite/gdb.python/py-prompt.exp | 131 ++ gdb/testsuite/gdb.python/py-type.c | 9 +- gdb/testsuite/gdb.python/py-type.exp | 25 + gdb/testsuite/gdb.python/py-value.exp | 31 +- gdb/testsuite/gdb.python/python.exp | 16 +- gdb/testsuite/gdb.threads/gcore-thread.exp | 4 +- gdb/testsuite/gdb.trace/backtrace.exp | 4 +- gdb/testsuite/gdb.trace/collection.exp | 36 +- gdb/testsuite/gdb.trace/report.exp | 4 +- gdb/testsuite/gdb.trace/tspeed.c | 184 +++ gdb/testsuite/gdb.trace/tspeed.exp | 140 ++ gdb/testsuite/gdb.trace/unavailable.exp | 8 +- gdb/testsuite/gdb.trace/while-dyn.exp | 4 +- gdb/testsuite/lib/gdb.exp | 70 +- gdb/testsuite/lib/prompt.exp | 92 ++ gdb/thread.c | 75 +- gdb/top.c | 146 +-- gdb/top.h | 24 +- gdb/tracepoint.c | 40 + gdb/tui/tui-interp.c | 17 +- gdb/tui/tui-io.c | 2 +- gdb/utils.c | 48 +- gdb/valops.c | 55 +- gdb/value.c | 14 +- gdb/value.h | 5 +- gdb/version.in | 2 +- gdb/windows-nat.c | 45 +- include/ChangeLog | 24 + include/bfdlink.h | 4 + include/demangle.h | 4 +- include/elf/ChangeLog | 5 + include/elf/sparc.h | 30 +- include/libiberty.h | 4 + include/opcode/ChangeLog | 7 + include/opcode/sparc.h | 37 +- include/plugin-api.h | 11 +- include/timeval-utils.h | 40 + libiberty/ChangeLog | 26 + libiberty/argv.c | 23 + libiberty/cp-demangle.c | 57 +- libiberty/md5.c | 10 +- libiberty/testsuite/demangle-expected | 47 + libiberty/timeval-utils.c | 87 ++ opcodes/ChangeLog | 41 + opcodes/m68k-opc.c | 15 +- opcodes/sparc-opc.c | 487 ++++---- sim/bfin/ChangeLog | 4 + sim/bfin/bfin-sim.c | 4 +- sim/testsuite/sim/bfin/ChangeLog | 4 + sim/testsuite/sim/bfin/vit_max2.s | 53 + 209 files changed, 10299 insertions(+), 2769 deletions(-) copy gdb/testsuite/{gdb.python/py-events.c => gdb.arch/amd64-prologue-xmm.c} (68%) create mode 100644 gdb/testsuite/gdb.arch/amd64-prologue-xmm.exp create mode 100644 gdb/testsuite/gdb.arch/amd64-prologue-xmm.s copy gdb/testsuite/{gdb.python/py-type.c => gdb.base/disp-step-fork.c} (59%) create mode 100644 gdb/testsuite/gdb.base/disp-step-syscall.exp copy gdb/testsuite/{gdb.python/py-type.c => gdb.base/disp-step-vfork.c} (57%) copy gdb/testsuite/{gdb.python/py-events.c => gdb.base/interp.c} (67%) copy gdb/testsuite/{gdb.python/py-events.c => gdb.base/save-bp.c} (55%) create mode 100644 gdb/testsuite/gdb.base/save-bp.exp create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-ifort-parameter-debug.S copy gdb/testsuite/{gdb.python/py-events.c => gdb.dwarf2/dw2-ifort-parameter.c} (73%) create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-ifort-parameter.exp copy gdb/testsuite/{gdb.python/py-events.c => gdb.dwarf2/dw2-param-error-main.c} (68%) create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-param-error.S copy gdb/testsuite/{gdb.base/kill-after-signal.exp => gdb.dwarf2/dw2-param-error.exp} (57%) copy gdb/testsuite/gdb.python/{py-events.exp => py-evsignal.exp} (56%) copy gdb/testsuite/gdb.python/{py-events.c => py-prompt.c} (62%) create mode 100644 gdb/testsuite/gdb.python/py-prompt.exp create mode 100644 gdb/testsuite/gdb.trace/tspeed.c create mode 100644 gdb/testsuite/gdb.trace/tspeed.exp create mode 100644 gdb/testsuite/lib/prompt.exp create mode 100644 include/timeval-utils.h create mode 100644 libiberty/timeval-utils.c create mode 100644 sim/testsuite/sim/bfin/vit_max2.s First 500 lines of diff: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1bbf84f..3328999 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,139 @@ +2011-09-30 Tristan Gingold + + * dwarf2.c (struct dwarf2_debug): Add field debug_sections. + (read_section): Add sec argument. Adjust the code to get section + names from it. + (read_indirect_string): Adjust call to read_section. + (read_abbrevs): Ditto. + (decode_line_info): Ditto. + (read_debug_ranges): Ditto. + (DWARF2_DEBUG_INFO, DWARF2_COMPRESSED_DEBUG_INFO): Remove. + (find_debug_info): Add debug_sections parameter. Use it instead + the above macros. + (place_sections): Get section names from stash. + (find_line): Add debug_sections argument. Initialize + debug_sections field of stash from it. + Adjust calls to find_debug_info. + (_bfd_dwarf2_find_nearest_line): Add debug_sections argument. + Adjust call to find_line. + (_bfd_dwarf2_find_line): Adjust call to find_line. + * libcoff-in.h (struct dwarf_debug_section): New declaration. + (coff_find_nearest_line_with_names): Likewise. + * libcoff.h: Regenerate. + * libbfd-in.h (struct dwarf_debug_section): Move declaration. + (dwarf_debug_sections): Likewise. + (_bfd_dwarf2_find_nearest_line): Add debug_sections argument. + * libbfd.h: Regenerate. + * elf.c (_bfd_elf_find_nearest_line): Adjust call to + _bfd_dwarf2_find_nearest_line. + * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Ditto. + * elf64-alpha.c (elf64_alpha_find_nearest_line): Ditto. + * elf32-arm.c (elf32_arm_find_nearest_line): Ditto. + * coffgen.c (coff_find_nearest_line_with_names): New function. + (coff_find_nearest_line): Calls coff_find_nearest_line_with_names. + * coff-rs6000.c (xcoff_debug_sections): New constant. + (xcoff_find_nearest_line): New function. + (rs6000coff_vec): Use xcoff_find_nearest_line. + (pmac_xcoff_vec): Ditto. + +2011-09-30 Alan Modra + + PR ld/13235 + * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add ha_relocs_not_using_r2. + (ppc64_elf_edit_toc): Check HA relocs. + (ha_reloc_match): Delete function. + (ppc64_elf_relocate_section): Remove delayed HA nop optimization. + Instead do it and low part optimization based on + ha_relocs_not_using_r2. + +2011-09-29 Alan Modra + + PR ld/13233 + * elflink.c (_bfd_elf_gc_mark_extra_sections): Mark single member + debug and special section groups. + +2011-09-27 Kai Tietz + + * coffcode.h (sec_to_styp_flags): Handle + SEC_LINK_DUPLICATES_SAME_CONTENTS, and + SEC_LINK_DUPLICATES_SAME_SIZE. + +2011-09-22 Tristan Gingold + + * configure.in: Bump version to 2.22.51 + * configure: Regenerate. + +2011-09-21 David S. Miller + + * elfxx-sparc.c (_bfd_sparc_elf_merge_private_bfd_data): New. + * elfxx-sparc.h: Declare it. + * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Call it. + * elf64-sparc.c (elf64_sparc_merge_private_bfd_data): Likewise. + +2011-09-21 Tristan Gingold + + * mach-o.c (bfd_mach_o_convert_section_name_to_bfd): Add comment. + Deals with size limited strings. + (bfd_mach_o_build_commands): Initialize more fields. + +2011-09-15 H.J. Lu + + PR ld/13177 + * elflink.c (elf_gc_sweep_symbol): Also hide symbols without PLT + nor GOT references. + +2011-09-15 H.J. Lu + + PR ld/12975 + * bfd-in.h (bfd_elf_size_dynamic_sections): Remove pointer + to struct bfd_elf_version_tree. + + * elflink.c (elf_info_failed): Remove verdefs. + (_bfd_elf_export_symbol): Updated. + _bfd_elf_link_assign_sym_version): Likewise. + (bfd_elf_size_dynamic_sections): Remove pointer to struct + bfd_elf_version_tree. Updated. + (bfd_elf_gc_mark_dynamic_ref_symbol): Check if a symbol is hidden + by linker script. + + * linker.c (bfd_hide_sym_by_version): New. + + * bfd-in2.h: Regenerated. + +2011-09-12 H.J. Lu + + PR ld/13178 + * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Use .got.plt + if there are no GOT relocations. + +2011-09-09 Kai Tietz + + * peicode.h (pe_ILF_build_a_bfd): Don't remove leading underscore + for targets without symbol_leading_char. + +2011-09-08 Bernd Jendrissek + + * bfdwin.c (bfd_get_file_window): Fix memory leak. + +2011-09-07 Alan Modra + + PR ld/13131 + * bfd/elf64-ppc.c (adjust_toc_syms): Ensure ppc64_elf_howto_table + is initialized. + +2011-09-06 Alan Modra + + PR ld/13131 + * elf64-ppc.c (adjust_toc_syms): Delete redundant code. + (ppc64_elf_edit_toc): Fix style nit. Report some details + on linker failure due to reference in debug or non-alloc + sections to optimized away toc entry, and don't abort. + +2011-09-01 Christophe Lyon + + * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip excluded + sections. + 2011-08-26 Nick Clifton * po/es.po: Updated Spanish translation. diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index 718d72e..a477b49 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -645,8 +645,7 @@ extern bfd_boolean bfd_elf_get_bfd_needed_list (bfd *, struct bfd_link_needed_list **); extern bfd_boolean bfd_elf_size_dynamic_sections (bfd *, const char *, const char *, const char *, const char *, const char *, - const char * const *, struct bfd_link_info *, struct bfd_section **, - struct bfd_elf_version_tree *); + const char * const *, struct bfd_link_info *, struct bfd_section **); extern bfd_boolean bfd_elf_size_dynsym_hash_dynstr (bfd *, struct bfd_link_info *); extern void bfd_elf_set_dt_needed_name diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 7cf3b7e..22fcdf6 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -652,8 +652,7 @@ extern bfd_boolean bfd_elf_get_bfd_needed_list (bfd *, struct bfd_link_needed_list **); extern bfd_boolean bfd_elf_size_dynamic_sections (bfd *, const char *, const char *, const char *, const char *, const char *, - const char * const *, struct bfd_link_info *, struct bfd_section **, - struct bfd_elf_version_tree *); + const char * const *, struct bfd_link_info *, struct bfd_section **); extern bfd_boolean bfd_elf_size_dynsym_hash_dynstr (bfd *, struct bfd_link_info *); extern void bfd_elf_set_dt_needed_name @@ -6199,6 +6198,9 @@ struct bfd_elf_version_tree * bfd_find_version_for_sym (struct bfd_elf_version_tree *verdefs, const char *sym_name, bfd_boolean *hide); +bfd_boolean bfd_hide_sym_by_version + (struct bfd_elf_version_tree *verdefs, const char *sym_name); + /* Extracted from simple.c. */ bfd_byte *bfd_simple_get_relocated_section_contents (bfd *abfd, asection *sec, bfd_byte *outbuf, asymbol **symbol_table); diff --git a/bfd/bfdwin.c b/bfd/bfdwin.c index 63ad5ed..4103e9c 100644 --- a/bfd/bfdwin.c +++ b/bfd/bfdwin.c @@ -1,5 +1,5 @@ /* Support for memory-mapped windows into a BFD. - Copyright 1995, 1996, 2001, 2002, 2003, 2005, 2007, 2008, 2009 + Copyright 1995, 1996, 2001, 2002, 2003, 2005, 2007, 2008, 2009, 2011 Free Software Foundation, Inc. Written by Cygnus Support. @@ -128,17 +128,16 @@ bfd_get_file_window (bfd *abfd, if (pagesize == 0) abort (); - if (i == 0) + if (i == NULL) { i = bfd_zmalloc (sizeof (bfd_window_internal)); - windowp->i = i; - if (i == 0) + if (i == NULL) return FALSE; - i->data = 0; + i->data = NULL; } #ifdef HAVE_MMAP if (ok_to_map - && (i->data == 0 || i->mapped == 1) + && (i->data == NULL || i->mapped == 1) && (abfd->flags & BFD_IN_MEMORY) == 0) { file_ptr file_offset, offset2; @@ -156,9 +155,9 @@ bfd_get_file_window (bfd *abfd, if (abfd->iostream == NULL && (abfd->iovec == NULL || abfd->iovec->bseek (abfd, offset, SEEK_SET) != 0)) - return FALSE; - fd = fileno ((FILE *) abfd->iostream); + goto free_and_fail; + fd = fileno ((FILE *) abfd->iostream); /* Compute offsets and size for mmap and for the user's data. */ offset2 = offset % pagesize; if (offset2 < 0) @@ -169,10 +168,10 @@ bfd_get_file_window (bfd *abfd, real_size -= real_size % pagesize; /* If we're re-using a memory region, make sure it's big enough. */ - if (i->data && i->size < size) + if (i->data != NULL && i->size < size) { munmap (i->data, i->size); - i->data = 0; + i->data = NULL; } i->data = mmap (i->data, real_size, writable ? PROT_WRITE | PROT_READ : PROT_READ, @@ -185,11 +184,10 @@ bfd_get_file_window (bfd *abfd, /* An error happened. Report it, or try using malloc, or something. */ bfd_set_error (bfd_error_system_call); - i->data = 0; windowp->data = 0; if (debug_windows) fprintf (stderr, "\t\tmmap failed!\n"); - return FALSE; + goto free_and_fail; } if (debug_windows) fprintf (stderr, "\n\tmapped %ld at %p, offset is %ld\n", @@ -198,6 +196,8 @@ bfd_get_file_window (bfd *abfd, windowp->data = (bfd_byte *) i->data + offset2; windowp->size = size; i->mapped = 1; + i->refcount = 1; + windowp->i = i; return TRUE; } else if (debug_windows) @@ -228,15 +228,18 @@ bfd_get_file_window (bfd *abfd, if (i->data == NULL) { if (size_to_alloc == 0) - return TRUE; - return FALSE; + { + windowp->i = i; + return TRUE; + } + goto free_and_fail; } i->refcount = 1; if (bfd_seek (abfd, offset, SEEK_SET) != 0) - return FALSE; + goto free_and_fail; i->size = bfd_bread (i->data, size, abfd); if (i->size != size) - return FALSE; + goto free_and_fail; i->mapped = 0; #ifdef HAVE_MPROTECT if (!writable) @@ -249,7 +252,13 @@ bfd_get_file_window (bfd *abfd, #endif windowp->data = i->data; windowp->size = i->size; + windowp->i = i; return TRUE; + + free_and_fail: + /* We have a bfd_window_internal, but an error occurred. Free it. */ + free (i); + return FALSE; } #endif /* USE_MMAP */ diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c index 5d9b5ae..ffa7a65 100644 --- a/bfd/coff-rs6000.c +++ b/bfd/coff-rs6000.c @@ -405,6 +405,50 @@ _bfd_xcoff_is_local_label_name (bfd *abfd ATTRIBUTE_UNUSED, { return FALSE; } + +static const struct dwarf_debug_section xcoff_debug_sections[] = +{ + { ".dwabrev", NULL }, + { ".dwarnge", NULL }, + { NULL, NULL }, /* .debug_frame */ + { ".dwinfo", NULL }, + { ".dwline", NULL }, + { NULL, NULL }, /* .debug_loc */ + { NULL, NULL }, /* .debug_macinfo */ + { NULL, NULL }, /* .debug_macro */ + { ".dwpbnms", NULL }, + { ".dwpbtyp", NULL }, + { ".dwrnges", NULL }, + { NULL, NULL }, /* .debug_static_func */ + { NULL, NULL }, /* .debug_static_vars */ + { ".dwstr", NULL }, + { NULL, NULL }, /* .debug_types */ + /* GNU DWARF 1 extensions */ + { NULL, NULL }, /* .debug_sfnames */ + { NULL, NULL }, /* .debug_srcinfo */ + /* SGI/MIPS DWARF 2 extensions */ + { NULL, NULL }, /* .debug_funcnames */ + { NULL, NULL }, /* .debug_typenames */ + { NULL, NULL }, /* .debug_varnames */ + { NULL, NULL }, /* .debug_weaknames */ + { NULL, NULL }, +}; + +static bfd_boolean +xcoff_find_nearest_line (bfd *abfd, + asection *section, + asymbol **symbols, + bfd_vma offset, + const char **filename_ptr, + const char **functionname_ptr, + unsigned int *line_ptr) +{ + return coff_find_nearest_line_with_names (abfd, xcoff_debug_sections, + section, symbols, offset, + filename_ptr, functionname_ptr, + line_ptr); +} + void _bfd_xcoff_swap_sym_in (bfd *abfd, PTR ext1, PTR in1) @@ -4073,7 +4117,7 @@ const bfd_target rs6000coff_vec = _bfd_xcoff_is_local_label_name, coff_bfd_is_target_special_symbol, coff_get_lineno, - coff_find_nearest_line, + xcoff_find_nearest_line, _bfd_generic_find_line, coff_find_inliner_info, coff_bfd_make_debug_symbol, @@ -4328,7 +4372,7 @@ const bfd_target pmac_xcoff_vec = _bfd_xcoff_is_local_label_name, coff_bfd_is_target_special_symbol, coff_get_lineno, - coff_find_nearest_line, + xcoff_find_nearest_line, _bfd_generic_find_line, coff_find_inliner_info, coff_bfd_make_debug_symbol, diff --git a/bfd/coffcode.h b/bfd/coffcode.h index 6f9685b..62eeb20 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -670,7 +670,9 @@ sec_to_styp_flags (const char *sec_name, flagword sec_flags) /* FIXME: There is no gas syntax to specify the debug section flag. */ if (is_dbg) { - sec_flags &= (SEC_LINK_ONCE | SEC_LINK_DUPLICATES_DISCARD); + sec_flags &= (SEC_LINK_ONCE | SEC_LINK_DUPLICATES_DISCARD + | SEC_LINK_DUPLICATES_SAME_CONTENTS + | SEC_LINK_DUPLICATES_SAME_SIZE); sec_flags |= SEC_DEBUGGING | SEC_READONLY; } @@ -698,7 +700,11 @@ sec_to_styp_flags (const char *sec_name, flagword sec_flags) /* skip SORT */ if (sec_flags & SEC_LINK_ONCE) styp_flags |= IMAGE_SCN_LNK_COMDAT; - /* skip LINK_DUPLICATES */ + if ((sec_flags + & (SEC_LINK_DUPLICATES_DISCARD | SEC_LINK_DUPLICATES_SAME_CONTENTS + | SEC_LINK_DUPLICATES_SAME_SIZE)) != 0) + styp_flags |= IMAGE_SCN_LNK_COMDAT; + /* skip LINKER_CREATED */ if ((sec_flags & SEC_COFF_NOREAD) == 0) diff --git a/bfd/coffgen.c b/bfd/coffgen.c index bbb0acc..2508b51 100644 --- a/bfd/coffgen.c +++ b/bfd/coffgen.c @@ -2085,13 +2085,14 @@ _bfd_coff_is_local_label_name (bfd *abfd ATTRIBUTE_UNUSED, nearest to the wanted location. */ bfd_boolean -coff_find_nearest_line (bfd *abfd, - asection *section, - asymbol **symbols, - bfd_vma offset, - const char **filename_ptr, - const char **functionname_ptr, - unsigned int *line_ptr) +coff_find_nearest_line_with_names (bfd *abfd, + const struct dwarf_debug_section *debug_sections, + asection *section, + asymbol **symbols, + bfd_vma offset, + const char **filename_ptr, + const char **functionname_ptr, + unsigned int *line_ptr) { bfd_boolean found; unsigned int i; @@ -2116,7 +2117,8 @@ coff_find_nearest_line (bfd *abfd, return TRUE; /* Also try examining DWARF2 debugging information. */ - if (_bfd_dwarf2_find_nearest_line (abfd, section, symbols, offset, + if (_bfd_dwarf2_find_nearest_line (abfd, debug_sections, + section, symbols, offset, filename_ptr, functionname_ptr, line_ptr, 0, &coff_data(abfd)->dwarf2_find_line_info)) @@ -2299,6 +2301,21 @@ coff_find_nearest_line (bfd *abfd, } bfd_boolean +coff_find_nearest_line (bfd *abfd, + asection *section, + asymbol **symbols, + bfd_vma offset, + const char **filename_ptr, + const char **functionname_ptr, + unsigned int *line_ptr) +{ + return coff_find_nearest_line_with_names (abfd, dwarf_debug_sections, + section, symbols, offset, + filename_ptr, functionname_ptr, + line_ptr); +} + +bfd_boolean coff_find_inliner_info (bfd *abfd, const char **filename_ptr, const char **functionname_ptr, diff --git a/bfd/configure b/bfd/configure index 06f7839..96a8f75 100755 --- a/bfd/configure +++ b/bfd/configure @@ -3988,7 +3988,7 @@ fi # Define the identity of the package. PACKAGE=bfd - VERSION=2.21.53 + VERSION=2.22.51 cat >>confdefs.h <<_ACEOF diff --git a/bfd/configure.in b/bfd/configure.in index 530d4ee..2088d62 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -8,7 +8,7 @@ AC_CONFIG_SRCDIR([libbfd.c]) AC_CANONICAL_TARGET AC_ISC_POSIX -AM_INIT_AUTOMAKE(bfd, 2.21.53) +AM_INIT_AUTOMAKE(bfd, 2.22.51) dnl These must be called before LT_INIT, because it may want dnl to call AC_CHECK_PROG. diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 3cd2f7d..577f278 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -90,6 +90,9 @@ struct dwarf2_debug /* Last comp unit in list above. */ struct comp_unit *last_comp_unit; + /* Names of the debug sections. */ + const struct dwarf_debug_section *debug_sections; + /* The next unread compilation unit within the .debug_info section. Zero indicates that the .debug_info section has not been loaded into a buffer yet. */ @@ -469,14 +472,14 @@ lookup_info_hash_table (struct info_hash_table *hash_table, const char *key) hooks/post-receive -- Repository for Project Archer.