From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8396 invoked by alias); 25 Apr 2010 20:22:07 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 8162 invoked by uid 9674); 25 Apr 2010 20:22:04 -0000 Date: Sun, 25 Apr 2010 20:22:00 -0000 Message-ID: <20100425202203.8147.qmail@sourceware.org> From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] master: Merge remote branch 'gdb/master' X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 11d4e9ae12b8f0af69795094b06f94a73d416570 X-Git-Newrev: b1caf90bc3d7962cf69dc58731da5b23794e48e0 X-SW-Source: 2010-q2/txt/msg00020.txt.bz2 List-Id: The branch, master has been updated via b1caf90bc3d7962cf69dc58731da5b23794e48e0 (commit) via e4e1de5ce3bac7857fc3e71fa541a0e288c2f08b (commit) via efaf6e46b64bd5c512daefba594116887606c3bd (commit) via 478e77bf4eed560b37673e0110d40fd9170e4316 (commit) via 7c61cb73c20093a8b99aadd2b3c52cd31f26c16a (commit) via fe0ad9da4e785acbd42bf63f456e32b5886254cb (commit) via 26f89d50a5ced7c9539d7b63c56222069a227d86 (commit) via 865612dd610aa840c0770e281227dcb0c59a2abf (commit) via d78a3edfc0a132d3717dd8b8e5c49af43ba5a615 (commit) via 962ef09016ec455e5ef6cc64a679b1b952e69cf8 (commit) via f8569191b8297ea4ebcc6f4c57fa7a805ed2cdc0 (commit) via 6bbc19c7d525e49ce12c21ad5a5f85d4d720a573 (commit) via 2ea3662be0ca74cf18a79cf8792af955a3f866ed (commit) via 47d11be572aaf42cc67e6d925271d44bdecd104d (commit) via dce2c723fe34f8cec95e4b62f24458bdf6919ef9 (commit) via 8a504f76797a1662228fe89cb1a2aff2bf74fe58 (commit) via 1f0392f10c894a86f0fd3470c8ecc58e287f6d3b (commit) via a004661c072fb793b0656315c64a5debffd0d8b8 (commit) via c71ba49b25a4932ee4c558e5764b0ad484db9482 (commit) via 62f173d91ab526d69da1ed15d4645771b36ba3c5 (commit) via 8b5ee5302e727c72d5a6c393f99268415f4f74a1 (commit) via af126ee8ee92c7b4c5202b0b51aa93a0af92146b (commit) via fffc2febb5c821664224d784a2a1b020fc770bbf (commit) via b09728c90cffb170d1ce52a74a863ca6111b2147 (commit) via f1fa309f01bb0675e0191085e3034aec07d51e9f (commit) via 407cb192dcac2602aebaa7e262419adb580ecca6 (commit) via f9abf6276285fe34e8b5901a6e4c5458bd8d533e (commit) via ecd5b3a6117e092115ed892a18032e5e25197081 (commit) via c9a0b491ca6f6870ec6ab8f8de6b54c355b5d1b6 (commit) via c9905fc6132dd9e3de05a0b8a4f4e6619c8ed18b (commit) via 3cc8e6cdbfc94925fbff2e5dceaaa12df6566112 (commit) via d0a355edc7cd47fed0d23b33c30bd08c1523f139 (commit) via 89ef71a977367bf0a56d5dd0b95d3772498c7999 (commit) via 77eac30f449e7c36b0b553ef4ae8a33cd47aa6e9 (commit) via e35eecf454ab64b65f9694238f87dc79599307bc (commit) via da8c841ca0eb1d618d84659e6b7b6f4683ba78fd (commit) via 51ee16fe6c51c80d06c0bf59acb4d49eaf254730 (commit) via 39d64664a19cc9c4faeeb291e9443b7ac9aeedc7 (commit) via 6961c1c42a291aa5c17dbc851b50a9483040f1db (commit) via 8f8167cdaaf041444a4a3dfc1b59e6ad429c4ed1 (commit) via e93ab80cfb8f4dcd50a257515f7d5ce0cab38677 (commit) via 16a83ec93981a0c8d49b53e86976ff71aaa7a87c (commit) via 5aecd954863c6cea3c18919ce348ba0d39a38c92 (commit) via e9ae978c7b5ee6d7d0b0b9bb7271ea0edb73dd6a (commit) via cdf9848477a6561a40be7c57c46f2abc49d0ca05 (commit) via c2b2e301e54bb219b900d8499cd59fa4f4b7f0da (commit) via 1ef00b9be705584d5817a359e4ccebeb8e461acf (commit) via 9663d5addd595ff276e3bd8a6d0055f51441fb52 (commit) via 601b03265c0ab7aadd8446abef13683d294c78c5 (commit) via 93720bdabf1e7e6d402f9959a131df333c13f396 (commit) via 151bf6fbf3eecce5ffeb1af216ff581b80fd3200 (commit) via 492e9eaccb02b1322b102f52059d952cb452354a (commit) via 2e9157d5ff407b896faf67e01efcd7f943c5032a (commit) via 369d8b6a68317b868746581b3f03340a18bd49d8 (commit) via 93e702af0fc5693d8c8f811068f490e7ff9e75bd (commit) via d54f5671e190a5c0ca8fd1ff070372bf20eb42a8 (commit) via 1e85eb412378e25d0f65e49ddcfc54b774e7c63f (commit) via e4baba782ed583a21b8c4498a1a32bef653ac824 (commit) via c2ca0c40da5e38e72592a07d3db8e3304ca24128 (commit) via 135d95fa2aeb55f8100bd7f98f086b06b1b85b12 (commit) via ca91f46b20ba544ccef7d50f8d3a63078e90e8b1 (commit) via 9ab3392d43a277c68581db1d80b8abc32e560cd6 (commit) via a67f6c69b74ab0823b5a954e3648f7758b0e0ec7 (commit) via a119e44e706d94dd0fa555d3dc838abc0ef0d8b0 (commit) via 7c9af59093f29ff2608d9fbbed4036d2d88152b4 (commit) via b5778c6067ff8b88f0ecdddafb7e0656038dabc2 (commit) via 0189a027029f5791fe4067bbde52db33ac4340f1 (commit) via 0df8296ccbe06c092d21cf9e808d4f634ca1a6c2 (commit) via 949ed6ecaacec61013e66818f1f1d0c17369b185 (commit) via 95194f81a233801fcb414f861da13a39c0cc3825 (commit) via 0a784d2742791209e8042a9c7c35f58f3cdcb36d (commit) via f91cf5763ac25e9926943c26e64caff6d2c976b0 (commit) via 36ccd968aa12f631c23256b314822943f1e4ac22 (commit) via c0fe155d4ef80977ebeab93976d0f1f25516e783 (commit) via 669907bd6d54ae8e85b1278f0f16f8641ce6802d (commit) via 78c144e8c3ae7bb36d632f6bfaaaad9c97199ce6 (commit) via a5100fac1feb40667d8417391a427ae61487b4ee (commit) via a96a30ba457510a1daf70a2d671b99c55b13a970 (commit) via be1f57c90bdf86477b9bc69cc982171d6ad5df56 (commit) via 8ee302683860723cc53c405bf12cebfe2d70fae1 (commit) via d7fff800bc0d0b41183b0d7171394ba23cfac48e (commit) via 01bb9f51ab954354722aac3e7d41c04016494457 (commit) via 0845b5bcaed448f890af5f05c043d3014ccbc20b (commit) via 07ed1d58ab86b51ff98fc9b4f9f6104ea6a2edea (commit) via e38d9943877fcd65c83701b901fc9c4ddfa4bf77 (commit) via 3dcbf5579175d84836dea85fae0d346af3540269 (commit) via 74a4aafb0e70c5f50588fae4d8ceddcc71639cb8 (commit) via 7779ca9c5b2e8d7a337a942879a2853efb61a083 (commit) via 926c78553c0c2a5164b6b23e08ea8b4a220afb2d (commit) via 369c4d97d5539446d56e92e010e69536b122ed1a (commit) via 840611126e1efd3cc57bdcb9a38498682121a8dd (commit) via 18446285228b830f3e0b7dbc86df580dfa1725b9 (commit) via 0f8aa2a477151133bb58079af6da7212644e1453 (commit) via 237c2dc7c52137e20f901b7f99d9c7510a529e24 (commit) via 59c88a4654dc522a78e35349afc22b01ee6b9c58 (commit) via 69a911070b9cc4409ca96062b8be09dd758d7e19 (commit) via 07ed560d9cc91d0e341657907900e2cd12815ed9 (commit) via 2cc27dee809ad8183b317e9705cde12358d52b8d (commit) via c8eb11c3a5c192caae27d7d3238932703776c127 (commit) via b5f20afcbdea985a35dbab687dbe3ea7c2adccfd (commit) via 036094daebe2a94efe7873677edcb9c31843c1ce (commit) via 2786d01bf75bf58995083baee229f8a9cdf3aba6 (commit) via abeaf4a297056e0092051a7a9be14d89f1344174 (commit) via 37f62e955c561cffa75973aaa49cd24eb7246194 (commit) via 9cf7bd5857f0fe4d75c732b6fcf7178588bc6404 (commit) via 928300f07f84b4c3b68f4caa961b8e01da9a210d (commit) via cb561e51f18b20d5e8b1a015b93b751459bb0330 (commit) via d8ddf47ca6ebf4f501050e28d83a88871cdb572f (commit) via 8997115c02953f3ea7b851ab4c564264f442c1d7 (commit) via 1e5ccfab8b5a3019552434a16a4c925b00fa56db (commit) via 6d680648882f9cf3c88ec6a448d2882d19952fd9 (commit) via f4fddb98b8116a394a64b22c8ad51365b0d2b2b1 (commit) via cea95405664b51402b236702187ef911a5dff0c6 (commit) via a15e31f5095167b585a71233176e3c7ae6d60a2c (commit) via d53f7b278bcc93ee99f809775889afd38c6d2cfc (commit) via 1bb6976a02799aef34e892d2401e6cf77c4336ba (commit) via 37596b94cb368ef8600e45ff203218ca340e0e13 (commit) via 79db1f76c0b566c4557f492c0d050285fca26304 (commit) via 5713f086abf837ab8ec3c1d788d0e1e04f698b59 (commit) via 3785734c373ca825a1a040fe5c5a2e35c2fcfae6 (commit) via 649c9171090a2d3d4f015535eff2637d0919e9fd (commit) via 315b4dc5797d8d68cd915c0b262834eadd1dc41e (commit) via e20375c65f85c024d89f654a4ee86d455fcda984 (commit) via 52ef2062ce3bd741b845da02e774031f4af6f332 (commit) via 6f64c2e1fbefbe0d3f0a04384bcbb6fd31aa2574 (commit) via 06da7f140e0561b82135ae12a8a6394102e72401 (commit) via b2492cd13f871898c026b45f1424e4e06b526ff6 (commit) via b9f1271123edb907e4e8cf4a0cf969117d699fb2 (commit) via 8747b8f0dda734b806bca8812b315977c4fc58f1 (commit) via 4366e0e6bed6fed39ba5665da4bbbd5f8e86c2f8 (commit) via 29596e34e7c1f23aa51f289d36802e1ef0f89129 (commit) via eb6db2b9ca2e0a9ebb25fad233734e1b5e0ea295 (commit) via e9d705a60bf1225789ae97759e148e5cc799dc6f (commit) via 66d9e8ff6e25790500e408a591c9a62b7c00b74b (commit) via 184084de04b19fb72af34fb967d504d027961139 (commit) via b4078918df2212ecd820a0dcc271cab5f4fe9029 (commit) via 14ca3db824a85073e5d359d6b5fb7c2f6eb47b39 (commit) via af9323291f3347482d3ef6db41f2a35144cce9fc (commit) via c67a70d037a365e133e85976351c33b9ac8818b8 (commit) via 829a902da291e72ad17e8c44fa8d9ead3db41b1f (commit) via 5aa7992bf144ce9cdfd4e3c72290cbd66c0cc920 (commit) via 91d9eeefda9104c815db741b502c366a2e8e92ad (commit) via 746027ffb0c72c3f5cd93d373ed534ec5c3eac2c (commit) via baeb5c93610f1d8d11432e872156eb6fcab3d5a7 (commit) via 325409e50f6be845b0f3d9719d62f9dc78dbe048 (commit) via e12b767fb287127671d514eef227486777f0a972 (commit) via e92d216e7f362371836c6bad86dd5d065c62260a (commit) via e5ea8d026015c2a0c7774788b425914857de1ffb (commit) via a9a471371a0bfbe3df0c96fb818fb923119bdb5b (commit) via 20e2cc4290d787cca8f2b0444c2852d5e43ca0ea (commit) via 0d32580f43a7359eba5251655977aaa1ef990e6d (commit) via a3960ae0be37da1d6e57a748129c0d9effa77400 (commit) via f80965c8b03b9ca637edcc810d70011ac5dfc3d9 (commit) via 79ebeac8f7f059b7407e5027c5bb94c95063cf5a (commit) via bf763a271e28a4ffd6a7bb20050c7af3b22669cd (commit) via 60fc8896b1299b023e3900afbe39d36f26231764 (commit) via ed70aeaec4fa89ae8cba95fcae434c90754e24df (commit) via 567bc1952033cdcfbad781cd391b530a0fd5e896 (commit) via 84684895ff9d6710b681dc3c0914c669e648a792 (commit) via eed093668ca1e5ba56374feaf14ae1c8e99f5673 (commit) via 9b35db8589d6c93837adb1e0b2ada219330f3f0b (commit) via 52a13319b890f4624e3e6e8df27f12ff702ec437 (commit) via 02202ae492b14960c45e9c5934ee7317a9806e18 (commit) via 31ad63b78fed65237a81c9767a9c66600e9cf62b (commit) via edada3266c0f23e81e9baf98a0a213ad7f6d6b5e (commit) via d46fcd242a5f859f64c163d6a32cdfeb4217718c (commit) via fc61c2c20bd61d403463e6437a294ffcdf198f3f (commit) via 58fbf93a07e88c6f0103aa2ef3432d2ef4946243 (commit) via b85579f12a452fb5dd104e9a198667a91e0c06c6 (commit) via d691350337a747dc827c09a265859df1ac86e79b (commit) via 7bbdc114c3787e8be817374c9ca3fff4e6944413 (commit) via f5bf6a8c39808e17bbacf43fa89a04e0bf3d0875 (commit) via a382f5de08276818170fa82880064af2426a0f46 (commit) via b819a8a84d172277e832f56c471acc8b0f4234f4 (commit) via 2aff82e00a7f93afe1884bffa8199691e18dac0b (commit) via 66e4d3883383c9d42113c7e8c614dff8646deb35 (commit) via 63222cac28a232f0e4610a6c17ea72ab4d3d6372 (commit) via a9b58442902b891555f27beb7ea65626def562fa (commit) via aac14cecc4807e485bd0e7c3d41575d50cf89cd3 (commit) via 1c5326e5cce6ef8ea11c942374e9214c5e8db53c (commit) via ed8a7fd9b04e7b81ecc763ca9892a566aba90ada (commit) via 46989a29cc78aaed3e7c34175ad443c6f21f2584 (commit) via 055148f7383dbef6dfef69ebf09a5d2aaaadeb89 (commit) via 2830e8f6791aa574cff47c03ffe8108fbfd0e729 (commit) via 6295c80119e0b738616d665bb066fad1bca54e76 (commit) via 79243e9e95af00b8d410bff66ced0fd286d5c80d (commit) via d56b8df4755faaa982e8d7943c84a092c7d01f9c (commit) via 819aac763059a73c81114fb4aefacb0891ed8483 (commit) via cf24e72f4f92deeda903dda540c789cbc83b6ccb (commit) via c8b2d4f95fb122595bf264c7c573adbfa27b718d (commit) via 9e9dec16e23f809c5d8ac6246f2c0f1580f5fa10 (commit) via 27992c79e2bf8361dcc227a2c425b74ca99a000d (commit) via 17b932068d27d862c0ad42dbd3875b191d323c85 (commit) via 8f50b8b9357758896d79fca447f8ed23bdcb2391 (commit) via b617b34276afa69dc2b9e70a188a27c049857ab4 (commit) via ad999f438dae72b316d2fe2868027af848a634d4 (commit) from 11d4e9ae12b8f0af69795094b06f94a73d416570 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit b1caf90bc3d7962cf69dc58731da5b23794e48e0 Merge: 11d4e9ae12b8f0af69795094b06f94a73d416570 e4e1de5ce3bac7857fc3e71fa541a0e288c2f08b Author: Jan Kratochvil Date: Sun Apr 25 22:21:31 2010 +0200 Merge remote branch 'gdb/master' commit e4e1de5ce3bac7857fc3e71fa541a0e288c2f08b Author: gdbadmin Date: Sun Apr 25 00:00:36 2010 +0000 *** empty log message *** commit efaf6e46b64bd5c512daefba594116887606c3bd Author: Alan Modra Date: Sun Apr 25 00:00:06 2010 +0000 daily update commit 478e77bf4eed560b37673e0110d40fd9170e4316 Author: Pedro Alves Date: Sat Apr 24 13:12:49 2010 +0000 * defs.h: Adjust comment. * filesystem.h, filesystem.c: New files. * Makefile.in (SFILES): Add filesystem.c. (COMMON_OBS): Add filesystem.o. * solib.c (solib_find): Handle DOS-based filesystems. Handle different target and host path flavours. * arm-symbian-tdep.c (arm_symbian_init_abi): Set has_dos_based_file_system on the gdbarch. * arm-wince-tdep.c (arm_wince_init_abi): Ditto. * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto. * i386-tdep.c (i386_go32_init_abi): Ditto. * gdbarch.sh (has_dos_based_file_system): New. * gdbarch.h, gdbarch.c: Regenerate. * NEWS: Mention improved support for remote targets with DOS-based filesystems. Mention new `set/show target-file-system-kind' commands. gdb/doc/ * gdb.texinfo (Commands to specify files): Describe what how GDB looks up DOS-based filesystem paths on the system root. Document the new `set/show target-file-system-kind' commands. commit 7c61cb73c20093a8b99aadd2b3c52cd31f26c16a Author: Alan Modra Date: Sat Apr 24 01:05:21 2010 +0000 include/elf/ * internal.h (ELF_SECTION_SIZE): Protect macro args with parentheses. Invert logic to clarify test for .tbss. (ELF_IS_SECTION_IN_SEGMENT): Rename to.. (ELF_SECTION_IN_SEGMENT_1): ..this. Add check_vma param. Protect macro args with parentheses. (ELF_SECTION_IN_SEGMENT): Define. (ELF_IS_SECTION_IN_SEGMENT_FILE): Delete. (ELF_IS_SECTION_IN_SEGMENT_MEMORY): Delete. bfd/ * elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT throughout file. (assign_file_positions_for_load_sections): Modify section in segment warning to ignore overlay vmas. * elf32-spu.c (spu_elf_object_p): Replace use of ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT. binutils/ * readelf.c (process_program_headers): Replace use of ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT. commit fe0ad9da4e785acbd42bf63f456e32b5886254cb Author: DJ Delorie Date: Sat Apr 24 01:03:15 2010 +0000 merge from gcc commit 26f89d50a5ced7c9539d7b63c56222069a227d86 Author: Doug Evans Date: Sat Apr 24 00:58:43 2010 +0000 * server.c (start_inferior): Print inferior argv if --debug. commit 865612dd610aa840c0770e281227dcb0c59a2abf Author: Alan Modra Date: Sat Apr 24 00:00:07 2010 +0000 daily update commit d78a3edfc0a132d3717dd8b8e5c49af43ba5a615 Author: gdbadmin Date: Sat Apr 24 00:00:05 2010 +0000 *** empty log message *** commit 962ef09016ec455e5ef6cc64a679b1b952e69cf8 Author: Stan Shebs Date: Fri Apr 23 23:51:03 2010 +0000 2010-04-23 Stan Shebs * ax.h (struct agent_expr): Merge in agent_reqs fields, add some comments. (struct agent_reqs): Remove. (ax_reg_mask): Declare. * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields. (free_agent_expr): Free reg_mask. (ax_print): Add scope and register mask info. (ax_reqs): Remove agent_reqs argument, use agent expression fields, and move part of register mask computation to... (ax_reg_mask): New function. * ax-gdb.c (gen_trace_static_fields): Call it. (gen_traced_pop): Ditto. (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr. (gen_trace_for_var): Pass gdbarch to new_agent_expr. (gen_trace_for_expr): Ditto, and clear optimized_out flag. (gen_eval_for_expr): Ditto, and require an rvalue. (agent_command): Call ax_reqs. (agent_eval_command): Ditto. * tracepoint.c (report_agent_reqs_errors): Use agent expression fields. (validate_action_line): Ditto. (collect_symbol): Ditto. (encode_actions_1): Ditto. commit f8569191b8297ea4ebcc6f4c57fa7a805ed2cdc0 Author: Jan Kratochvil Date: Fri Apr 23 21:44:19 2010 +0000 gdb/ Fix deadlock on looped list of loaded shared objects. * solib-svr4.c (LM_PREV): New function. (IGNORE_FIRST_LINK_MAP_ENTRY): Use it. (svr4_current_sos): Check for correct l_prev. New variables prev_lm and next_lm. Clear prev_lm for solib_svr4_r_ldsomap. * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp. gdb/testsuite/ Fix deadlock on looped list of loaded shared objects. * gdb.base/solib-corrupted.exp: New. commit 6bbc19c7d525e49ce12c21ad5a5f85d4d720a573 Author: Doug Evans Date: Fri Apr 23 18:07:26 2010 +0000 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using python. * configure: Regenerate. * main.c: #include "python/python.h". (captured_main): Defer loading auto-loaded scripts until after local_gdbinit has been sourced. * python/py-auto-load.c (gdbpy_global_auto_load): New global. (load_auto_scripts_for_objfile): New function. (auto_load_new_objfile): Call it. * python/python.h (gdbpy_global_auto_load): Declare. (load_auto_scripts_for_objfile): Declare. commit 2ea3662be0ca74cf18a79cf8792af955a3f866ed Author: Doug Evans Date: Fri Apr 23 18:03:24 2010 +0000 Add support for auto-loading scripts from .debug_gdb_scripts section. * NEWS: Add entry for .debug_gdb_scripts. * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o. (SUBDIR_PYTHON_SRCS): Add py-auto-load.c. (py-auto-load.o): New rule. * cli/cli-cmds.c (find_and_open_script): Make externally visible. * cli/cli-cmds.h (find_and_open_script): Update prototype. * python/py-auto-load.c: New file. * python/python-internal.h: #include . (set_python_list, show_python_list): Declare. (gdbpy_initialize_auto_load): Declare. (source_python_script_for_objfile): Declare. * python/python.c: Remove #include of observer.h. (gdbpy_auto_load): Moved to py-auto-load.c. (GDBPY_AUTO_FILENAME): Ditto. (gdbpy_new_objfile): Delete. (source_python_script_for_objfile): New function. (set_python_list, show_python_list): Make externally visible. (_initialize_python): Move "auto-load" command to py-auto-load.c and observer_attach_new_objfile to py-auto-load.c. doc/ * gdb.texinfo (Python): Move Auto-loading section here ... (Python API): from here. (Auto-loading): Add docs for .debug_gdb_scripts auto-loaded scripts. (Maintenance Commands): Add docs for "maint print section-scripts". testsuite/ * gdb.python/py-section-script.c: New file. * gdb.python/py-section-script.exp: New file. * gdb.python/py-section-script.py: New file. commit 47d11be572aaf42cc67e6d925271d44bdecd104d Author: Doug Evans Date: Fri Apr 23 16:20:08 2010 +0000 Add support for auto-loading scripts from .debug_gdb_scripts section. * NEWS: Add entry for .debug_gdb_scripts. * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o. (SUBDIR_PYTHON_SRCS): Add py-auto-load.c. (py-auto-load.o): New rule. * cli/cli-cmds.c (find_and_open_script): Make externally visible. * cli/cli-cmds.h (find_and_open_script): Update prototype. * python/py-auto-load.c: New file. * python/python-internal.h: #include . (set_python_list, show_python_list): Declare. (gdbpy_initialize_auto_load): Declare. (source_python_script_for_objfile): Declare. * python/python.c: Remove #include of observer.h. (gdbpy_auto_load): Moved to py-auto-load.c. (GDBPY_AUTO_FILENAME): Ditto. (gdbpy_new_objfile): Delete. (source_python_script_for_objfile): New function. (set_python_list, show_python_list): Make externally visible. (_initialize_python): Move "auto-load" command to py-auto-load.c and observer_attach_new_objfile to py-auto-load.c. doc/ * gdb.texinfo (Python): Move Auto-loading section here ... (Python API): from here. (Auto-loading): Add docs for .debug_gdb_scripts auto-loaded scripts. (Maintenance Commands): Add docs for "maint print section-scripts". testsuite/ * gdb.python/py-section-script.c: New file. * gdb.python/py-section-script.exp: New file. * gdb.python/py-section-script.py: New file. commit dce2c723fe34f8cec95e4b62f24458bdf6919ef9 Author: Mike Frysinger Date: Fri Apr 23 15:39:15 2010 +0000 sim: fix fpu missing initializer warnings The current fpu code with externals enabled results in the warnings: common/sim-fpu.c:2437: warning: missing initializer common/sim-fpu.c:2437: warning: (near initialization for 'sim_fpu_zero.sign') common/sim-fpu.c:2440: warning: missing initializer common/sim-fpu.c:2440: warning: (near initialization for 'sim_fpu_qnan.sign') So tweak the old style initializers to avoid these. Signed-off-by: Mike Frysinger commit 8a504f76797a1662228fe89cb1a2aff2bf74fe58 Author: Jerome Guitton Date: Fri Apr 23 15:14:21 2010 +0000 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA) (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros. (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function): New constants. (alpha_heuristic_analyze_probing_loop): New function. (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect and handle cases when a stack probe loop is generated. * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function. (alpha_mdebug_max_frame_size_exceeded): New function. (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless. (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer): Return 0 when the maximum debuggable frame size has been exceeded. commit 1f0392f10c894a86f0fd3470c8ecc58e287f6d3b Author: Joel Brobecker Date: Fri Apr 23 12:36:05 2010 +0000 Fix ARI warning. * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline. commit a004661c072fb793b0656315c64a5debffd0d8b8 Author: cmoller Date: Fri Apr 23 12:08:04 2010 +0000 PR 10179 * symtab.c (rbreak_command): Added code to include a filename specification in the rbreak argument. * NEWS: Added a brief description of filename-qualified rbreak. * gdb.base/Makefile.in (EXECUTABLES): Added pr10179. * gdb.base/pr10179-a.c: * gdb.base/pr10179-b.c: * gdb.base/pr10179.exp: New files. * gdb.texinfo (Setting Breakpoints): Added description of filename-qualified rbreak. * refcard.tex (Breakpoints and Watchpoints): Added brief description of filename-qualified rbreak. commit c71ba49b25a4932ee4c558e5764b0ad484db9482 Author: gdbadmin Date: Fri Apr 23 00:00:33 2010 +0000 *** empty log message *** commit 62f173d91ab526d69da1ed15d4645771b36ba3c5 Author: Alan Modra Date: Fri Apr 23 00:00:07 2010 +0000 daily update commit 8b5ee5302e727c72d5a6c393f99268415f4f74a1 Author: Jan Kratochvil Date: Thu Apr 22 23:15:41 2010 +0000 gdb/ Fix crashes on dangling display expressions. * ada-lang.c (ada_operator_check): New function. (ada_exp_descriptor): Fill-in the field operator_check. * c-lang.c (exp_descriptor_c): Fill-in the field operator_check. * jv-lang.c (exp_descriptor_java): Likewise. * m2-lang.c (exp_descriptor_modula2): Likewise. * scm-lang.c (exp_descriptor_scm): Likewise. * parse.c (exp_descriptor_standard): Likewise. (operator_check_standard): New function. (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions. * parser-defs.h (struct exp_descriptor): New field operator_check. (operator_check_standard, exp_uses_objfile): New declarations. * printcmd.c: Remove the inclusion of solib.h. (display_uses_solib_p): Remove the function. (clear_dangling_display_expressions): Call lookup_objfile_from_block and exp_uses_objfile instead of display_uses_solib_p. * solist.h (struct so_list) : New comment. * symtab.c (lookup_objfile_from_block): Remove the static qualifier. * symtab.h (lookup_objfile_from_block): New declaration. (struct general_symbol_info) : Extend the comment. gdb/testsuite/ Fix crashes on dangling display expressions. * gdb.base/solib-display.exp: Call gdb_gnu_strip_debug if LIBSEPDEBUG is SEP. (lib_flags): Remove the "debug" keyword. (libsepdebug): New variable for iterating new loop. (save_pf_prefix): New variable wrapping the loop. (sep_lib_flags): New variable derived from LIB_FLAGS. Use it. * lib/gdb.exp (gdb_gnu_strip_debug): Document the return code. commit af126ee8ee92c7b4c5202b0b51aa93a0af92146b Author: Pierre Muller Date: Thu Apr 22 22:29:00 2010 +0000 * gdb.threads/watchthreads.exp: Change to obtain consistent output. commit fffc2febb5c821664224d784a2a1b020fc770bbf Author: Thiago Jung Bauermann Date: Thu Apr 22 22:26:35 2010 +0000 2010-04-22 Sergio Durigan Junior Thiago Jung Bauermann * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment. (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG, ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE, PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE, PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint, PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ, PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW, PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE, PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK, PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND, PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR, PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL, PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE): Define, in case doesn't provide it. (booke_debug_info): New variable. (max_slots_number): Ditto. (hw_break_tuple): New struct. (thread_points): Ditto. (ppc_threads): New variable. (PPC_DEBUG_CURRENT_VERSION): New define. (have_ptrace_new_debug_booke): New function. (ppc_linux_check_watch_resources): Renamed to ... (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors. (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors. (booke_cmp_hw_point): New function. (booke_find_thread_points_by_tid): Ditto. (booke_insert_point): Ditto. (booke_remove_point): Ditto. (ppc_linux_insert_hw_breakpoint): Ditto. (ppc_linux_remove_hw_breakpoint): Ditto. (get_trigger_type): Ditto. (ppc_linux_insert_watchpoint): Handle BookE processors. (ppc_linux_remove_watchpoint): Ditto. (ppc_linux_new_thread): Ditto. (ppc_linux_thread_exit): New function.. (ppc_linux_stopped_data_address): Handle BookE processors. (ppc_linux_watchpoint_addr_within_range): Ditto. (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and to_remove_hw_breakpoint fields of the target operations struct. Add observe for the thread_exit event. commit b09728c90cffb170d1ce52a74a863ca6111b2147 Author: H.J. Lu Date: Thu Apr 22 20:42:04 2010 +0000 Reformat. commit f1fa309f01bb0675e0191085e3034aec07d51e9f Author: H.J. Lu Date: Thu Apr 22 20:35:27 2010 +0000 Remove regmap from i386-linux-nat.c. 2010-04-22 H.J. Lu * i386-linux-nat.c (regmap): Removed. (fetch_register): Replace regmap with i386_linux_gregset_reg_offset. (store_register): Likewise. (supply_gregset): Likewise. (fill_gregset): Likewise. * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it global. * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New. commit 407cb192dcac2602aebaa7e262419adb580ecca6 Author: cmoller Date: Thu Apr 22 20:12:06 2010 +0000 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() method of popping recursion-detection stack with a method based on obstack_object_size(). (Similar to the PR9167 patch below, but for the static array obstack rather than the static member obstack.) commit f9abf6276285fe34e8b5901a6e4c5458bd8d533e Author: H.J. Lu Date: Thu Apr 22 20:02:55 2010 +0000 Remove amd64_linux_gregset64_reg_offset. 2010-04-22 H.J. Lu * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed. (_initialize_amd64_linux_nat): Replace amd64_linux_gregset64_reg_offset with amd64_linux_gregset_reg_offset. * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it global. * amd64-tdep.h (amd64_linux_gregset_reg_offset): New. commit ecd5b3a6117e092115ed892a18032e5e25197081 Author: Jan Kratochvil Date: Thu Apr 22 16:32:43 2010 +0000 gdb/doc/ * gdb.texinfo (Data): New @menu reference to Pretty Printing. (Python API): Change the reference to Pretty Printing API. (Pretty Printing): Move the user part under the Data node. Reformat the sample output to 72 columns. Create a new reference to Pretty Printing API. Rename the API part ... (Pretty Printing API): To a new node name. (Selecting Pretty-Printers, Progspaces In Python, Objfiles In Python) (GDB/MI Variable Objects): Change references to Pretty Printing API. commit c9a0b491ca6f6870ec6ab8f8de6b54c355b5d1b6 Author: Nick Clifton Date: Thu Apr 22 14:36:58 2010 +0000 Updated translation templates. Updated Bulgarian translation. Updated Finnish translations. Updated French translations. Updated Vietnamese translations. commit c9905fc6132dd9e3de05a0b8a4f4e6619c8ed18b Author: Pierre Muller Date: Thu Apr 22 13:37:17 2010 +0000 PR stabs/11479. * gdb.stabs/gdb11479.exp: New file. * gdb.stabs/gdb11479.c: New file. commit 3cc8e6cdbfc94925fbff2e5dceaaa12df6566112 Author: Pierre Muller Date: Thu Apr 22 12:34:24 2010 +0000 * Remove unwanted space in set_length_in_type_chain parameterdeclaration commit d0a355edc7cd47fed0d23b33c30bd08c1523f139 Author: Pierre Muller Date: Thu Apr 22 12:30:54 2010 +0000 PR stabs/11479. * stabsread.c (set_length_in_type_chain): New function. (read_struct_type): Call set_length_in_type_chain function. (read_enum_type): Idem. commit 89ef71a977367bf0a56d5dd0b95d3772498c7999 Author: Stan Shebs Date: Thu Apr 22 04:14:13 2010 +0000 2010-04-21 Stan Shebs Nathan Sidwell * tracepoint.c (trace_save): Open in binary mode. commit 77eac30f449e7c36b0b553ef4ae8a33cd47aa6e9 Author: Stan Shebs Date: Thu Apr 22 04:09:25 2010 +0000 2010-04-21 Stan Shebs * gdb.texinfo (Tracepoint Actions): Mention synonymy of actions and commands. (Listing Tracepoints): Update to reflect current behavior. commit e35eecf454ab64b65f9694238f87dc79599307bc Author: Mike Frysinger Date: Thu Apr 22 02:18:32 2010 +0000 sim: profile: implement --profile-file backend Need to update the sim_profile_print_bar() call after the common/ changes. Signed-off-by: Mike Frysinger commit da8c841ca0eb1d618d84659e6b7b6f4683ba78fd Author: Alan Modra Date: Thu Apr 22 01:50:59 2010 +0000 bfd/ * elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29 change. Tidy. Don't error on sections not allocated in segment. ld/testsuite/ * ld-elf/extract-symbol-1sec.d: Update lma. * ld-i386/alloc.d: Expect a warning, not an error. commit 51ee16fe6c51c80d06c0bf59acb4d49eaf254730 Author: Mike Frysinger Date: Thu Apr 22 00:40:44 2010 +0000 sim: profile: implement --profile-file backend Need to update the sim_profile_print_bar() call after the common/ changes. Signed-off-by: Mike Frysinger commit 39d64664a19cc9c4faeeb291e9443b7ac9aeedc7 Author: Mike Frysinger Date: Thu Apr 22 00:40:14 2010 +0000 sim: profile: implement --profile-file backend The common/ code uses sim_cpu rather than SIM_CPU to avoid inter-header dependency issues, so follow convention to fix building some targets. Signed-off-by: Mike Frysinger commit 6961c1c42a291aa5c17dbc851b50a9483040f1db Author: Mike Frysinger Date: Thu Apr 22 00:26:07 2010 +0000 sim: profile: implement --profile-file backend The profile code already has options and handling for accepting a file to write the profile output like the trace code, but it doesn't actually use it. At the moment, it simply opens the file at the start and closes it at the end. So add two new local functions the way the trace code is doing it and have them figure out whether to write the output to stdout or the specified file. Then convert all existing output in the profile code to use these helpers. Signed-off-by: Mike Frysinger commit 8f8167cdaaf041444a4a3dfc1b59e6ad429c4ed1 Author: gdbadmin Date: Thu Apr 22 00:00:35 2010 +0000 *** empty log message *** commit e93ab80cfb8f4dcd50a257515f7d5ce0cab38677 Author: Alan Modra Date: Thu Apr 22 00:00:06 2010 +0000 daily update commit 16a83ec93981a0c8d49b53e86976ff71aaa7a87c Author: Mike Frysinger Date: Thu Apr 22 00:26:07 2010 +0000 sim: profile: implement --profile-file backend The profile code already has options and handling for accepting a file to write the profile output like the trace code, but it doesn't actually use it. At the moment, it simply opens the file at the start and closes it at the end. So add two new local functions the way the trace code is doing it and have them figure out whether to write the output to stdout or the specified file. Then convert all existing output in the profile code to use these helpers. Signed-off-by: Mike Frysinger commit 5aecd954863c6cea3c18919ce348ba0d39a38c92 Author: gdbadmin Date: Thu Apr 22 00:00:35 2010 +0000 *** empty log message *** commit e9ae978c7b5ee6d7d0b0b9bb7271ea0edb73dd6a Author: Alan Modra Date: Thu Apr 22 00:00:06 2010 +0000 daily update commit cdf9848477a6561a40be7c57c46f2abc49d0ca05 Author: Pierre Muller Date: Wed Apr 21 23:21:03 2010 +0000 gdb ChangeLog * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32 fields. * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and builtin_char32 fields. * printcmd.c (decode_format): Set char size to '\0' for strings unless explicit size is given. (print_formatted): Correct calculation of NEXT_ADDRESS for 16 or 32 bit strings. (do_examine): Do not force byte size for strings. Use builtin_char16 and builtin_char32 types to display 16 or 32 bit-wide strings. (x_command): Set LAST_SIZE to 'b' for string type. gdb/doc ChangeLog * gdb.texinfo (Examining memory): Update for change in string display with explicit size. gdb/testsuite ChangeLog * gdb.base/charset.c (Strin16, String32): New variables. * gdb.base/charset.exp (gdb_test): Test correct display of 16 or 32 bit strings. commit c2b2e301e54bb219b900d8499cd59fa4f4b7f0da Author: H.J. Lu Date: Wed Apr 21 20:23:03 2010 +0000 Reformat. commit 1ef00b9be705584d5817a359e4ccebeb8e461acf Author: H.J. Lu Date: Wed Apr 21 20:22:14 2010 +0000 Properly read i386 coredump. 2010-04-21 H.J. Lu PR corefiles/11523 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check XCR0 first. * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if there is no .reg-xstate section. (i386_linux_core_read_description): Check XCR0 first. commit 9663d5addd595ff276e3bd8a6d0055f51441fb52 Author: Mike Frysinger Date: Wed Apr 21 20:13:41 2010 +0000 gdb: workaround sparc memcpy fortify error Building on an x86_64-linux system with --enable-targets=all fails on the sparc code with a fortify error: cc1: warnings being treated as errors In file included from /usr/include/string.h:640, from gnulib/string.h:23, from ../../gdb/gdb_string.h:25, from ../../gdb/vec.h:25, from ../../gdb/memattr.h:24, from ../../gdb/target.h:60, from ../../gdb/exec.h:23, from ../../gdb/gdbcore.h:31, from ../../gdb/sparc-tdep.c:29: In function 'memcpy', inlined from 'sparc32_store_return_value' at ../../gdb/sparc-tdep.c:1112, inlined from 'sparc32_return_value' at ../../gdb/sparc-tdep.c:1170: /usr/include/bits/string3.h:52: error: call to __builtin___memcpy_chk will always overflow destination buffer make: *** [sparc-tdep.o] Error 1 This is due to the gcc optimizer bug PR37060, so tweak the gdb_assert () to avoid the issue. Signed-off-by: Mike Frysinger commit 601b03265c0ab7aadd8446abef13683d294c78c5 Author: H.J. Lu Date: Wed Apr 21 20:23:03 2010 +0000 Reformat. commit 93720bdabf1e7e6d402f9959a131df333c13f396 Author: H.J. Lu Date: Wed Apr 21 20:22:14 2010 +0000 Properly read i386 coredump. 2010-04-21 H.J. Lu PR corefiles/11523 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check XCR0 first. * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if there is no .reg-xstate section. (i386_linux_core_read_description): Check XCR0 first. commit 151bf6fbf3eecce5ffeb1af216ff581b80fd3200 Author: Mike Frysinger Date: Wed Apr 21 20:13:41 2010 +0000 gdb: workaround sparc memcpy fortify error Building on an x86_64-linux system with --enable-targets=all fails on the sparc code with a fortify error: cc1: warnings being treated as errors In file included from /usr/include/string.h:640, from gnulib/string.h:23, from ../../gdb/gdb_string.h:25, from ../../gdb/vec.h:25, from ../../gdb/memattr.h:24, from ../../gdb/target.h:60, from ../../gdb/exec.h:23, from ../../gdb/gdbcore.h:31, from ../../gdb/sparc-tdep.c:29: In function 'memcpy', inlined from 'sparc32_store_return_value' at ../../gdb/sparc-tdep.c:1112, inlined from 'sparc32_return_value' at ../../gdb/sparc-tdep.c:1170: /usr/include/bits/string3.h:52: error: call to __builtin___memcpy_chk will always overflow destination buffer make: *** [sparc-tdep.o] Error 1 This is due to the gcc optimizer bug PR37060, so tweak the gdb_assert () to avoid the issue. Signed-off-by: Mike Frysinger commit 492e9eaccb02b1322b102f52059d952cb452354a Author: H.J. Lu Date: Wed Apr 21 20:23:03 2010 +0000 Reformat. commit 2e9157d5ff407b896faf67e01efcd7f943c5032a Author: H.J. Lu Date: Wed Apr 21 20:22:14 2010 +0000 Properly read i386 coredump. 2010-04-21 H.J. Lu PR corefiles/11523 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check XCR0 first. * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if there is no .reg-xstate section. (i386_linux_core_read_description): Check XCR0 first. commit 369d8b6a68317b868746581b3f03340a18bd49d8 Author: Mike Frysinger Date: Wed Apr 21 20:13:41 2010 +0000 gdb: workaround sparc memcpy fortify error Building on an x86_64-linux system with --enable-targets=all fails on the sparc code with a fortify error: cc1: warnings being treated as errors In file included from /usr/include/string.h:640, from gnulib/string.h:23, from ../../gdb/gdb_string.h:25, from ../../gdb/vec.h:25, from ../../gdb/memattr.h:24, from ../../gdb/target.h:60, from ../../gdb/exec.h:23, from ../../gdb/gdbcore.h:31, from ../../gdb/sparc-tdep.c:29: In function 'memcpy', inlined from 'sparc32_store_return_value' at ../../gdb/sparc-tdep.c:1112, inlined from 'sparc32_return_value' at ../../gdb/sparc-tdep.c:1170: /usr/include/bits/string3.h:52: error: call to __builtin___memcpy_chk will always overflow destination buffer make: *** [sparc-tdep.o] Error 1 This is due to the gcc optimizer bug PR37060, so tweak the gdb_assert () to avoid the issue. Signed-off-by: Mike Frysinger commit 93e702af0fc5693d8c8f811068f490e7ff9e75bd Author: Joseph Myers Date: Wed Apr 21 18:56:45 2010 +0000 gas/testsuite: * gas/tic6x/insns-c674x.s, gas/tic6x/insns-c674x.d: Also test "b .S2 b3". include/opcode: * tic6x-insn-formats.h (s_branch): Correct typo in bitmask. commit d54f5671e190a5c0ca8fd1ff070372bf20eb42a8 Author: cmoller Date: Wed Apr 21 17:33:51 2010 +0000 PR 9167 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base() method of popping recursion-detection stack with a method based on obstack_object_size(). * gdb.cp/Makefile.in (EXECUTABLES): Added pr9167. * gdb.cp/pr9167.cc: New file. * gdb.cp/pr9167.exp: New file. commit 1e85eb412378e25d0f65e49ddcfc54b774e7c63f Author: Andrew Haley Date: Wed Apr 21 16:32:25 2010 +0000 2010-04-15 Andrew Haley * emultempl/armelf.em (merge_exidx_entries): New variable. (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition. ("no-merge-exidx-entries"): New option. * ld.texinfo (merge-exidx-entries): Document this option. 2010-04-15 Andrew Haley * bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag: merge_exidx_entries. * bfd-in2.h: Likewise. * elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise. Use it to control merging of exidx entries. 2010-04-15 Andrew Haley * options.h (merge_exidx_entries): New option. * arm.cc (class Arm_exidx_fixup): Add new arg, merge_exidx_entries. (class Arm_exidx_fixup::merge_exidx_entries_): New member. (Output_section::fix_exidx_coverage): Add new arg, merge_exidx_entries. (Target_arm::merge_exidx_entries): New function. (process_exidx_entry): Don't merge if merge_exidx_entries_ is false. (Arm_output_section::fix_exidx_coverage): Pass merge_exidx_entries to Arm_exidx_fixup constructor. Add new arg, merge_exidx_entries. (Target_arm::fix_exidx_coverage): pass merge_exidx_entries to Arm_output_section::fix_exidx_coverage. commit e4baba782ed583a21b8c4498a1a32bef653ac824 Author: Aleksandar Ristovski Date: Wed Apr 21 13:42:56 2010 +0000 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists. * nto-x86-low.c: Include server.h commit c2ca0c40da5e38e72592a07d3db8e3304ca24128 Author: Pierre Muller Date: Wed Apr 21 09:54:58 2010 +0000 gdb ChangeLog PR pascal/11492. * p-valprint.c (pascal_val_print): Fix default printing of integer arrays. gdb/testsuite ChangeLog PR pascal/11492. * gdb.pascal/gdb11492.pas: New file. * gdb.pascal/gdb11492.exp: New file. commit 135d95fa2aeb55f8100bd7f98f086b06b1b85b12 Author: Pierre Muller Date: Wed Apr 21 08:44:47 2010 +0000 Fix compilation warning on gcc-4.1.2. * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize local variable`pc' to zero. commit ca91f46b20ba544ccef7d50f8d3a63078e90e8b1 Author: Doug Evans Date: Wed Apr 21 03:27:35 2010 +0000 * gdb.base/source-test.gdb: New file. Remove duplicate entry. commit 9ab3392d43a277c68581db1d80b8abc32e560cd6 Author: gdbadmin Date: Wed Apr 21 00:00:34 2010 +0000 *** empty log message *** commit a67f6c69b74ab0823b5a954e3648f7758b0e0ec7 Author: Alan Modra Date: Wed Apr 21 00:00:04 2010 +0000 daily update commit a119e44e706d94dd0fa555d3dc838abc0ef0d8b0 Author: Joel Brobecker Date: Tue Apr 20 23:14:12 2010 +0000 Implement thread support with core files on alpha-tru64 Thread support currently does not work with core files. Note that, in order to thread support to work on tru64, one need to allow GDB to write in the core file (this is because the thread debug library needs to write). An obvious visible symptom of the problem is that "info threads" does not list the various threads: (gdb) info threads * 1
0x000003ff805c0918 in __nxm_thread_kill () from /usr/shlib/libpthread.so One other noticeable consequence is that GDB generates some warnings when using "info tasks": (gdb) info tasks warning: Could not find thread id from THREAD = 0x3ffc01b6000 warning: Could not find thread id from THREAD = 0x20000e2b4c0 ID TID P-ID Pri State Name * 1 140051000 0 30 Runnable main_task * 2 14005c000 1 30 Accept or Select Term my_t (notice also how both tasks are marked as being the active task, which cannot be true). The problem is that the dec-thread module has not updated its thread list after the core file got loaded. In fact, the list only gets resync'ed at the end of each target-wait. The solution was to implement the find_new_threads target_ops method. gdb/ChangeLog: Implement thread support with core files on alpha-tru64. * dec-thread.c (dec_thread_find_new_threads): New function, extracted from resync_thread_list. (resync_thread_list): Add OPS parameter. Replace extracted-out code by call to dec_thread_find_new_threads. (dec_thread_wait): Update call to resync_thread_list. (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads. commit 7c9af59093f29ff2608d9fbbed4036d2d88152b4 Author: Joel Brobecker Date: Tue Apr 20 22:51:24 2010 +0000 Add missing directory name in last ChangeLog entry. commit b5778c6067ff8b88f0ecdddafb7e0656038dabc2 Author: Joel Brobecker Date: Tue Apr 20 22:40:36 2010 +0000 [AVR] inferior call of subprogram with pointer as argument On AVR, the gdb view of an address is different from the machine view of the same address. We need to use special machinery implemented by value_pointer to take the pointer of a value. For instance, considering the following function... procedure Trace (Unit : T; Message : String); ... where T is an access Integer (a pointer to an integer), call to this function currently triggers the following warnings: (gdb) call debug.trace (me, "You") warning: Value does not fit in 16 bits. warning: Value does not fit in 16 bits. Tracing message: You It could have been worse if Trace actually tried to dereference the Unit argument... gdb/ChangeLog (from Tristan Gingold): * ada-lang.c (value_pointer): New function. (make_array_descriptor): Call value_pointer to convert addresses to pointers. Tested on avr and x86_64-linux. commit 0189a027029f5791fe4067bbde52db33ac4340f1 Author: Joel Brobecker Date: Tue Apr 20 22:38:53 2010 +0000 [AIX] Memory error while checking if pointer is descriptor. A long time ago (Oct 2009), I noticed a problem on AIX, where something failed with an error while the debugger was checking whether an address was a descriptor or not. Unfortunately, like an idiot, I forgot to write notes about the scenario where the problem occured - I am usually pretty meticulous about that because my memory of these things is really bad. I hope you'll forgive me for not providing a solid testcase - if it's any consolation, I've searched for a long time before giving up :-(. Based on the testsuite reports that I have, I think that this happened while inserting a breakpoint, as follow: (gdb) break x Cannot access memory at address 0x200093b4 What happened is that rs6000_convert_from_func_ptr_addr tried to read the memory at the given address, and fail because of an exception. It seems pretty clear that, if the address was in fact a descriptor, GDB would have been able to read the target memory region. So this patch protects the memory-read against exceptions, and treats such exceptions as an indication that our address is not a descriptor. gdb/ChangeLog: * rs6000-aix-tdep.c: #include exceptions.h. (rs6000_convert_from_func_ptr_addr): If an exception is thrown while reading the memory at ADDR, then ADDR cannot be a function descriptor. commit 0df8296ccbe06c092d21cf9e808d4f634ca1a6c2 Author: Joel Brobecker Date: Tue Apr 20 22:38:01 2010 +0000 "unsupported language" error in info types when using Ada. This implements a rudimentary version of the la_print_typedef method for Ada. Ada usually does not use typedefs, but there is one exception: pointers to unconstrained arrays. Without this patch, we sometimes get an error in the "info types" output: (gdb) info types new_integer_type All types matching regular expression "new_integer_type": File foo.adb: Language not supported. For now, we treat the typedef as if it did not exist - using the underlying type instead. This is the right thing to do for most cases, the only exception being access to array types. Since we already have a general issue in handling these pointers (we confuse them with fat pointers), we will enhance ada_print_typedef to handle these pointers at the same time we address the general issue. gdb/ChangeLog: * ada-typeprint.c (ada_print_typedef): New function. * ada-lang.h (ada_print_typedef): Add declaration. * ada-lang.c (ada_language_defn): set la_print_typdef field to ada_print_typedef. gdb/testsuite/ChangeLog: * info_types.c, info_types.exp: New files. Tested on x86_64-linux. commit 949ed6ecaacec61013e66818f1f1d0c17369b185 Author: Joel Brobecker Date: Tue Apr 20 22:36:35 2010 +0000 Unused function in procfs.c on alpha-tru64. The procfs_address_to_host_pointer function was not used outside of alpha-tru64, and thus was triggering a compiler warning. Adjusted accordingly. gdb/ChangeLog: * procfs.c (procfs_address_to_host_pointer): Only define when used. commit 95194f81a233801fcb414f861da13a39c0cc3825 Author: Joel Brobecker Date: Tue Apr 20 22:35:57 2010 +0000 procfs.c: iterate_over_mappings callback has wrong profile. The function proc_find_memory_regions calls iterate_over_mappings as follow: > return iterate_over_mappings (pi, func, data, > find_memory_regions_callback); The problem is that both func and find_memory_regions_callback do not match the profile expected by iterate_over_mappings: > iterate_over_mappings (procinfo *pi, int (*child_func) (), void *data, > int (*func) (struct prmap *map, > int (*child_func) (), > void *data)) We cannot change proc_find_memory_regions such that FUNC is a pointer to a function that takes no argument (in place of the 6 that it has). This is because proc_find_memory_regions is used as a target_ops method. However, it turns out that changing iterate_over_mappings to conform to the profile imposed by the target_ops vector is possible without much effort. gdb/ChangeLog: * procfs.c (iterate_over_mappings_cb_ftype): New typedef. (iterate_over_mappings): Adjust function profile. Add declaration. (insert_dbx_link_bpt_in_region, info_mappings_callback): Adjust accordingly. commit 0a784d2742791209e8042a9c7c35f58f3cdcb36d Author: Joel Brobecker Date: Tue Apr 20 22:35:03 2010 +0000 procfs.c: Move solib_mappings_callback up to avoid compiler warning. There are currently 2 issues with the placement of this routine: - It's defined after it is being used (causing an implicit declaration); - It looks like it's being defined all the time, whereas it is used only on mips-irix (AFAICT) - shouldn't have this triggered a warning on sparc-solaris, for instance??? In any case, this patch moves this function up, inside the right region, just before the function where it is actually used. gdb/ChangeLog: * procfs.c (solib_mappings_callback): Move function up to avoid a compiler warning. commit f91cf5763ac25e9926943c26e64caff6d2c976b0 Author: Joel Brobecker Date: Tue Apr 20 22:34:09 2010 +0000 procfs.c: Move find_signalled_thread and find_stop_signal. These two functions are only used from procfs_make_note_section, which itself is only defined if: #if defined (UNIXWARE) || defined (PIOCOPENLWP) || defined (PCAGENT) So these two functions are unused on mips-irix, and they get flagged by -Wunused-function. This patch simply moves these functions closer to the function that uses them, which also has the effect of putting them inside the same #if block as procfs_make_note_section. Thus they are defined only when used. gdb/ChangeLog: * procfs.c (find_signalled_thread, find_stop_signal): Move these functions down to define them only when used. commit 36ccd968aa12f631c23256b314822943f1e4ac22 Author: Joel Brobecker Date: Tue Apr 20 22:26:56 2010 +0000 Wrong value printed by info locals for dynamic object. The problem is printing the wrong value for dynamic local variables when using the "info locals" command. Consider the following code: procedure Print (I1 : Positive; I2 : Positive) is type My_String is array (I1 .. I2) of Character; I : My_String := (others => 'A'); S : String (1 .. I2 + 3) := (others => ' '); begin S (I1 .. I2) := String (I); -- BREAK Put_Line (S); end Print; After the debugger stopped at BREAK, we try printing all local variables. Here is what we get: (gdb) info locals i = "["00"]["00"]" s = "["00"]["00"]["00"]["00"]["00"]["00"]["00"]["00"]" Curiously, printing their value using the "print" command works: (gdb) print i $1 = "AA" (gdb) print s $2 = " " We traced the problem to trying to get the contents of a variable (call to value_contents) before "fix'ing" it. For those not familiar with the Ada language support, "fixing" a value consists of swapping the value's dynamic type with a static version that is appropriate for our actual value. As a result, the dynamic type was used to determine the value size, which is zero, and thus the value contents was empty. gdb/ChangeLog: * valprint.c (common_val_print): Fix the value before extracting its contents. * ada-lang.c (ada_to_fixed_value): Make this function extern. * ada-lang.h (ada_to_fixed_value): New function declaration. * ada-valprint.c (ada_value_print): Use ada_to_fixed_value to avoid code duplication and fix a bug in the handling of fixed types contents. gdb/testsuite/ChangeLog: * gdb.ada/dyn_loc: New testcase. commit c0fe155d4ef80977ebeab93976d0f1f25516e783 Author: Joseph Myers Date: Tue Apr 20 22:02:56 2010 +0000 bfd: * elf32-tic6x.h: New. * elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA. * elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata, elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel, elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject, elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p, bfd_elf32_mkobject, bfd_elf32_new_section_hook): New. (elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup, elf32_tic6x_relocate_section): Handle REL relocations. (elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel. gas: * config/tc-tic6x.c (OPTION_MGENERATE_REL): New. (md_longopts): Add -mgenerate-rel. (tic6x_generate_rela): New. (md_parse_option): Handle -mgenerate-rel. (md_show_usage): Add comment that -mgenerate-rel is undocumented. (tic6x_init_after_args): New. (md_apply_fix): Correct shift calculations for SB-relative relocations. (md_pcrel_from): Change to tic6x_pcrel_from_section. Do not adjust addresses for relocations referencing symbols in other sections. (tc_gen_reloc): Adjust addend calculations for REL relocations. * config/tc-tic6x.h (MD_PCREL_FROM_SECTION, tic6x_pcrel_from_section, tc_init_after_args, tic6x_init_after_args): New. ld/testsuite: * ld-tic6x/data-reloc-global-rel.d, ld-tic6x/data-reloc-global-rel.s, ld-tic6x/data-reloc-local-r-rel.d, ld-tic6x/data-reloc-local-rel.d, ld-tic6x/mvk-reloc-global-rel.d, ld-tic6x/mvk-reloc-global-rel.s, ld-tic6x/mvk-reloc-local-1-rel.s, ld-tic6x/mvk-reloc-local-2-rel.s, ld-tic6x/mvk-reloc-local-r-rel.d, ld-tic6x/mvk-reloc-local-rel.d, ld-tic6x/pcrel-reloc-global-rel.d, ld-tic6x/pcrel-reloc-local-r-rel.d, ld-tic6x/pcrel-reloc-local-rel.d, ld-tic6x/sbr-reloc-global-rel.d, ld-tic6x/sbr-reloc-global-rel.s, ld-tic6x/sbr-reloc-local-1-rel.s, ld-tic6x/sbr-reloc-local-2-rel.s, ld-tic6x/sbr-reloc-local-r-rel.d, ld-tic6x/sbr-reloc-local-rel.d: New. commit 669907bd6d54ae8e85b1278f0f16f8641ce6802d Author: Tom Tromey Date: Tue Apr 20 21:19:07 2010 +0000 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name. (read_partial_die): Likewise. (dwarf_attr_name): Likewise. commit 78c144e8c3ae7bb36d632f6bfaaaad9c97199ce6 Author: cmoller Date: Tue Apr 20 20:22:09 2010 +0000 PR 10867 * cp-valprint.c (global): Adding new static array recursion detection obstack. (cp_print_value_fields, cp_print_static_field): Added new static array recursion detection code. * gdb.cp/Makefile.in (EXECUTABLES): Added pr10687 * gdb.cp/pr10687.cc: New file. * gdb.cp/pr10687.exp: New file commit a5100fac1feb40667d8417391a427ae61487b4ee Author: Mark Kettenis Date: Tue Apr 20 19:39:49 2010 +0000 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the general-purpose register set should be 68 instead of 144. (i386_linux_sse_regset_sections): Likewise. (i386_linux_avx_regset_sections): Likewise. commit a96a30ba457510a1daf70a2d671b99c55b13a970 Author: Stan Shebs Date: Tue Apr 20 18:52:58 2010 +0000 2010-04-20 Stan Shebs Nathan Sidwell * dwarf2loc.c (struct axs_var_loc): New struct. (dwarf2_tracepoint_var_loc): New function. (dwarf2_tracepoint_var_access): New function. (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal with DW_OP_piece. (locexpr_describe_location_piece): New function. (locexpr_describe_location_1): New function. (locexpr_describe_location): Call it, update signature. (loclist_describe_location): Rewrite to loop over locations, update signature. * symtab.h (struct symbol_computed_ops): Add address to describe_location arguments, return void. * printcmd.c (address_info): Get context PC, pass to computed location description. * tracepoint.c (scope_info): Ditto. * ax-gdb.c (trace_kludge): Export. commit be1f57c90bdf86477b9bc69cc982171d6ad5df56 Author: Tom Tromey Date: Tue Apr 20 17:33:13 2010 +0000 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4. (struct dwarf2_cie) : New field. * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4. (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset, DW_FORM_exprloc. (read_attribute_value): Handle DW_FORM_flag_present, DW_FORM_sec_offset, DW_FORM_exprloc. (dump_die_shallow): Likewise. (attr_form_is_section_offset): Handle DW_FORM_sec_offset. (dwarf2_const_value): Handle DW_FORM_exprloc. (attr_form_is_block): Likewise. (struct line_header) : New field. (dwarf_decode_line_header): Set new field. (dwarf_decode_lines): Handle new field. commit 8ee302683860723cc53c405bf12cebfe2d70fae1 Author: sergiodj Date: Tue Apr 20 17:22:14 2010 +0000 gdb/ChangeLog: 2010-04-20 Jan Kratochvil * f-exp.y: Add new production to recognize the `logical*8' type. (LOGICAL_S8_KEYWORD): New token. * f-lang.c (enum f_primitive_types) : New field. (f_language_arch_info): Handling `logical*8' type. (build_fortran_types): Building `logical*8' type. * f-lang.h (struct builtin_f_type) : New field. gdb/testsuite/ChangeLog: 2010-04-20 Jan Kratochvil Sergio Durigan Junior * gdb.fortran/logical.exp: New testcase. * gdb.fortran/logical.f90: New file. commit d7fff800bc0d0b41183b0d7171394ba23cfac48e Author: Pierre Muller Date: Tue Apr 20 09:58:42 2010 +0000 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to be consistent with other sources of this directory. (init_registers_amd64): Correct name of source file of this function in the comment. commit 01bb9f51ab954354722aac3e7d41c04016494457 Author: Jakub Jelinek Date: Tue Apr 20 09:53:05 2010 +0000 * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name. commit 0845b5bcaed448f890af5f05c043d3014ccbc20b Author: Doug Evans Date: Tue Apr 20 06:06:38 2010 +0000 (generic_readchar): Tweak previous checkin, close error_fd if EOF. commit 07ed1d58ab86b51ff98fc9b4f9f6104ea6a2edea Author: Doug Evans Date: Tue Apr 20 05:52:06 2010 +0000 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd. * ser-pipe.c (pipe_open): Fix file descriptor leaks. (pipe_close): Ditto. commit e38d9943877fcd65c83701b901fc9c4ddfa4bf77 Author: Doug Evans Date: Tue Apr 20 05:36:02 2010 +0000 * gdb.base/help.exp (help source): Update expected output. commit 3dcbf5579175d84836dea85fae0d346af3540269 Author: Pierre Muller Date: Tue Apr 20 00:21:30 2010 +0000 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes. commit 74a4aafb0e70c5f50588fae4d8ceddcc71639cb8 Author: Pierre Muller Date: Tue Apr 20 00:19:35 2010 +0000 * configure.srv (x86_64-*-mingw*): New configuration for Windows 64-bit executables. commit 7779ca9c5b2e8d7a337a942879a2853efb61a083 Author: Pierre Muller Date: Tue Apr 20 00:17:04 2010 +0000 * win32-i386-low.c: Add 64-bit support. (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting. (init_registers_amd64): Declare. (mappings): Add 64-bit version of array. (init_windows_x86): New function. (the_low_target): Change init_arch field to init_windows_x86. commit 926c78553c0c2a5164b6b23e08ea8b4a220afb2d Author: Pierre Muller Date: Tue Apr 20 00:07:43 2010 +0000 * win32-low.c: Adapt to support also 64-bit architecture. (child_xfer_memory): Use uintptr_t type for local variable `addr'. (get_image_name): Use SIZE_T type for local variable `done'. (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'. (toolhelp_get_dll_name): Idem. (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'. Use uintptr_t typecast to avoid warning. (handle_unload_dll): Use uintptr_t typecast to avoid warning. (handle_exception): Use phex_nz to avoid warning. (win32_wait): Remove unused local variable `process'. commit 369c4d97d5539446d56e92e010e69536b122ed1a Author: Alan Modra Date: Tue Apr 20 00:00:06 2010 +0000 daily update commit 840611126e1efd3cc57bdcb9a38498682121a8dd Author: gdbadmin Date: Tue Apr 20 00:00:03 2010 +0000 *** empty log message *** commit 18446285228b830f3e0b7dbc86df580dfa1725b9 Author: Pierre Muller Date: Mon Apr 19 23:52:11 2010 +0000 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle type to void function. commit 0f8aa2a477151133bb58079af6da7212644e1453 Author: Stan Shebs Date: Mon Apr 19 22:06:16 2010 +0000 2010-04-19 Stan Shebs Vladimir Prus * tracepoint.c (tfind_1): Add missing newline, report exit from tfind mode as such. * target.c (update_current_target): Make default to_trace_find return -1. commit 237c2dc7c52137e20f901b7f99d9c7510a529e24 Author: Mike Frysinger Date: Mon Apr 19 19:51:38 2010 +0000 gdb: objc-lang: check symbol name before accessing memory The current ObjC logic will check both the symbol name and the target address space when trying to locate an appropriate selector. The problem is that first the target address space is checked before the symbol name. This may lead to a lot of unnecessary host<->target transactions when dealing with a non-OjbC target that does use function descriptors to describe functions as every symbol will have its FD read just to have the result thrown away with non-matching symbol names. It also may lead to problems when a non-FD symbol is found that points near the end of the address space as the target will throw up a memory_error(). One such example are symbols that are not functions, smaller than a FD, and are the last valid location. Obviously treating it as a larger data struct can cause memory overflows. So to speed things up and not screw over such targets, check the symbol name (which we already have locally) first before attempting to read the function's descriptor. This fixes breakpoints with Blackfin Linux FDPIC ELFs, and seems to cause no native regressions on my x86_64/Linux system. Signed-off-by: Mike Frysinger commit 59c88a4654dc522a78e35349afc22b01ee6b9c58 Author: Mike Frysinger Date: Mon Apr 19 19:03:28 2010 +0000 sim: mn10300: convert to new sockser status code Signed-off-by: Mike Frysinger commit 69a911070b9cc4409ca96062b8be09dd758d7e19 Author: Mike Frysinger Date: Mon Apr 19 18:42:00 2010 +0000 sim: add --model-info helper option There is an architecture-info flag for listing possible arch values, but there is on equivalent for listing possible model values. So add the equivalent for models. Signed-off-by: Mike Frysinger commit 07ed560d9cc91d0e341657907900e2cd12815ed9 Author: Pedro Alves Date: Mon Apr 19 17:06:08 2010 +0000 * ada-lang.c (print_recreate_exception) : It's "catch exception unhandled", not "catch unhandled". commit 2cc27dee809ad8183b317e9705cde12358d52b8d Author: Pierre Muller Date: Mon Apr 19 14:08:05 2010 +0000 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by `amd64-avx.o'. commit c8eb11c3a5c192caae27d7d3238932703776c127 Author: Nick Clifton Date: Mon Apr 19 08:46:45 2010 +0000 * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused arhdrpos variable. * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused attribute to warned variable. Remove unused val, type and type2 variables. commit b5f20afcbdea985a35dbab687dbe3ea7c2adccfd Author: Jan Kratochvil Date: Mon Apr 19 03:13:06 2010 +0000 gdb/testsuite/ * gdb.base/solib-display.exp: Replace gdb_exit, gdb_start, gdb_reinitialize_dir and gdb_load by clean_restart. Remove trailing gdb_exit and return. (executable): New variable. (binfile): Use it. commit 036094daebe2a94efe7873677edcb9c31843c1ce Author: Pedro Alves Date: Mon Apr 19 01:08:25 2010 +0000 Fix format of previous-previous entry. commit 2786d01bf75bf58995083baee229f8a9cdf3aba6 Author: Pedro Alves Date: Mon Apr 19 00:48:42 2010 +0000 PR breakpoints/8554. Implement `save-breakpoints'. gdb/ * breakpoint.c (save_cmdlist): New. (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close to save_cmdlist. (print_recreate_catch_fork): New. (catch_fork_breakpoint_ops): Install it. (print_recreate_catch_vfork): New. (catch_vfork_breakpoint_ops): Install it. (print_recreate_catch_syscall): New. (catch_syscall_breakpoint_ops): Install it. (print_recreate_catch_exec): New. (catch_exec_breakpoint_ops): Install it. (print_recreate_exception_catchpoint): New. (gnu_v3_exception_catchpoint_ops): Install it. (save_breakpoints): New, based on tracepoint_save_command, but handle all breakpoint types. (save_breakpoints_command): New. (tracepoint_save_command): Rename to... (save_tracepoints_command): ... this, and reimplement using save_breakpoints. (save_command): New. (_initialize_breakpoints): Install the "save" command prefix. Install the "save breakpoints" command. Make "save-tracepoints" a deprecated alias for "save tracepoints". * breakpoint.h (struct breakpoint_ops): New field `print_recreate'. * ada-lang.c (print_recreate_exception): New. (print_recreate_catch_exception): New. (catch_exception_breakpoint_ops): Install it. (print_recreate_catch_exception_unhandled): New. (catch_exception_unhandled_breakpoint_ops): Install it. (print_recreate_catch_assert): New. (catch_assert_breakpoint_ops): Install it. * NEWS: Mention the new `save breakpoints' command. Mention the new `save tracepoints' alias and that `save-tracepoints' is now deprecated. gdb/doc/ * gdb.texinfo (Save Breakpoints): New node. (save-tracepoints): Rename to ... (save tracepoints): ... this. Mention that `save-tracepoints' is a deprecated alias to `save tracepoints'. gdb/testsuite/ * gdb.trace/save-trace.exp: Adjust. commit abeaf4a297056e0092051a7a9be14d89f1344174 Author: gdbadmin Date: Mon Apr 19 00:00:34 2010 +0000 *** empty log message *** commit 37f62e955c561cffa75973aaa49cd24eb7246194 Author: Alan Modra Date: Mon Apr 19 00:00:05 2010 +0000 daily update commit 9cf7bd5857f0fe4d75c732b6fcf7178588bc6404 Author: Pedro Alves Date: Sun Apr 18 00:11:54 2010 +0000 PR tui/9217 * tui/tui-out.c: Include cli-out.h. (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) (tui_begin, tui_end, tui_field_int, tui_field_skip) (tui_field_string, tui_field_fmt, tui_spaces, tui_text) (tui_message, tui_wrap_hint, tui_flush): Delete forward declarations. (struct ui_out_data): Rename to... (struct tui_ui_out_data): ... this. Remove `stream' and `suppress_output' fields, and inherit cli_ui_out_data. (tui_out_data): New typedef. (tui_ui_out_impl): Don't initialize fields staticaly. (tui_table_begin, tui_table_body, tui_table_end, tui_table_header) (tui_begin, tui_end): Delete. (tui_field_int): Adjust to delegate most work to the base type. (tui_field_skip): Delete. (tui_field_string, tui_field_fmt): Adjust comment. Adjust to delegate most work to the base type. (tui_spaces): Delete. (tui_text): Adjust to delegate most work to the base type. (tui_message): Delete. (tui_wrap_hint): Delete. (tui_flush): Delete. (out_field_fmt): Delete. (field_separator): Delete. (tui_out_new): Adjust to initialize the base type. (_initialize_tui_out): Initialize tui_ui_out_impl. * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed cli_ui_out_data. (cli_out_data): Adjust. (cli_ui_out_impl): Make extern. (cli_table_header, cli_field_int, cli_field_skip): Use uo_field_string instead of cli_field_string. (cli_redirect): Adjust to use cli_out_data. (cli_out_data_ctor): New. (cli_out_new): Use it. * cli-out.h (struct ui_file): Remove forward declaration. (struct cli_ui_out_data): New, moved from cli-out.c, and renamed. (cli_ui_out_impl): Declare. (cli_out_data_ctor): Declare. * ui-out.c (struct ui_out) : Change type to void pointer. (uo_field_string): No longer static. (ui_out_data): Change return type to void pointer. (ui_out_new): Change `data' parameter type to void pointer. * ui-out.h (struct ui_out_data): Don't forward declare. (ui_out_data): Change return type to void pointer. (ui_out_new): Change `data' parameter type to void pointer. (uo_field_string): Declare. commit 928300f07f84b4c3b68f4caa961b8e01da9a210d Author: gdbadmin Date: Sun Apr 18 00:00:34 2010 +0000 *** empty log message *** commit cb561e51f18b20d5e8b1a015b93b751459bb0330 Author: Alan Modra Date: Sun Apr 18 00:00:04 2010 +0000 daily update commit d8ddf47ca6ebf4f501050e28d83a88871cdb572f Author: Pedro Alves Date: Sat Apr 17 23:56:26 2010 +0000 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty, instead of always false. commit 8997115c02953f3ea7b851ab4c564264f442c1d7 Author: Pierre Muller Date: Sat Apr 17 20:43:13 2010 +0000 * configure.ac: Use `ws2_32' library for srv_mingw. * configure: Regenerate. * gdbreplay.c: Include winsock2.h instead of winsock.h. * remote-utils.c: Likewise. commit 1e5ccfab8b5a3019552434a16a4c925b00fa56db Author: H.J. Lu Date: Sat Apr 17 18:53:45 2010 +0000 gdb/ 2010-04-17 H.J. Lu PR corefiles/11511 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support orig_rax. gdb/testsuite/ 2010-04-17 H.J. Lu PR corefiles/11511 * gdb.arch/system-gcore.exp: New. * gdb.arch/gcore.c: Likewise. commit 6d680648882f9cf3c88ec6a448d2882d19952fd9 Author: Pedro Alves Date: Sat Apr 17 18:42:45 2010 +0000 * breakpoint.c (watchpoints_triggered): Use is_hardware_watchpoint. (watchpoints_triggered): Ditto. (bpstat_check_location): Use is_watchpoint and is_hardware_watchpoint. (bpstat_check_watchpoint): Use is_watchpoint and is_hardware_watchpoint. (bpstat_stop_status): Fix comment. (user_settable_breakpoint): Use is_watchpoint. (hw_watchpoint_used_count): Use is_hardware_watchpoint. (disable_watchpoints_before_interactive_call_start): Use is_watchpoint. (enable_watchpoints_after_interactive_call_stop): Use is_watchpoint. (clear_command): Use is_watchpoint. (do_enable_breakpoint): Use is_watchpoint. commit f4fddb98b8116a394a64b22c8ad51365b0d2b2b1 Author: H.J. Lu Date: Sat Apr 17 14:12:30 2010 +0000 Define xmltarget_amd64_linux_no_xml only for amd64. 2010-04-17 H.J. Lu * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only if __x86_64__ is defined. commit cea95405664b51402b236702187ef911a5dff0c6 Author: gdbadmin Date: Sat Apr 17 00:00:04 2010 +0000 *** empty log message *** commit a15e31f5095167b585a71233176e3c7ae6d60a2c Author: Alan Modra Date: Sat Apr 17 00:00:04 2010 +0000 daily update commit d53f7b278bcc93ee99f809775889afd38c6d2cfc Author: Mike Frysinger Date: Fri Apr 16 22:47:42 2010 +0000 gdb: fdpic/frv: fix shared library loading The recent change to reload_shared_libraries() broke FDPIC shared libraries as the solib-frv.c code was implicitly relying on the initial order of calls (first solib_addr() and then solib_create_inferior_hook()). It was maintaining internal state via enable_break{1,2}_done to handle this. While I could tweak these values a bit more, the original code wasn't terribly bullet proof -- if during the initial debug you attempted to view shared libraries, the enable2_break() code would whine about the ldso internal debug addresses being unfetchable (and would actually attempt to read address 0x8 on the target). So I've dropped this implicit dependency on order (i.e. enable_break1_done) and updated the ldso poking code (i.e. enable_break2) to silently return when the internal debug address is still set to 0. It will remain this way until the ldso gets a chance to initialize at which point the code will act the same as before. While I have no way of testing the FRV, the Blackfin FDPIC code is using this same base in a 100% copy & paste method since we implemented FDPIC the same way as the FRV guys (I'll address this in the future). This fix was required in order to handle shared libraries with Blackfin FDPIC properly, and I see no reason why it wouldn't also work for FRV (since the uClibc ldso FDPIC code is the same too and that's really what this is poking). Signed-off-by: Mike Frysinger commit 1bb6976a02799aef34e892d2401e6cf77c4336ba Author: Kevin Buettner Date: Fri Apr 16 22:46:26 2010 +0000 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning instead of an error if no PLT entry is found. Return a potentially useful result. (m32c_m16c_pointer_to_address): Add code to search for function address when no .plt entry is found. commit 37596b94cb368ef8600e45ff203218ca340e0e13 Author: H.J. Lu Date: Fri Apr 16 21:37:08 2010 +0000 Remove extra breack. commit 79db1f76c0b566c4557f492c0d050285fca26304 Author: H.J. Lu Date: Fri Apr 16 21:35:23 2010 +0000 Return bad_opcode on unknown bits in opcode. 2010-04-16 H.J. Lu * i386-dis.c (get_valid_dis386): Return bad_opcode on unknown bits in opcode. commit 5713f086abf837ab8ec3c1d788d0e1e04f698b59 Author: Stan Shebs Date: Fri Apr 16 18:21:59 2010 +0000 2010-04-16 Stan Shebs * tracepoint.c (trace_variable_command): Run a cleanup. commit 3785734c373ca825a1a040fe5c5a2e35c2fcfae6 Author: Pierre Muller Date: Fri Apr 16 16:22:15 2010 +0000 * configure: Regenerate. commit 649c9171090a2d3d4f015535eff2637d0919e9fd Author: Tristan Gingold Date: Fri Apr 16 14:38:53 2010 +0000 2010-04-16 Andreas Schwab * vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking strict-aliasing rules. commit 315b4dc5797d8d68cd915c0b262834eadd1dc41e Author: Tristan Gingold Date: Fri Apr 16 14:23:41 2010 +0000 2010-04-16 Tristan Gingold * vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo. (_bfd_vms_get_object_record): Always assume there is a pad byte for alignment. * vms-lib.c: Add a few comments. commit e20375c65f85c024d89f654a4ee86d455fcda984 Author: Pierre Muller Date: Fri Apr 16 08:12:59 2010 +0000 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range. commit 52ef2062ce3bd741b845da02e774031f4af6f332 Author: Pierre Muller Date: Fri Apr 16 07:49:33 2010 +0000 Support for Windows OS Thread Information Block. * NEWS: Document new feature. * remote.c (PACKET_qGetTIBAddr): New enum element. (remote_get_tib_address): New function. (init_remote_ops): Set to_get_tib_address field to remote_get_tib_address. (_initialize_remote): Add add_packet_config_cmd for PACKET_qGetTIBAddr. * target.c (update_current_target): Set default value for new to_get_tib_address field. * target.h (target_ops): New field to_get_tib_address. (target_get_tib_address): New macro. * windows-nat.c (thread_info): Add thread_local_base field. (windows_add_thread): Add tlb argument of type 'void *'. (fake_create_process): Adapt windows_add_thread call. (get_windows_debug_event): Idem. (windows_get_tib_address): New function. (init_windows_ops): Set to_get_tib_address field to remote_get_tib_address. (_initialize_windows_nat): Replace info_w32_cmdlist initialization by a call to init_w32_command_list. (info_w32_command, info_w32_cmdlist): Removed from here... to windows-tdep.c file. * windows-tdep.h (info_w32_cmdlist): Declare. (init_w32_command_list): New external function declaration. * windows-tdep.c: Add several headers. (info_w32_cmdlist): to here, made global. (thread_information_32): New struct. (thread_information_64): New struct. (TIB_NAME): New char array. (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants. (maint_display_all_tib): New static variable. (windows_get_tlb_type): New function. (tlb_value_read, tlb_value_write): New functions. (tlb_value_funcs): New static struct. (tlb_make_value): New function. (display_one_tib): New function. (display_tib): New function. (show_maint_show_all_tib):New function. (info_w32_command): Moved from windows-nat.c. (init_w32_command_list): New function. (_initialize_windows_tdep): New function. New "maint set/show show-all-tib" command New "$_tlb" internal variable. gdbserver/ChangeLog entry: * server.c (handle_query): Handle 'qGetTIBAddr' query. * target.h (target_ops): New get_tib_address field. * win32-low.h (win32_thread_info): Add thread_local_base field. * win32-low.c (child_add_thread): Add tlb argument. Set thread_local_base field to TLB. (get_child_debug_event): Adapt to child_add_thread change. (win32_get_tib_address): New function. (win32_target_ops): Set get_tib_address field to win32_get_tib_address. * linux-low.c (linux_target_ops): Set get_tib_address field to NULL. doc/ChangeLog entry: gdb.texinfo ($_tlb): Document new automatic convinience variable. (info w32 thread-information-block): Document new command. (qGetTIBAddress): Document new gdbserver query. (maint set/show show-all-tib): Document new command. commit 6f64c2e1fbefbe0d3f0a04384bcbb6fd31aa2574 Author: Joel Brobecker Date: Fri Apr 16 04:34:30 2010 +0000 * tui/tui-regs.c (tui_display_register): Add comment about a couple of casts. * tui/tui-stack.c (tui_show_locator_content): Ditto. commit 06da7f140e0561b82135ae12a8a6394102e72401 Author: Stan Shebs Date: Fri Apr 16 01:12:06 2010 +0000 2010-04-15 Stan Shebs * frame.c: Include tracepoint.h. (get_current_frame): Allow a trace frame to be an alternate source of stack frame data. * tracepoint.c (tfind_1): Don't try to get current stack frame if it won't succeed. commit b2492cd13f871898c026b45f1424e4e06b526ff6 Author: gdbadmin Date: Fri Apr 16 00:00:33 2010 +0000 *** empty log message *** commit b9f1271123edb907e4e8cf4a0cf969117d699fb2 Author: Alan Modra Date: Fri Apr 16 00:00:04 2010 +0000 daily update commit 8747b8f0dda734b806bca8812b315977c4fc58f1 Author: Pedro Alves Date: Thu Apr 15 23:46:11 2010 +0000 s/Pedro Alves/Pedro Alves/ commit 4366e0e6bed6fed39ba5665da4bbbd5f8e86c2f8 Author: Pedro Alves Date: Thu Apr 15 23:43:40 2010 +0000 Fix date format in one entry. Fix whitespace throughout while there. commit 29596e34e7c1f23aa51f289d36802e1ef0f89129 Author: Pedro Alves Date: Thu Apr 15 22:36:44 2010 +0000 Remove src/gdb/ from entry. commit eb6db2b9ca2e0a9ebb25fad233734e1b5e0ea295 Author: Pedro Alves Date: Thu Apr 15 20:19:24 2010 +0000 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for flags. * solib-spu.c (spu_solib_loaded): Always pass 0 for flags. commit e9d705a60bf1225789ae97759e148e5cc799dc6f Author: Doug Evans Date: Thu Apr 15 19:54:12 2010 +0000 * NEWS: Add entry for python program space support. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o. (SUBDIR_PYTHON_SRCS): Add py-progspace.c. (py-progspace.o): New rule. * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New function. (find_pretty_printer_from_progspace): New function. (find_pretty_printer_from_gdb): New function. (find_pretty_printer): Rewrite. * python/py-progspace.c: New file. * python/python-internal.h (program_space): Add forward decl. (pspace_to_pspace_object, pspy_get_printers): Declare. (gdbpy_initialize_pspace): Declare. * python/python.c: #include "progspace.h". (gdbpy_get_current_progspace, gdbpy_progspaces): New functions. (_initialize_python): Call gdbpy_initialize_pspace. (GdbMethods): Add current_progspace, progspaces. doc/ * gdb.texinfo (Python API): Add progspaces section. (Selecting Pretty-Printers): Progspace pretty-printers are searched too. (Progspaces In Python): New section. testsuite/ * gdb.python/py-progspace.c: New file. * gdb.python/py-progspace.exp: New file. commit 66d9e8ff6e25790500e408a591c9a62b7c00b74b Author: Doug Evans Date: Thu Apr 15 17:45:49 2010 +0000 Add -s option to source command. * NEWS: Document new option. * cli/cli-cmds.c (find_and_open_script): Add function comment. Delete from_tty and cleanupp args. Split filep arg into file and full_pathp. New arg search_path. (source_script_from_stream): New function. (source_script_with_search): New function. (source_script): Rewrite. (source_command): Parse "-s" option. (init_cli_cmds): Add "-s" docs to source command help, and reformat. * python/python.c (source_python_script): Make file arg a const char *. Don't call fclose, leave for caller. * python/python.h (source_python_script): Update. testsuite/ * gdb.base/source-test.gdb: New file. * gdb.base/source.exp: Add tests for "source -s". doc/ * gdb.texinfo (Command Files): Add docs for new "source -s" option. commit 184084de04b19fb72af34fb967d504d027961139 Author: mgretton Date: Thu Apr 15 10:56:33 2010 +0000 * ld/testsuite/ld-arm/attr-merge-2.attr: Update for changes in attribute output. * ld/testsuite/ld-arm/attr-merge-3.attr: Likewise. * ld/testsuite/ld-arm/attr-merge-vfp-1.d: Likewise. * ld/testsuite/ld-arm/attr-merge-vfp-1r.d: Likewise. * ld/testsuite/ld-arm/attr-merge-vfp-2.d: Likewise. * ld/testsuite/ld-arm/attr-merge-vfp-2r.d: Likewise. * ld/testsuite/ld-arm/attr-merge-vfp-3.d: Likewise. * ld/testsuite/ld-arm/attr-merge-vfp-3r.d: Likewise. * ld/testsuite/ld-arm/attr-merge-vfp-4.d: Likeiwse. * ld/testsuite/ld-arm/attr-merge-vfp-4r.d: Likewise. * ld/testsuite/ld-arm/attr-merge-vfp-5.d: Likewise. * ld/testsuite/ld-arm/attr-merge-vfp-5r.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-00-nowarn.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-00.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-02-nowarn.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-02.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-04-nowarn.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-04.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-20-nowarn.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-20.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-22-nowarn.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-22.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-24-nowarn.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-40-nowarn.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-40.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-42-nowarn.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-44-nowarn.d: Likewise. * ld/testsuite/ld-arm/attr-merge-wchar-44.d: Likewise. * ld/testsuite/ld-arm/attr-merge.attr: Likewise. * binutils/readelf.c (arm_attr_tag_FP_arch): Rename from arm_attr_tag_VFP_arch. (arm_attr_tag_ABI_align8_needed): Remove. (arm_attr_tag_ABI_align8_preserved): Remove. (arm_attr_tag_ABI_HardFP_use): Update text strings. (arm_attr_public_tags): Add strings for ABI v2.08 attribute tags. (display_arm_attribute): Add decoding of ABI v2.08 attributes. * include/elf/arm.h (Tag_FP_arch, Tag_ABI_align_needed, Tag_ABI_align_preserved, Tag_FP_HP_extension): Add new ABI attribute tags. * gas/config/tc-arm.c (arm_convert_symbolic_attribute): Add support for new tag names in v2.08 of ARM ABI. * gas/doc/c-arm.texi: Document new tag names in ABI. * gas/testsuite/gas/arm/attr-mcpu.d: Update for new attribute tag names. * gas/testsuite/gas/arm/attr-mfpu-arm1020e.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-arm1020t.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-arm1136jf-s.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-arm1136jfs.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-neon-fp16.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-neon.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-softvfp+vfp.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-vfp.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-vfp10-r0.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-vfp10.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-vfp3.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-vfp9.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-vfpv2.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-vfpv3-d16.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-vfpv3.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-vfpv4-d16.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-vfpv4.d: Likewise. * gas/testsuite/gas/arm/attr-mfpu-vfpxd.d: Likewise. * gas/testsuite/gas/arm/attr-names.d: Add test to make sure all attribute names are recognised. * gas/testsuite/gas/arm/attr-names.s: Likewise. commit b4078918df2212ecd820a0dcc271cab5f4fe9029 Author: Nick Clifton Date: Thu Apr 15 10:26:05 2010 +0000 Upgrade header files to use GPLv3 commit 14ca3db824a85073e5d359d6b5fb7c2f6eb47b39 Author: Alan Modra Date: Thu Apr 15 02:54:01 2010 +0000 * config.bfd (vax*-*-*vms*): Delete. commit af9323291f3347482d3ef6db41f2a35144cce9fc Author: gdbadmin Date: Thu Apr 15 00:00:33 2010 +0000 *** empty log message *** commit c67a70d037a365e133e85976351c33b9ac8818b8 Author: Alan Modra Date: Thu Apr 15 00:00:04 2010 +0000 daily update commit 829a902da291e72ad17e8c44fa8d9ead3db41b1f Author: Pedro Alves Date: Wed Apr 14 23:20:05 2010 +0000 Avoid rereading shared libraries that haven't changed. * solib.c (free_so_symbols): New function, from ... (free_so): ... here. Call it. (solib_read_symbols): Don't warn here if symbols have already been loaded. (solib_add): Warn here instead, if a pattern was specified. (reload_shared_libraries_1): New. (reload_shared_libraries): Rewrite to not fetch the library list. commit 5aa7992bf144ce9cdfd4e3c72290cbd66c0cc920 Author: Doug Evans Date: Wed Apr 14 21:27:01 2010 +0000 fix typo in previous entry commit 91d9eeefda9104c815db741b502c366a2e8e92ad Author: Doug Evans Date: Wed Apr 14 21:22:27 2010 +0000 * source.c (open): Strip DOS drive letter if present before concatenating string to search path. commit 746027ffb0c72c3f5cd93d373ed534ec5c3eac2c Author: Doug Evans Date: Wed Apr 14 21:18:27 2010 +0000 * filenames.h (HAS_DRIVE_SPEC, STRIP_DRIVE_SPEC): New macros. commit baeb5c93610f1d8d11432e872156eb6fcab3d5a7 Author: Pedro Alves Date: Wed Apr 14 17:26:08 2010 +0000 * objfiles.h (gdb_bfd_close_or_warn): Declare. * objfiles.c (gdb_bfd_close_or_warn): New. * corelow.c: Include objfiles.h (core_close): Use gdb_bfd_close_or_warn. * elfread.c (build_id_verify): Ditto. * exec.c (exec_close, exec_close_1): Ditto. commit 325409e50f6be845b0f3d9719d62f9dc78dbe048 Author: Pedro Alves Date: Wed Apr 14 17:26:08 2010 +0000 * objfiles.h (gdb_bfd_close_or_warn): Declare. * objfiles.c (gdb_bfd_close_or_warn): New. * corelow.c: Include objfiles.h (core_close): Use gdb_bfd_close_or_warn. * elfread.c (build_id_verify): Ditto. * exec.c (exec_close, exec_close_1): Ditto. commit e12b767fb287127671d514eef227486777f0a972 Author: Pedro Alves Date: Wed Apr 14 13:49:52 2010 +0000 Group errors for many missing shared libraries. * solist.h (struct so_list): Remove from_tty. * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD. (solib_map_sections): Take so_list argument. Return 0 if we failed to open a BFD. Add target sections here. (symbol_add_stub): Delete. (solib_read_symbols): Inline symbol_add_stub. Use current flags, not from_tty copied from the so_list. Don't warn a second time for a missing library. (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not add to the section table here. Print out a single warning for all missing libraries. * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for flags. commit e92d216e7f362371836c6bad86dd5d065c62260a Author: pmuldoon Date: Wed Apr 14 13:18:51 2010 +0000 2010-04-14 Phil Muldoon * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass error/warning messages. Capitalize and use complete sentences. (blpy_block_syms_iternext): Likewise. * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise. * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block) (frame_info_to_frame_object, frapy_read_var) (gdbpy_frame_stop_reason_string): Likewise. * python/py-lazy-string.c (stpy_convert_to_value) (gdbpy_create_lazy_string_object): Likewise. * python/py-objfile.c (objfpy_set_printers): Likewise. * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise. * python/python.c (parameter_to_python): Likewise. * python/py-type.c (typy_range, typy_target): Likewise. * python/py-value.c (valpy_cast, valpy_length, valpy_getitem) (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise. commit e5ea8d026015c2a0c7774788b425914857de1ffb Author: pmuldoon Date: Wed Apr 14 12:02:42 2010 +0000 2010-04-14 Phil Muldoon PR python/11381 * python/py-prettyprint.c (pretty_print_one_value): Test for Py_None. (print_string_repr): Test for Py_None. Set flags accordingly. Return value depending on return type. (print_children): Take a value indicating whether data was printed before this function was called. Alter output accordingly. (apply_val_pretty_printer): Capture return value from print_string_repr and pass to print_children. 2010-04-14 Phil Muldoon * gdb.python/py-prettyprint.py (NoStringContainerPrinter): New printer. * gdb.python/py-prettyprint.c: Add justchildren struct, typedefs. * gdb.python/py-prettyprint.exp: New test for to_string returning None. * gdb.python/py-mi.exp: New test for to_string returning None. 2010-04-14 Phil Muldoon * gdb.texinfo (Pretty Printing): Document behaviour when to_string returns None. commit a9a471371a0bfbe3df0c96fb818fb923119bdb5b Author: Tristan Gingold Date: Wed Apr 14 09:28:48 2010 +0000 2010-04-14 Tristan Gingold * configure.ac (alpha*-*-*vms*): Remove ld from noconfigdirs. * configure: Regenerate. commit 20e2cc4290d787cca8f2b0444c2852d5e43ca0ea Author: Tristan Gingold Date: Wed Apr 14 09:24:58 2010 +0000 2010-04-14 Tristan Gingold * Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo, vms-tir.lo, vms.lo and add vms-alpha.lo (BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c, vms-tir.c, vms.c and add vms-alpha.c * Makefile.in: Regenerate. * configure.in (TDEFINES): Adjust file list for vms_alpha_vec. Remove vms_vax_vec. * configure: Regenerate. * targets.c (vms_vax_vec): Remove the declaration. (_bfd_target_vector): Remove vms_vax_vec. * vms-alpha.c: New file. * vms-gsd.c: Removed, rewritten in vms-alpha.c * vms-hdr.c: Ditto. * vms-tir.c: Ditto. * vms.c: Ditto. * vms-misc.c: Fix indentation and comments. Replace most of #if VMS_DEBUG/vms_debug with vms_debug2. (_bfd_vms_hash_newfunc): Moved to vms-alpha.c (hash_string): Ditto. (_bfd_vms_length_hash_symbol): Ditto. (maybe_adjust_record_pointer_for_object): Ditto. (_bfd_vms_get_object_record): Ditto. (vms_get_remaining_object_record): Ditto. (_bfd_vms_push): Ditto. (_bfd_vms_pop): Ditto. (_bfd_vms_get_header_values): Removed. (_bfd_vms_get_first_record): Removed. (vms_get_remaining_image_record): Removed. (new_symbol): Removed. (_bfd_vms_enter_symbol): Removed. (_bfd_vms_save_sized_string): Use memcpy instead of strncpy. (_bfd_vms_output_begin): Remove rechead parameter. Replace bfd parameter with struct vms_rec_wr. (_bfd_vms_output_push): Removed and replaced by ... (_bfd_vms_output_begin_subrec): ... new function. (_bfd_vms_output_alignment): Replace bfd parameter with struct vms_rec_wr, and adjust. (_bfd_vms_output_check): Ditto (_bfd_vms_output_byte): Ditto. (_bfd_vms_output_short): Ditto. (_bfd_vms_output_long): Ditto. (_bfd_vms_output_quad): Ditto. (_bfd_vms_output_counted): Ditto. (_bfd_vms_output_dump): Ditto. (_bfd_vms_output_fill): Ditto. (_bfd_vms_output_pop): Removed and replaced by ... (_bfd_vms_output_end_subrec): ... new function. (_bfd_vms_output_flush): Removed. (_bfd_vms_output_align): New function. (_bfd_vms_output_end): Add recwr parameter. Adjust for this new parameter. (vms_convert_to_var): New function imported from vms.c (vms_convert_to_var_1): Ditto. (vms_convert_to_var_unix_filename): Ditto. (vms_get_module_name): Ditto. (get_vms_time_string): Ditto. (vms_time_to_time_t): Ditto. (vms_rawtime_to_time_t): Ditto. * vms.h: All macros for the VMS file format are now in include/vms. Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c have been removed. (struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c (struct fileinfo, struct srecinfo, struct lineinfo): Ditto. (struct funcinfo, struct vms_private_data_struct): Ditto. (struct vms_section_data_struct): Ditto. (struct vms_rec_rd, stryct vms_rec_wr): New declarations. (vms_get_module_name, get_vms_time_string): New declarations. (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto. (_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto. (_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted. (_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto. (_bfd_vms_output_end,_bfd_vms_output_check): Ditto. (_bfd_vms_output_byte, _bfd_vms_output_short): Ditto. (_bfd_vms_output_long, _bfd_vms_output_quad): Ditto. (_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto. (_bfd_vms_output_fill): Ditto. (bfd_vms_set_section_flags): Ditto. commit 0d32580f43a7359eba5251655977aaa1ef990e6d Author: mgretton Date: Wed Apr 14 08:29:32 2010 +0000 * bfd/elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early exit due to merging the same weak symbol to test that the symbols are actually weak. commit a3960ae0be37da1d6e57a748129c0d9effa77400 Author: Mike Frysinger Date: Wed Apr 14 07:38:03 2010 +0000 sim: constify sim_write source buffer (part 2) As pointed out by Sandra Loosemore, a bunch of targets define sim_write themselves instead of using the common/ code. So constify them too. Signed-off-by: Mike Frysinger commit f80965c8b03b9ca637edcc810d70011ac5dfc3d9 Author: H.J. Lu Date: Wed Apr 14 00:40:13 2010 +0000 Correct PR number for PR corefiles/11481. commit 79ebeac8f7f059b7407e5027c5bb94c95063cf5a Author: H.J. Lu Date: Wed Apr 14 00:38:03 2010 +0000 Mention PR corefiles/11467. commit bf763a271e28a4ffd6a7bb20050c7af3b22669cd Author: Alan Modra Date: Wed Apr 14 00:00:05 2010 +0000 daily update commit 60fc8896b1299b023e3900afbe39d36f26231764 Author: gdbadmin Date: Wed Apr 14 00:00:03 2010 +0000 *** empty log message *** commit ed70aeaec4fa89ae8cba95fcae434c90754e24df Author: Mark Kettenis Date: Tue Apr 13 21:07:15 2010 +0000 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended register note sections. (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections): New variables. (i386_linux_init_abi): Install list of supported register note sections that matches the target description. commit 567bc1952033cdcfbad781cd391b530a0fd5e896 Author: Mike Frysinger Date: Tue Apr 13 20:58:54 2010 +0000 sim: dv-sockser: pass up connected state A few ports rely on internal dv-sockser state in order to detect whether a connection has been made (look for 'extern sockser_addr'). Rather than continuing that tradition, extend the existing status function to return the socket connection status. Signed-off-by: Mike Frysinger commit 84684895ff9d6710b681dc3c0914c669e648a792 Author: Mike Frysinger Date: Tue Apr 13 20:39:44 2010 +0000 sim: drop PARAMS The PARAMS macro is no longer useful, so drop it from the sim includes. Signed-off-by: Mike Frysinger commit eed093668ca1e5ba56374feaf14ae1c8e99f5673 Author: Mike Frysinger Date: Tue Apr 13 20:28:19 2010 +0000 sim: constify sim_write source buffer Most the sim write functions declare their source buffer const because they only ever read from it. The global sim_write() function does not follow this convention though which causes some warnings when trying to pass it const strings or buffers. Signed-off-by: Mike Frysinger commit 9b35db8589d6c93837adb1e0b2ada219330f3f0b Author: Pedro Alves Date: Tue Apr 13 16:08:24 2010 +0000 * remote.c (remote_get_noisy_reply): Don't error out on empty replies. (remote_start_remote): Update and merge tracepoints and trace state variables as long as the target supports tracepoints. (remote_trace_init): Fix prototype. (remote_download_trace_state_variable): Validate reply. (remote_trace_set_readonly_regions): Fix prototype. (remote_trace_start): Fix prototype. Check for empty reply. (remote_get_trace_status): Small cleanup. (remote_trace_stop): Fix prototype. Check for empty reply. (remote_trace_find): Check for empty reply. (remote_save_trace_data): Validate reply. (remote_set_disconnected_tracing): Check for empty reply, and validate reply. (remote_set_circular_trace_buffer): Ditto. commit 52a13319b890f4624e3e6e8df27f12ff702ec437 Author: Pierre Muller Date: Tue Apr 13 12:11:05 2010 +0000 Suppress unused value warning during compilation. * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend calls to void. * tui/tui-stack.c (tui_show_locator_content): Likewise. commit 02202ae492b14960c45e9c5934ee7317a9806e18 Author: Alan Modra Date: Tue Apr 13 04:05:27 2010 +0000 * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location when optimizing high got_tlsgd/ld insns. commit 31ad63b78fed65237a81c9767a9c66600e9cf62b Author: Stan Shebs Date: Tue Apr 13 03:53:49 2010 +0000 2010-04-12 Stan Shebs * tracepoint.c (tfile_xfer_partial): Check read result. commit edada3266c0f23e81e9baf98a0a213ad7f6d6b5e Author: gdbadmin Date: Tue Apr 13 00:00:33 2010 +0000 *** empty log message *** commit d46fcd242a5f859f64c163d6a32cdfeb4217718c Author: Alan Modra Date: Tue Apr 13 00:00:04 2010 +0000 daily update commit fc61c2c20bd61d403463e6437a294ffcdf198f3f Author: Mike Frysinger Date: Mon Apr 12 21:44:46 2010 +0000 sim: add more hacking notes I found the documentation lacking in many places, so I tried filling in a lot of holes that I personally fell into. Signed-off-by: Mike Frysinger commit 58fbf93a07e88c6f0103aa2ef3432d2ef4946243 Author: Pedro Alves Date: Mon Apr 12 17:46:05 2010 +0000 Remove gdb/gdbserver/ line. commit b85579f12a452fb5dd104e9a198667a91e0c06c6 Author: Pedro Alves Date: Mon Apr 12 17:39:41 2010 +0000 gdb/gdbserver/ * linux-low.c (linux_mourn): Also remove the process. * server.c (handle_target_event): Don't remove the process here. * nto-low.c (nto_mourn): New. (nto_target_ops): Install it. * spu-low.c (spu_mourn): New. (spu_target_ops): Install it. * win32-low.c (win32_mourn): New. (win32_target_ops): Install it. commit d691350337a747dc827c09a265859df1ac86e79b Author: Mike Frysinger Date: Mon Apr 12 16:57:24 2010 +0000 sim: add helper macros for branch profiling The profile code has a lot of helper macros already, but none yet for the branch profiling code. So add ones for the basic functions -- taken and untaken branches. Signed-off-by: Mike Frysinger commit 7bbdc114c3787e8be817374c9ca3fff4e6944413 Author: Mike Frysinger Date: Mon Apr 12 16:53:32 2010 +0000 sim: add missing values to array initializers The sim code has a lot of static initializer for options and devices, but since they aren't using newer struct style, they have to specify a value for every option otherwise gcc spits a lot of warnings about "missing initializer". So add NULL/0 stubs for pointers/values. Signed-off-by: Mike Frysinger commit f5bf6a8c39808e17bbacf43fa89a04e0bf3d0875 Author: Mike Frysinger Date: Mon Apr 12 16:04:38 2010 +0000 gdb: constify remote files_info The sim and m32r remote targets declare a local "file" variable and only assign const strings to it before passing it to a printf() func. So add const markings to avoid gcc warnings like: gdb/remote-sim.c: In function 'gdbsim_files_info': gdb/remote-sim.c:789: warning: initialization discards qualifiers from pointer target type Signed-off-by: Mike Frysinger commit a382f5de08276818170fa82880064af2426a0f46 Author: Mike Frysinger Date: Mon Apr 12 16:00:43 2010 +0000 sim: constify dup_arg_p The dup_arg_p function is only given const strings, and it maintains a local table of those const strings. So constify the whole thing to fix the GCC warnings: common/sim-options.c: In function 'sim_parse_args': common/sim-options.c:559: warning: passing argument 1 of 'dup_arg_p' discards qualifiers from pointer target type common/sim-options.c: In function 'print_help': common/sim-options.c:675: warning: passing argument 1 of 'dup_arg_p' discards qualifiers from pointer target type Signed-off-by: Mike Frysinger commit b819a8a84d172277e832f56c471acc8b0f4234f4 Author: Richard Earnshaw Date: Mon Apr 12 13:52:38 2010 +0000 2010-04-12 Matthew Gretton-Dann * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM * arm-linux-nat.c (arm_linux_vfp_register_count): New variable. (fetch_vfp_registers): New function to fetch VFP registers. (store_vfp_registers): New function to store VFP registers. (arm_linux_fetch_inferior_registers): Add support for VFP registers. (arm_linux_store_inferior_registers): Likewise. (arm_linux_read_description): Likewise. (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc until we need it. commit 2aff82e00a7f93afe1884bffa8199691e18dac0b Author: Pedro Alves Date: Mon Apr 12 13:51:22 2010 +0000 * server.h (buffer_xml_printf): Remove redundant `;'. commit 66e4d3883383c9d42113c7e8c614dff8646deb35 Author: Pedro Alves Date: Mon Apr 12 13:25:51 2010 +0000 * regcache.c (set_register_cache): Invalidate regcaches before changing the register cache layout. (regcache_invalidate_one): Allow a NULL regcache. * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate regcaches before changing the register cache layout or the target regsets. commit 63222cac28a232f0e4610a6c17ea72ab4d3d6372 Author: H.J. Lu Date: Mon Apr 12 13:18:12 2010 +0000 Avoid unused variable warning on Linux/x86-64. 2010-04-12 H.J. Lu * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused variable warning on Linux/x86-64. commit a9b58442902b891555f27beb7ea65626def562fa Author: pmuldoon Date: Mon Apr 12 09:49:34 2010 +0000 2010-04-12 Phil Muldoon * gdb.python/py-breakpoint.c: Make result global. commit aac14cecc4807e485bd0e7c3d41575d50cf89cd3 Author: Alan Modra Date: Mon Apr 12 00:00:05 2010 +0000 daily update commit 1c5326e5cce6ef8ea11c942374e9214c5e8db53c Author: gdbadmin Date: Mon Apr 12 00:00:03 2010 +0000 *** empty log message *** commit ed8a7fd9b04e7b81ecc763ca9892a566aba90ada Author: H.J. Lu Date: Sun Apr 11 20:20:30 2010 +0000 Remove the unused variable in amd64-tdep.c. 2010-04-11 H.J. Lu * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused tdep. (amd64_collect_xstateregset): Likewise. commit 46989a29cc78aaed3e7c34175ad443c6f21f2584 Author: Pedro Alves Date: Sun Apr 11 16:33:55 2010 +0000 GDBserver disconnected tracing support. * linux-low.c (linux_remove_process): Delete. (add_lwp): Don't set last_resume_kind here. (linux_kill): Use `mourn'. (linux_detach): Use `thread_db_detach', and `mourn'. (linux_mourn): New. (linux_attach_lwp_1): Adjust comment. (linux_attach): last_resume_kind moved the thread_info; adjust. (status_pending_p_callback): Adjust. (linux_wait_for_event_1): Adjust. (count_events_callback, select_singlestep_lwp_callback) (select_event_lwp_callback, cancel_breakpoints_callback) (db_wants_lwp_stopped, linux_wait_1, need_step_over_p) (proceed_one_lwp): Adjust. (linux_async): Add debug output. (linux_thread_stopped): New. (linux_pause_all): New. (linux_target_ops): Install linux_mourn, linux_thread_stopped and linux_pause_all. * linux-low.h (struct lwp_info): Delete last_resume_kind field. (thread_db_free): Delete declaration. (thread_db_detach, thread_db_mourn): Declare. * thread-db.c (thread_db_init): Use thread_db_mourn. (thread_db_free): Delete, split in two. (disable_thread_event_reporting): New. (thread_db_detach): New. (thread_db_mourn): New. * server.h (struct thread_info) : New field. : Add comment. : New field. (handler_func): Change return type to int. (handle_serial_event, handle_target_event): Ditto. (gdb_connected): Declare. (tracing): Delete. (disconnected_tracing): Declare. (stop_tracing): Declare. * server.c (handle_query) : Report support for disconnected tracing. (queue_stop_reply_callback): Account for running threads. (gdb_wants_thread_stopped): New. (gdb_wants_all_threads_stopped): New. (gdb_reattached_process): New. (handle_status): Clear the `gdb_detached' flag of all processes. In all-stop, stop all threads. (main): Be sure to leave tfind mode. Handle disconnected tracing. (process_serial_event): If the remote connection breaks, or if an exit was forced with "monitor exit", force an event loop exit. Handle disconnected tracing on detach. (handle_serial_event): Adjust. (handle_target_event): If GDB isn't connected, forward events back to the inferior, unless the last process exited, in which case, exit gdbserver. Adjust interface. * remote-utils.c (remote_open): Don't block in accept. Instead register an event loop source on the listen socket file descriptor. Refactor bits into ... (listen_desc): ... this new global. (gdb_connected): ... this new function. (enable_async_notification): ... this new function. (handle_accept_event): ... this new function. (remote_close): Clear remote_desc. * inferiors.c (add_thread): Set the new thread's last_resume_kind. * target.h (struct target_ops) : New fields. (mourn_inferior): Define. (target_process_qsupported): Avoid the dangling else problem. (thread_stopped): Define. (pause_all): Define. (target_waitstatus_to_string): Declare. * target.c (target_waitstatus_to_string): New. * tracepoint.c (tracing): Make extern. (disconnected_tracing): New. (stop_tracing): Make extern. Handle tracing stops due to GDB disconnecting. (cmd_qtdisconnected): New. (cmd_qtstatus): Report disconnected tracing status in trace reply. (handle_tracepoint_general_set): Handle QTDisconnected. * event-loop.c (event_handler_func): Change return type to int. (process_event): Bail out if the event handler wants the event loop to stop. (handle_file_event): Ditto. (start_event_loop): Bail out if the event handler wants the event loop to stop. * nto-low.c (nto_target_ops): Adjust. * spu-low.c (spu_wait): Don't remove the process here. (spu_target_ops): Adjust. * win32-low.c (win32_wait): Don't remove the process here. (win32_target_ops): Adjust. commit 055148f7383dbef6dfef69ebf09a5d2aaaadeb89 Author: Pedro Alves Date: Sun Apr 11 01:47:48 2010 +0000 * regcache.c (realloc_register_cache): Invalidate inferior's regcache before recreating it. commit 2830e8f6791aa574cff47c03ffe8108fbfd0e729 Author: Alan Modra Date: Sun Apr 11 00:00:04 2010 +0000 daily update commit 6295c80119e0b738616d665bb066fad1bca54e76 Author: gdbadmin Date: Sun Apr 11 00:00:02 2010 +0000 *** empty log message *** commit 79243e9e95af00b8d410bff66ced0fd286d5c80d Author: H.J. Lu Date: Sat Apr 10 22:52:36 2010 +0000 Undefine HAVE_PRPSINFO32_T/HAVE_PRSTATUS32_T before define. 2010-04-10 H.J. Lu * hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before define. (HAVE_PRSTATUS32_T): Likewise. commit d56b8df4755faaa982e8d7943c84a092c7d01f9c Author: H.J. Lu Date: Sat Apr 10 22:21:30 2010 +0000 Support 32bit core note sections on Linux/x86-64. 2010-04-10 H.J. Lu PR corefiles/11467 * configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h for x86_64-*-linux*. * config.in: Regenerated. * configure: Likewise. * elf.c: Include CORE_HEADER if it is defined. 2010-04-10 H.J. Lu Jan Kratochvil * hosts/x86-64linux.h: New. commit 819aac763059a73c81114fb4aefacb0891ed8483 Author: Mike Frysinger Date: Sat Apr 10 21:25:05 2010 +0000 sim: also constify sim_fpu_print_func commit cf24e72f4f92deeda903dda540c789cbc83b6ccb Author: Mike Frysinger Date: Sat Apr 10 20:29:54 2010 +0000 sim: constify sim_fpu_print_status I've committed the following patch as obvious. The local "prefix" variable is only assigned const strings, and only passed to printf() functions, so add "const" to avoid gcc warnings: common/sim-fpu.c: In function 'sim_fpu_print_status': common/sim-fpu.c:2508: warning: initialization discards qualifiers from pointer target type common/sim-fpu.c:2566: warning: assignment discards qualifiers from pointer target type Signed-off-by: Mike Frysinger commit c8b2d4f95fb122595bf264c7c573adbfa27b718d Author: Mike Frysinger Date: Sat Apr 10 08:26:45 2010 +0000 sim: drop duplicate break statements in sim-fpu commit 9e9dec16e23f809c5d8ac6246f2c0f1580f5fa10 Author: Mike Frysinger Date: Sat Apr 10 08:00:58 2010 +0000 sim: constify save_data() The local save_data() function takes a pointer to a buffer and only uses it as the source to the memcpy() function. Since it is given const strings, GCC likes to spit out warnings: common/sim-trace.c: In function 'trace_prefix': common/sim-trace.c:697: warning: passing argument 5 of 'save_data' discards qualifiers from pointer target type So I've committed this as obvious. Signed-off-by: Mike Frysinger commit 27992c79e2bf8361dcc227a2c425b74ca99a000d Author: Mike Frysinger Date: Sat Apr 10 07:35:35 2010 +0000 sim: add const markings to env string The sim-options code assigns a const string to "char *" in decoding the current environment settings, and only uses it to pass to a printf. GCC outputs the warnings: common/sim-options.c: In function 'standard_option_handler': common/sim-options.c:271: warning: assignment discards qualifiers from pointer target type common/sim-options.c:272: warning: assignment discards qualifiers from pointer target type common/sim-options.c:273: warning: assignment discards qualifiers from pointer target type So I've committed this as "obvious". Signed-off-by: Mike Frysinger commit 17b932068d27d862c0ad42dbd3875b191d323c85 Author: gdbadmin Date: Sat Apr 10 00:00:06 2010 +0000 *** empty log message *** commit 8f50b8b9357758896d79fca447f8ed23bdcb2391 Author: Alan Modra Date: Sat Apr 10 00:00:06 2010 +0000 daily update commit b617b34276afa69dc2b9e70a188a27c049857ab4 Author: Jan Kratochvil Date: Fri Apr 9 20:50:46 2010 +0000 gdb/testsuite/ Fix non-GNU make compatibility. * Makefile.in ($(TEST_TARGETS)): Conditionalize it by @GMAKE_TRUE@. commit ad999f438dae72b316d2fe2868027af848a634d4 Author: Stan Shebs Date: Fri Apr 9 20:46:39 2010 +0000 2010-04-09 Stan Shebs * tracepoint.c (trace_status_mi): Report frames created. * gdb.texinfo (gdb/mi Tracepoint Commands) <-trace-status>: Describe the `frames-created' field, tweak grammar. ----------------------------------------------------------------------- Summary of changes: ChangeLog | 5 + bfd/ChangeLog | 188 + bfd/Makefile.am | 10 +- bfd/Makefile.in | 17 +- bfd/archive64.c | 6 +- bfd/bfd-in.h | 2 +- bfd/bfd-in2.h | 2 +- bfd/config.bfd | 4 - bfd/config.in | 3 + bfd/configure | 14 +- bfd/configure.in | 11 +- bfd/dwarf2.c | 8 +- bfd/elf-bfd.h | 1 + bfd/elf.c | 86 +- bfd/elf32-arm.c | 42 +- bfd/elf32-spu.c | 3 +- bfd/elf32-tic6x.c | 712 ++- gdb/windows-tdep.h => bfd/elf32-tic6x.h | 22 +- bfd/elf64-ppc.c | 2 +- bfd/elf64-x86-64.c | 23 +- bfd/elflink.c | 11 +- bfd/hosts/x86-64linux.h | 195 + bfd/po/bfd.pot | 712 +- bfd/po/vi.po | 716 +- bfd/targets.c | 2 - bfd/version.h | 2 +- bfd/vms-alpha.c | 8962 ++++++++++++++++++++ bfd/vms-gsd.c | 1082 --- bfd/vms-hdr.c | 1382 --- bfd/vms-lib.c | 4 + bfd/vms-misc.c | 959 +-- bfd/vms-tir.c | 2808 ------ bfd/vms.c | 1518 ---- bfd/vms.h | 878 +-- configure | 2 +- configure.ac | 2 +- gdb/ChangeLog | 879 ++- gdb/Makefile.in | 17 +- gdb/NEWS | 60 +- gdb/ada-lang.c | 118 +- gdb/ada-lang.h | 5 + gdb/ada-typeprint.c | 11 + gdb/ada-valprint.c | 9 +- gdb/alpha-mdebug-tdep.c | 36 +- gdb/alpha-tdep.c | 134 + gdb/amd64-linux-nat.c | 31 +- gdb/amd64-linux-tdep.c | 30 +- gdb/amd64-tdep.c | 2 - gdb/amd64-tdep.h | 3 + gdb/arm-linux-nat.c | 168 +- gdb/arm-symbian-tdep.c | 4 + gdb/arm-tdep.h | 1 + gdb/arm-wince-tdep.c | 4 + gdb/ax-gdb.c | 33 +- gdb/ax-general.c | 112 +- gdb/ax.h | 148 +- gdb/breakpoint.c | 351 +- gdb/breakpoint.h | 3 + gdb/bsd-uthread.c | 2 +- gdb/c-lang.c | 1 + gdb/cli-out.c | 47 +- gdb/cli-out.h | 18 +- gdb/cli/cli-cmds.c | 180 +- gdb/cli/cli-cmds.h | 5 + gdb/config/djgpp/fnchange.lst | 1 + gdb/configure | 7 +- gdb/configure.ac | 7 +- gdb/configure.tgt | 1 + gdb/corelow.c | 5 +- gdb/cp-valprint.c | 89 +- gdb/dec-thread.c | 29 +- gdb/defs.h | 6 +- gdb/doc/ChangeLog | 77 + gdb/doc/gdb.texinfo | 619 ++- gdb/doc/refcard.tex | 3 +- gdb/dwarf2-frame.c | 19 +- gdb/dwarf2loc.c | 553 +- gdb/dwarf2read.c | 103 +- gdb/elfread.c | 4 +- gdb/exec.c | 8 +- gdb/f-exp.y | 4 + gdb/f-lang.c | 7 + gdb/f-lang.h | 1 + gdb/filesystem.c | 103 + gdb/filesystem.h | 58 + gdb/frame.c | 17 +- gdb/gdbarch.c | 23 + gdb/gdbarch.h | 7 + gdb/gdbarch.sh | 5 + gdb/gdbserver/ChangeLog | 210 + gdb/gdbserver/Makefile.in | 5 + gdb/gdbserver/configure | 10 +- gdb/gdbserver/configure.ac | 2 +- gdb/gdbserver/configure.srv | 8 +- gdb/gdbserver/event-loop.c | 23 +- gdb/gdbserver/gdbreplay.c | 2 +- gdb/gdbserver/inferiors.c | 1 + gdb/gdbserver/linux-low.c | 145 +- gdb/gdbserver/linux-low.h | 6 +- gdb/gdbserver/linux-x86-low.c | 10 +- gdb/gdbserver/nto-low.c | 7 + gdb/gdbserver/nto-x86-low.c | 2 +- gdb/gdbserver/regcache.c | 9 + gdb/gdbserver/remote-utils.c | 145 +- gdb/gdbserver/server.c | 277 +- gdb/gdbserver/server.h | 24 +- gdb/gdbserver/spu-low.c | 9 +- gdb/gdbserver/target.c | 42 + gdb/gdbserver/target.h | 37 +- gdb/gdbserver/thread-db.c | 54 +- gdb/gdbserver/tracepoint.c | 48 +- gdb/gdbserver/win32-i386-low.c | 92 +- gdb/gdbserver/win32-low.c | 87 +- gdb/gdbserver/win32-low.h | 3 + gdb/gdbtypes.c | 7 + gdb/gdbtypes.h | 3 + gdb/i386-cygwin-tdep.c | 4 + gdb/i386-linux-nat.c | 44 +- gdb/i386-linux-tdep.c | 55 +- gdb/i386-linux-tdep.h | 2 + gdb/i386-tdep.c | 2 + gdb/jv-lang.c | 1 + gdb/m2-lang.c | 1 + gdb/m32c-tdep.c | 53 +- gdb/main.c | 15 + gdb/objc-lang.c | 19 +- gdb/objfiles.c | 21 +- gdb/objfiles.h | 1 + gdb/p-lang.c | 4 +- gdb/p-valprint.c | 13 +- gdb/parse.c | 145 + gdb/parser-defs.h | 20 + gdb/ppc-linux-nat.c | 644 ++- gdb/ppc-linux-tdep.c | 2 +- gdb/printcmd.c | 123 +- gdb/procfs.c | 171 +- gdb/python/py-auto-load.c | 493 ++ gdb/python/py-block.c | 4 +- gdb/python/py-cmd.c | 12 +- gdb/python/py-frame.c | 14 +- gdb/python/py-lazy-string.c | 4 +- gdb/python/py-objfile.c | 4 +- gdb/python/py-prettyprint.c | 230 +- gdb/python/{py-objfile.c => py-progspace.c} | 118 +- gdb/python/py-type.c | 5 +- gdb/python/py-value.c | 22 +- gdb/python/python-internal.h | 16 +- gdb/python/python.c | 159 +- gdb/python/python.h | 6 +- gdb/remote-m32r-sdi.c | 2 +- gdb/remote-sim.c | 2 +- gdb/remote.c | 108 +- gdb/rs6000-aix-tdep.c | 20 +- gdb/scm-lang.c | 1 + gdb/ser-base.c | 7 + gdb/ser-pipe.c | 15 +- gdb/solib-frv.c | 33 +- gdb/solib-spu.c | 2 +- gdb/solib-svr4.c | 39 +- gdb/solib.c | 449 +- gdb/solist.h | 8 +- gdb/source.c | 4 + gdb/sparc-tdep.c | 1 + gdb/stabsread.c | 38 + gdb/symtab.c | 27 +- gdb/symtab.h | 9 +- gdb/target.c | 6 +- gdb/target.h | 7 + gdb/testsuite/ChangeLog | 131 + gdb/testsuite/Makefile.in | 6 +- gdb/testsuite/gdb.ada/dyn_loc.exp | 53 + gdb/testsuite/gdb.ada/dyn_loc/p.adb | 21 + gdb/testsuite/gdb.ada/dyn_loc/pack.adb | 29 + gdb/testsuite/gdb.ada/dyn_loc/pack.ads | 20 + .../gdb.ada/info_types.c} | 31 +- gdb/testsuite/gdb.ada/info_types.exp | 31 + gdb/testsuite/gdb.arch/gcore.c | 70 + gdb/testsuite/gdb.arch/system-gcore.exp | 238 + gdb/testsuite/gdb.base/Makefile.in | 3 +- gdb/testsuite/gdb.base/charset.c | 3 + gdb/testsuite/gdb.base/charset.exp | 17 + gdb/testsuite/gdb.base/help.exp | 4 +- gdb/testsuite/gdb.base/pr10179-a.c | 17 + gdb/testsuite/gdb.base/pr10179-b.c | 6 + gdb/testsuite/gdb.base/pr10179.exp | 38 + gdb/testsuite/gdb.base/solib-corrupted.exp | 46 + gdb/testsuite/gdb.base/solib-display.exp | 158 +- gdb/testsuite/gdb.base/source.exp | 13 + gdb/testsuite/gdb.cp/Makefile.in | 2 +- gdb/testsuite/gdb.cp/pr10687.cc | 24 + gdb/testsuite/gdb.cp/pr10687.exp | 31 + gdb/testsuite/gdb.cp/pr9167.cc | 36 + gdb/testsuite/gdb.cp/pr9167.exp | 31 + gdb/testsuite/gdb.fortran/logical.exp | 38 + gdb/testsuite/gdb.fortran/logical.f90 | 31 + gdb/testsuite/gdb.pascal/gdb11492.exp | 60 + gdb/testsuite/gdb.pascal/gdb11492.pas | 40 + gdb/testsuite/gdb.python/py-breakpoint.c | 2 +- gdb/testsuite/gdb.python/py-frame.exp | 2 +- gdb/testsuite/gdb.python/py-mi.exp | 35 + gdb/testsuite/gdb.python/py-prettyprint.c | 17 +- gdb/testsuite/gdb.python/py-prettyprint.exp | 1 + gdb/testsuite/gdb.python/py-prettyprint.py | 29 + .../gdb.python/py-progspace.c} | 20 +- gdb/testsuite/gdb.python/py-progspace.exp | 47 + .../{py-breakpoint.c => py-section-script.c} | 48 +- gdb/testsuite/gdb.python/py-section-script.exp | 65 + gdb/testsuite/gdb.python/py-section-script.py | 63 + .../py-breakpoint.c => gdb.stabs/gdb11479.c} | 58 +- gdb/testsuite/gdb.stabs/gdb11479.exp | 56 + gdb/testsuite/gdb.threads/watchthreads.exp | 4 +- gdb/testsuite/gdb.trace/save-trace.exp | 4 +- gdb/testsuite/lib/gdb.exp | 3 + gdb/tracepoint.c | 92 +- gdb/tui/tui-out.c | 351 +- gdb/tui/tui-regs.c | 14 +- gdb/tui/tui-stack.c | 9 +- gdb/ui-file.c | 3 +- gdb/ui-out.c | 10 +- gdb/ui-out.h | 8 +- gdb/valprint.c | 8 + gdb/version.in | 2 +- gdb/windows-nat.c | 51 +- gdb/windows-tdep.c | 403 + gdb/windows-tdep.h | 4 + include/ChangeLog | 46 +- include/aout/ChangeLog | 16 + include/aout/adobe.h | 13 +- include/aout/aout64.h | 7 +- include/aout/ar.h | 7 +- include/aout/dynix3.h | 11 +- include/aout/encap.h | 27 +- include/aout/host.h | 7 +- include/aout/hp.h | 27 +- include/aout/hp300hpux.h | 20 +- include/aout/ranlib.h | 25 +- include/aout/reloc.h | 25 +- include/aout/stab.def | 7 +- include/aout/stab_gnu.h | 7 +- include/aout/sun4.h | 7 +- include/bout.h | 13 +- include/coff/ChangeLog | 45 +- include/coff/alpha.h | 7 +- include/coff/apollo.h | 7 +- include/coff/arm.h | 4 +- include/coff/aux-coff.h | 7 +- include/coff/ecoff.h | 7 +- include/coff/external.h | 7 +- include/coff/go32exe.h | 7 +- include/coff/h8300.h | 7 +- include/coff/h8500.h | 7 +- include/coff/i386.h | 7 +- include/coff/i860.h | 7 +- include/coff/i960.h | 7 +- include/coff/ia64.h | 7 +- include/coff/internal.h | 9 +- include/coff/m68k.h | 7 +- include/coff/m88k.h | 7 +- include/coff/maxq.h | 4 +- include/coff/mcore.h | 27 +- include/coff/mips.h | 7 +- include/coff/mipspe.h | 7 +- include/coff/or32.h | 7 +- include/coff/pe.h | 4 +- include/coff/powerpc.h | 7 +- include/coff/rs6000.h | 19 +- include/coff/rs6k64.h | 7 +- include/coff/sh.h | 7 +- include/coff/sparc.h | 7 +- include/coff/ti.h | 8 +- include/coff/tic30.h | 7 +- include/coff/tic4x.h | 7 +- include/coff/tic54x.h | 7 +- include/coff/tic80.h | 7 +- include/coff/w65.h | 7 +- include/coff/we32k.h | 8 +- include/coff/x86_64.h | 7 +- include/coff/xcoff.h | 7 +- include/coff/z80.h | 4 +- include/coff/z8k.h | 7 +- include/dis-asm.h | 2 +- include/elf/ChangeLog | 78 + include/elf/alpha.h | 27 +- include/elf/arc.h | 27 +- include/elf/arm.h | 20 +- include/elf/avr.h | 6 +- include/elf/bfin.h | 26 +- include/elf/common.h | 6 +- include/elf/cr16.h | 4 +- include/elf/cr16c.h | 4 +- include/elf/cris.h | 26 +- include/elf/crx.h | 4 +- include/elf/d10v.h | 4 +- include/elf/d30v.h | 4 +- include/elf/dlx.h | 4 +- include/elf/dwarf.h | 31 +- include/elf/external.h | 30 +- include/elf/fr30.h | 26 +- include/elf/frv.h | 26 +- include/elf/h8.h | 4 +- include/elf/hppa.h | 7 +- include/elf/i370.h | 27 +- include/elf/i386.h | 4 +- include/elf/i860.h | 4 +- include/elf/i960.h | 4 +- include/elf/ia64.h | 7 +- include/elf/internal.h | 81 +- include/elf/ip2k.h | 8 +- include/elf/iq2000.h | 26 +- include/elf/lm32.h | 6 +- include/elf/m32c.h | 26 +- include/elf/m32r.h | 8 +- include/elf/m68hc11.h | 4 +- include/elf/m68k.h | 4 +- include/elf/mcore.h | 29 +- include/elf/mep.h | 9 +- include/elf/microblaze.h | 6 +- include/elf/mips.h | 27 +- include/elf/mmix.h | 30 +- include/elf/mn10200.h | 29 +- include/elf/moxie.h | 4 +- include/elf/msp430.h | 8 +- include/elf/mt.h | 26 +- include/elf/openrisc.h | 26 +- include/elf/or32.h | 7 +- include/elf/pj.h | 4 +- include/elf/ppc.h | 34 +- include/elf/ppc64.h | 27 +- include/elf/reloc-macros.h | 4 +- include/elf/rx.h | 6 +- include/elf/s390.h | 4 +- include/elf/sh.h | 5 +- include/elf/sparc.h | 27 +- include/elf/spu.h | 4 +- include/elf/v850.h | 7 +- include/elf/vax.h | 4 +- include/elf/vxworks.h | 28 +- include/elf/x86-64.h | 4 +- include/elf/xc16x.h | 9 +- include/elf/xstormy16.h | 26 +- include/elf/xtensa.h | 4 +- include/filenames.h | 50 +- include/gdb/ChangeLog | 9 + include/gdb/callback.h | 98 +- include/gdb/remote-sim.h | 26 +- include/hp-symtab.h | 5 +- include/libiberty.h | 11 + include/nlm/ChangeLog | 12 +- include/nlm/alpha-ext.h | 27 +- include/nlm/common.h | 32 +- include/nlm/external.h | 36 +- include/nlm/i386-ext.h | 27 +- include/nlm/internal.h | 32 +- include/nlm/ppc-ext.h | 27 +- include/nlm/sparc32-ext.h | 27 +- include/oasys.h | 8 +- include/opcode/ChangeLog | 65 +- include/opcode/alpha.h | 27 +- include/opcode/arc.h | 7 +- include/opcode/arm.h | 10 +- include/opcode/avr.h | 7 +- include/opcode/bfin.h | 27 +- include/opcode/cgen.h | 28 +- include/opcode/convex.h | 27 +- include/opcode/cr16.h | 4 +- include/opcode/cris.h | 27 +- include/opcode/crx.h | 7 +- include/opcode/d10v.h | 27 +- include/opcode/d30v.h | 28 +- include/opcode/dlx.h | 7 +- include/opcode/h8300.h | 4 +- include/opcode/hppa.h | 27 +- include/opcode/i370.h | 28 +- include/opcode/i386.h | 7 +- include/opcode/i860.h | 30 +- include/opcode/i960.h | 32 +- include/opcode/ia64.h | 20 +- include/opcode/m68hc11.h | 27 +- include/opcode/m68k.h | 8 +- include/opcode/m88k.h | 27 +- include/opcode/maxq.h | 6 +- include/opcode/mips.h | 25 +- include/opcode/mmix.h | 27 +- include/opcode/mn10200.h | 27 +- include/opcode/mn10300.h | 27 +- include/opcode/msp430.h | 7 +- include/opcode/np1.h | 35 +- include/opcode/ns32k.h | 28 +- include/opcode/or32.h | 7 +- include/opcode/pdp11.h | 31 +- include/opcode/pj.h | 26 +- include/opcode/pn.h | 27 +- include/opcode/ppc.h | 31 +- include/opcode/pyr.h | 4 +- include/opcode/rx.h | 4 +- include/opcode/s390.h | 4 +- include/opcode/score-datadep.h | 4 +- include/opcode/score-inst.h | 4 +- include/opcode/sparc.h | 6 +- include/opcode/spu-insns.h | 4 +- include/opcode/spu.h | 5 +- include/opcode/tic30.h | 28 +- include/opcode/tic4x.h | 8 +- include/opcode/tic54x.h | 28 +- include/opcode/tic6x-insn-formats.h | 2 +- include/opcode/tic80.h | 27 +- include/opcode/v850.h | 27 +- include/opcode/vax.h | 27 +- include/progress.h | 31 +- include/sha1.h | 4 +- include/xtensa-isa-internal.h | 4 +- include/xtensa-isa.h | 4 +- libiberty/ChangeLog | 8 + libiberty/Makefile.in | 2 +- libiberty/lbasename.c | 28 +- opcodes/ChangeLog | 10 + opcodes/i386-dis.c | 21 +- opcodes/po/opcodes.pot | 32 +- opcodes/po/vi.po | 36 +- sim/ChangeLog | 4 + sim/README-HACKING | 245 + sim/arm/ChangeLog | 4 + sim/arm/wrapper.c | 2 +- sim/avr/ChangeLog | 3 + sim/avr/interp.c | 2 +- sim/common/ChangeLog | 87 + sim/common/cgen-scache.c | 2 +- sim/common/dv-core.c | 2 +- sim/common/dv-glue.c | 6 +- sim/common/dv-pal.c | 4 +- sim/common/dv-sockser.c | 7 +- sim/common/dv-sockser.h | 5 +- sim/common/hw-ports.c | 2 +- sim/common/sim-fpu.c | 12 +- sim/common/sim-fpu.h | 2 +- sim/common/sim-hrw.c | 2 +- sim/common/sim-hw.c | 16 +- sim/common/sim-model.c | 33 +- sim/common/sim-options.c | 16 +- sim/common/sim-profile.c | 275 +- sim/common/sim-profile.h | 18 +- sim/common/sim-trace.c | 40 +- sim/common/sim-utils.h | 2 +- sim/common/sim-watch.c | 6 +- sim/cr16/ChangeLog | 4 + sim/cr16/interp.c | 2 +- sim/d10v/ChangeLog | 4 + sim/d10v/interp.c | 2 +- sim/erc32/ChangeLog | 4 + sim/erc32/interf.c | 2 +- sim/frv/ChangeLog | 4 + sim/frv/profile.c | 2 +- sim/h8300/ChangeLog | 4 + sim/h8300/compile.c | 2 +- sim/m32c/ChangeLog | 6 + sim/m32c/gdb-if.c | 2 +- sim/m32c/mem.c | 4 +- sim/m32c/mem.h | 2 +- sim/mcore/ChangeLog | 4 + sim/mcore/interp.c | 2 +- sim/microblaze/ChangeLog | 3 + sim/microblaze/interp.c | 2 +- sim/mips/ChangeLog | 4 + sim/mips/interp.c | 2 +- sim/mn10300/ChangeLog | 7 + sim/mn10300/dv-mn103ser.c | 33 +- sim/moxie/ChangeLog | 4 + sim/moxie/interp.c | 2 +- sim/ppc/ChangeLog | 4 + sim/ppc/sim_calls.c | 2 +- sim/rx/ChangeLog | 4 + sim/rx/gdb-if.c | 2 +- sim/sh/ChangeLog | 4 + sim/sh/interp.c | 4 +- 474 files changed, 22845 insertions(+), 12927 deletions(-) copy gdb/windows-tdep.h => bfd/elf32-tic6x.h (57%) create mode 100644 bfd/hosts/x86-64linux.h create mode 100644 bfd/vms-alpha.c delete mode 100644 bfd/vms-gsd.c delete mode 100644 bfd/vms-hdr.c delete mode 100644 bfd/vms-tir.c delete mode 100644 bfd/vms.c create mode 100644 gdb/filesystem.c create mode 100644 gdb/filesystem.h create mode 100644 gdb/python/py-auto-load.c copy gdb/python/{py-objfile.c => py-progspace.c} (54%) create mode 100644 gdb/testsuite/gdb.ada/dyn_loc.exp create mode 100644 gdb/testsuite/gdb.ada/dyn_loc/p.adb create mode 100644 gdb/testsuite/gdb.ada/dyn_loc/pack.adb create mode 100644 gdb/testsuite/gdb.ada/dyn_loc/pack.ads copy gdb/{windows-tdep.h => testsuite/gdb.ada/info_types.c} (65%) create mode 100644 gdb/testsuite/gdb.ada/info_types.exp create mode 100644 gdb/testsuite/gdb.arch/gcore.c create mode 100644 gdb/testsuite/gdb.arch/system-gcore.exp create mode 100644 gdb/testsuite/gdb.base/pr10179-a.c create mode 100644 gdb/testsuite/gdb.base/pr10179-b.c create mode 100644 gdb/testsuite/gdb.base/pr10179.exp create mode 100644 gdb/testsuite/gdb.base/solib-corrupted.exp create mode 100644 gdb/testsuite/gdb.cp/pr10687.cc create mode 100644 gdb/testsuite/gdb.cp/pr10687.exp create mode 100644 gdb/testsuite/gdb.cp/pr9167.cc create mode 100644 gdb/testsuite/gdb.cp/pr9167.exp create mode 100644 gdb/testsuite/gdb.fortran/logical.exp create mode 100644 gdb/testsuite/gdb.fortran/logical.f90 create mode 100644 gdb/testsuite/gdb.pascal/gdb11492.exp create mode 100644 gdb/testsuite/gdb.pascal/gdb11492.pas copy gdb/{windows-tdep.h => testsuite/gdb.python/py-progspace.c} (66%) create mode 100644 gdb/testsuite/gdb.python/py-progspace.exp copy gdb/testsuite/gdb.python/{py-breakpoint.c => py-section-script.c} (53%) create mode 100644 gdb/testsuite/gdb.python/py-section-script.exp create mode 100644 gdb/testsuite/gdb.python/py-section-script.py copy gdb/testsuite/{gdb.python/py-breakpoint.c => gdb.stabs/gdb11479.c} (52%) create mode 100644 gdb/testsuite/gdb.stabs/gdb11479.exp create mode 100644 sim/avr/ChangeLog create mode 100644 sim/microblaze/ChangeLog First 500 lines of diff: diff --git a/ChangeLog b/ChangeLog index cf51807..0871057 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-04-14 Tristan Gingold + + * configure.ac (alpha*-*-*vms*): Remove ld from noconfigdirs. + * configure: Regenerate. + 2010-04-08 Ralf Wildenhues Merge from gcc: diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 55aeba2..89ecc40 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,191 @@ +2010-04-23 Alan Modra + + * elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and + ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT + throughout file. + (assign_file_positions_for_load_sections): Modify section in + segment warning to ignore overlay vmas. + * elf32-spu.c (spu_elf_object_p): Replace use of + ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT. + +2010-04-22 Nick Clifton + + * po/bfd.pot: Updated by the Translation project. + * po/vi.po: Updated Vietnamese translation. + +2010-04-22 Alan Modra + + * elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29 + change. Tidy. Don't error on sections not allocated in segment. + +2010-04-15 Andrew Haley + + * bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag: + merge_exidx_entries. + * bfd-in2.h: Likewise. + * elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise. Use it to + control merging of exidx entries. + +2010-04-20 Joseph Myers + + * elf32-tic6x.h: New. + * elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA. + * elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata, + elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel, + elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject, + elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p, + bfd_elf32_mkobject, bfd_elf32_new_section_hook): New. + (elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup, + elf32_tic6x_relocate_section): Handle REL relocations. + (elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel. + +2010-04-20 Jakub Jelinek + + * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat + DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name. + +2010-04-19 Nick Clifton + + * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused + arhdrpos variable. + * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused + attribute to warned variable. Remove unused val, type and type2 + variables. + +2010-04-16 Andreas Schwab + + * vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking + strict-aliasing rules. + +2010-04-16 Tristan Gingold + + * vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo. + (_bfd_vms_get_object_record): Always assume there is a pad byte + for alignment. + + * vms-lib.c: Add a few comments. + +2010-04-15 Matthew Gretton-Dann + + * elf32-arm.c (elf32_arm_merge_eabi_attributes): Support additions to + attributes in v2.08 of the ABI. + +2010-04-15 Alan Modra + + * config.bfd (vax*-*-*vms*): Delete. + +2010-04-14 Tristan Gingold + + * Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo, + vms-tir.lo, vms.lo and add vms-alpha.lo + (BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c, + vms-tir.c, vms.c and add vms-alpha.c + * Makefile.in: Regenerate. + * configure.in (TDEFINES): Adjust file list for vms_alpha_vec. + Remove vms_vax_vec. + * configure: Regenerate. + * targets.c (vms_vax_vec): Remove the declaration. + (_bfd_target_vector): Remove vms_vax_vec. + * vms-alpha.c: New file. + * vms-gsd.c: Removed, rewritten in vms-alpha.c + * vms-hdr.c: Ditto. + * vms-tir.c: Ditto. + * vms.c: Ditto. + * vms-misc.c: Fix indentation and comments. Replace most of + #if VMS_DEBUG/vms_debug with vms_debug2. + (_bfd_vms_hash_newfunc): Moved to vms-alpha.c + (hash_string): Ditto. + (_bfd_vms_length_hash_symbol): Ditto. + (maybe_adjust_record_pointer_for_object): Ditto. + (_bfd_vms_get_object_record): Ditto. + (vms_get_remaining_object_record): Ditto. + (_bfd_vms_push): Ditto. + (_bfd_vms_pop): Ditto. + (_bfd_vms_get_header_values): Removed. + (_bfd_vms_get_first_record): Removed. + (vms_get_remaining_image_record): Removed. + (new_symbol): Removed. + (_bfd_vms_enter_symbol): Removed. + (_bfd_vms_save_sized_string): Use memcpy instead of strncpy. + (_bfd_vms_output_begin): Remove rechead parameter. Replace bfd + parameter with struct vms_rec_wr. + (_bfd_vms_output_push): Removed and replaced by ... + (_bfd_vms_output_begin_subrec): ... new function. + (_bfd_vms_output_alignment): Replace bfd parameter with + struct vms_rec_wr, and adjust. + (_bfd_vms_output_check): Ditto + (_bfd_vms_output_byte): Ditto. + (_bfd_vms_output_short): Ditto. + (_bfd_vms_output_long): Ditto. + (_bfd_vms_output_quad): Ditto. + (_bfd_vms_output_counted): Ditto. + (_bfd_vms_output_dump): Ditto. + (_bfd_vms_output_fill): Ditto. + (_bfd_vms_output_pop): Removed and replaced by ... + (_bfd_vms_output_end_subrec): ... new function. + (_bfd_vms_output_flush): Removed. + (_bfd_vms_output_align): New function. + (_bfd_vms_output_end): Add recwr parameter. Adjust for this new + parameter. + (vms_convert_to_var): New function imported from vms.c + (vms_convert_to_var_1): Ditto. + (vms_convert_to_var_unix_filename): Ditto. + (vms_get_module_name): Ditto. + (get_vms_time_string): Ditto. + (vms_time_to_time_t): Ditto. + (vms_rawtime_to_time_t): Ditto. + * vms.h: All macros for the VMS file format are now in include/vms. + Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c + have been removed. + (struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c + (struct fileinfo, struct srecinfo, struct lineinfo): Ditto. + (struct funcinfo, struct vms_private_data_struct): Ditto. + (struct vms_section_data_struct): Ditto. + (struct vms_rec_rd, stryct vms_rec_wr): New declarations. + (vms_get_module_name, get_vms_time_string): New declarations. + (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto. + (_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto. + (_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted. + (_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto. + (_bfd_vms_output_end,_bfd_vms_output_check): Ditto. + (_bfd_vms_output_byte, _bfd_vms_output_short): Ditto. + (_bfd_vms_output_long, _bfd_vms_output_quad): Ditto. + (_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto. + (_bfd_vms_output_fill): Ditto. + (bfd_vms_set_section_flags): Ditto. + +2010-04-14 Matthew Gretton-Dann + + * elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early + exit due to merging the same weak symbol to test that the symbols are + actually weak. + +2010-04-13 Alan Modra + + * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location + when optimizing high got_tlsgd/ld insns. + +2010-04-10 H.J. Lu + + * hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before + define. + (HAVE_PRSTATUS32_T): Likewise. + +2010-04-10 H.J. Lu + + PR corefiles/11467 + * configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h + for x86_64-*-linux*. + * config.in: Regenerated. + * configure: Likewise. + + * elf.c: Include CORE_HEADER if it is defined. + +2010-04-10 H.J. Lu + Jan Kratochvil + + * hosts/x86-64linux.h: New. + 2010-04-09 Nick Clifton * aoutx.h (aout_link_input_bfd): Remove unused variable sym_count. diff --git a/bfd/Makefile.am b/bfd/Makefile.am index ac38177..ef545f5 100644 --- a/bfd/Makefile.am +++ b/bfd/Makefile.am @@ -391,12 +391,9 @@ BFD32_BACKENDS = \ vaxbsd.lo \ vaxnetbsd.lo \ versados.lo \ - vms-gsd.lo \ - vms-hdr.lo \ + vms-alpha.lo \ vms-lib.lo \ vms-misc.lo \ - vms-tir.lo \ - vms.lo \ xcofflink.lo \ xsym.lo \ xtensa-isa.lo \ @@ -576,12 +573,9 @@ BFD32_BACKENDS_CFILES = \ vaxbsd.c \ vaxnetbsd.c \ versados.c \ - vms-gsd.c \ - vms-hdr.c \ + vms-alpha.c \ vms-lib.c \ vms-misc.c \ - vms-tir.c \ - vms.c \ xcofflink.c \ xsym.c \ xtensa-isa.c \ diff --git a/bfd/Makefile.in b/bfd/Makefile.in index ed626c9..7134a70 100644 --- a/bfd/Makefile.in +++ b/bfd/Makefile.in @@ -688,12 +688,9 @@ BFD32_BACKENDS = \ vaxbsd.lo \ vaxnetbsd.lo \ versados.lo \ - vms-gsd.lo \ - vms-hdr.lo \ - vms-lib.lo \ vms-misc.lo \ - vms-tir.lo \ - vms.lo \ + vms-alpha.lo \ + vms-lib.lo \ xcofflink.lo \ xsym.lo \ xtensa-isa.lo \ @@ -873,12 +870,9 @@ BFD32_BACKENDS_CFILES = \ vaxbsd.c \ vaxnetbsd.c \ versados.c \ - vms-gsd.c \ - vms-hdr.c \ + vms-alpha.c \ vms-lib.c \ vms-misc.c \ - vms-tir.c \ - vms.c \ xcofflink.c \ xsym.c \ xtensa-isa.c \ @@ -1488,12 +1482,9 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vaxnetbsd.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/verilog.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/versados.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-gsd.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-hdr.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-alpha.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-lib.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-misc.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms-tir.Plo@am__quote@ -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vms.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xcofflink.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xsym.Plo@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xtensa-isa.Plo@am__quote@ diff --git a/bfd/archive64.c b/bfd/archive64.c index 0a1f6ed..067fbb9 100644 --- a/bfd/archive64.c +++ b/bfd/archive64.c @@ -1,6 +1,6 @@ /* MIPS-specific support for 64-bit ELF - Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007 - Free Software Foundation, Inc. + Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007, + 2010 Free Software Foundation, Inc. Ian Lance Taylor, Cygnus Support Linker support added by Mark Mitchell, CodeSourcery, LLC. @@ -43,7 +43,6 @@ bfd_elf64_archive_slurp_armap (bfd *abfd) { struct artdata *ardata = bfd_ardata (abfd); char nextname[17]; - file_ptr arhdrpos; bfd_size_type i, parsed_size, nsymz, stringsize, carsym_size, ptrsize; struct areltdata *mapdata; bfd_byte int_buf[8]; @@ -55,7 +54,6 @@ bfd_elf64_archive_slurp_armap (bfd *abfd) ardata->symdefs = NULL; /* Get the name of the first element. */ - arhdrpos = bfd_tell (abfd); i = bfd_bread (nextname, 16, abfd); if (i == 0) return TRUE; diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h index 07f2fae..cfa5225 100644 --- a/bfd/bfd-in.h +++ b/bfd/bfd-in.h @@ -906,7 +906,7 @@ extern bfd_boolean elf32_arm_build_stubs /* ARM unwind section editing support. */ extern bfd_boolean elf32_arm_fix_exidx_coverage - (struct bfd_section **, unsigned int, struct bfd_link_info *); +(struct bfd_section **, unsigned int, struct bfd_link_info *, bfd_boolean); /* PowerPC @tls opcode transform/validate. */ extern unsigned int _bfd_elf_ppc_at_tls_transform diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 9cf4f64..a3f8ccc 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -913,7 +913,7 @@ extern bfd_boolean elf32_arm_build_stubs /* ARM unwind section editing support. */ extern bfd_boolean elf32_arm_fix_exidx_coverage - (struct bfd_section **, unsigned int, struct bfd_link_info *); + (struct bfd_section **, unsigned int, struct bfd_link_info *, bfd_boolean); /* PowerPC @tls opcode transform/validate. */ extern unsigned int _bfd_elf_ppc_at_tls_transform diff --git a/bfd/config.bfd b/bfd/config.bfd index 1c1c988..ffae428 100644 --- a/bfd/config.bfd +++ b/bfd/config.bfd @@ -1511,10 +1511,6 @@ case "${targ}" in targ_defvec=bfd_elf32_vax_vec ;; - vax*-*-*vms*) - targ_defvec=vms_vax_vec - ;; - we32k-*-*) targ_defvec=we32kcoff_vec ;; diff --git a/bfd/config.in b/bfd/config.in index 5881b8d..065c905 100644 --- a/bfd/config.in +++ b/bfd/config.in @@ -1,5 +1,8 @@ /* config.in. Generated from configure.in by autoheader. */ +/* Name of host specific core header file to include in elf.c. */ +#undef CORE_HEADER + /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS diff --git a/bfd/configure b/bfd/configure index f4aba27..7d16fab 100755 --- a/bfd/configure +++ b/bfd/configure @@ -13810,6 +13810,7 @@ fi # If we are configured native, pick a core file support file. COREFILE= COREFLAG= +CORE_HEADER= TRAD_HEADER= if test "${target}" = "${host}"; then case "${host}" in @@ -14034,6 +14035,9 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext COREFILE=trad-core.lo TRAD_HEADER='"hosts/vaxbsd.h"' ;; + x86_64-*-linux*) + CORE_HEADER='"hosts/x86-64linux.h"' + ;; x86_64-*-netbsd* | x86_64-*-openbsd*) COREFILE=netbsd-core.lo ;; @@ -14701,6 +14705,13 @@ $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; } fi +if test -n "$CORE_HEADER"; then + +cat >>confdefs.h <<_ACEOF +#define CORE_HEADER $CORE_HEADER +_ACEOF + +fi if test -n "$TRAD_HEADER"; then cat >>confdefs.h <<_ACEOF @@ -15272,9 +15283,8 @@ do vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; versados_vec) tb="$tb versados.lo" ;; - vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo vms-lib.lo"; target_size=64 ;; + vms_alpha_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;; vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;; - vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; we32kcoff_vec) tb="$tb coff-we32k.lo" ;; z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;; diff --git a/bfd/configure.in b/bfd/configure.in index dfbd0a2..eb9d7e7 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -211,6 +211,7 @@ AM_ZLIB # If we are configured native, pick a core file support file. COREFILE= COREFLAG= +CORE_HEADER= TRAD_HEADER= if test "${target}" = "${host}"; then case "${host}" in @@ -443,6 +444,9 @@ changequote([,])dnl COREFILE=trad-core.lo TRAD_HEADER='"hosts/vaxbsd.h"' ;; + x86_64-*-linux*) + CORE_HEADER='"hosts/x86-64linux.h"' + ;; x86_64-*-netbsd* | x86_64-*-openbsd*) COREFILE=netbsd-core.lo ;; @@ -487,6 +491,10 @@ changequote([,])dnl fi AC_SUBST(COREFILE) AC_SUBST(COREFLAG) +if test -n "$CORE_HEADER"; then + AC_DEFINE_UNQUOTED(CORE_HEADER, $CORE_HEADER, + [Name of host specific core header file to include in elf.c.]) +fi if test -n "$TRAD_HEADER"; then AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER, [Name of host specific header file to include in trad-core.c.]) @@ -919,9 +927,8 @@ do vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; versados_vec) tb="$tb versados.lo" ;; - vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo vms-lib.lo"; target_size=64 ;; + vms_alpha_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;; vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;; - vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; we32kcoff_vec) tb="$tb coff-we32k.lo" ;; z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;; diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 11618c0..9b194aa 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -1950,13 +1950,15 @@ find_abstract_instance_name (struct comp_unit *unit, switch (attr.name) { case DW_AT_name: - /* Prefer DW_AT_MIPS_linkage_name over DW_AT_name. */ + /* Prefer DW_AT_MIPS_linkage_name or DW_AT_linkage_name + over DW_AT_name. */ if (name == NULL) name = attr.u.str; break; case DW_AT_specification: name = find_abstract_instance_name (unit, &attr); break; + case DW_AT_linkage_name: case DW_AT_MIPS_linkage_name: name = attr.u.str; break; @@ -2126,11 +2128,13 @@ scan_unit_for_symbols (struct comp_unit *unit) break; case DW_AT_name: - /* Prefer DW_AT_MIPS_linkage_name over DW_AT_name. */ + /* Prefer DW_AT_MIPS_linkage_name or DW_AT_linkage_name + over DW_AT_name. */ if (func->name == NULL) func->name = attr.u.str; break; + case DW_AT_linkage_name: case DW_AT_MIPS_linkage_name: func->name = attr.u.str; break; diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 05e17c8..0c975dc 100644 hooks/post-receive -- Repository for Project Archer.