public inbox for archer-commits@sourceware.org help / color / mirror / Atom feed
From: jkratoch@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] master: Merge remote branch 'gdb/master' Date: Mon, 07 Jun 2010 08:14:00 -0000 [thread overview] Message-ID: <20100607081400.20737.qmail@sourceware.org> (raw) The branch, master has been updated via 69586a9d5fd734221116b1b3942d57abd49f0fe3 (commit) via 8dd6bd490a400662a22cfe3684f97122cc95e294 (commit) via 92cdabaf51be0b24e1115e4b68237955b09ab69a (commit) via b042f1660b577c801bc7dd1ff4beda8f2aa89348 (commit) via 3828e51dff39ce216a7c0fa01237640a773e9536 (commit) via 89438aba8612cfd4c7a91e87dba9f4c2593817b5 (commit) via cbf5b8341ae85f2d2da1ffdd1d94ff89a06e3362 (commit) via f658d37633503166d4d61c2ec96eed5fc0db73a8 (commit) via bcd474c7a8cd7db461419a309d734a603c8d4a46 (commit) via 70d3a217c68043df2a04cebbe360a6af37cfac4d (commit) via f69da6400810fa9839eadf3b4c2f5fab89c85db1 (commit) via 2074d093fb1fe2e9294a0849b024d2d2b57f3726 (commit) via b0e06c2de17ef3720293e5d9f4c5ea3e2a936a7d (commit) via 641d6f210aa992b946e63763eb39e6cbc648ba23 (commit) via 73ae440a4921980f803555d142a4f6d3f2c65d67 (commit) via f993ca08d60d6f71dc29c3754c90d3af25b9f6f1 (commit) via cd8fdd50575a654310162867ffd7db883f7ecf9a (commit) via 0dc1ce2f0f70eea81e64dbea0abf0a14b1f7dfdb (commit) via 061920ccf7ad8350999c6dd492509ece2c644f68 (commit) via 671e6b78d45fef3c5e06274047d014777254ca24 (commit) via ac794ee400a0b0f31fc72c256164bd194b40a1e1 (commit) via f6e8cb4b57903155d251d2a907e6ecfbf2ade8a5 (commit) via 00edd0ee40c93d024dd5daf259f59acd38b307d1 (commit) via 2e3cda7dcb9752e7662594934dc6e0c1f06568da (commit) via b257c95d95a56ffc7ed7c296ec38d4ece2fa2054 (commit) via dd02113533f9df1eb7ade0bcc65f03087b94b0a8 (commit) via 70cc0c1d7e1c8d112cb2ab0393f2c5529cef5b80 (commit) via d2c71e3101444f4183fbf672e5e34aa70c82881b (commit) via 0f0987d09db144c80cdc7e3a9c05bf601b657bab (commit) via e742b72b1a11fb68ba954648db11bc3fbb46ed3f (commit) via fc9f6633b5caad1b5be11e06ccb9b29d07bd3ad1 (commit) via 0f2105d7209be5a9eb98d6907df93f59e27bf8b3 (commit) via b0418c906a7a9e4371a31871165d9299c924cb4b (commit) via e0c0dff31537b936df729b98dd7a9cf83a3d9b4d (commit) via f2521eb388e07909560f5c881f338ad986ef063d (commit) via 7d9b30f222f413a5d30f9b92b57269ed0d3f1ef8 (commit) via 9ebc5abfba7485500641a793722348f71cf8e390 (commit) via 4199f8a8172f7652b80f04bb0711a4f08aaffa7c (commit) via 53edf2ddec50b011dd311b426f41c839d1431265 (commit) via 908331045b3c7a6bfc47df7695451626a691965a (commit) via 504d3e952eafea1cb610d53ffe91a5bd6b5aeddd (commit) via 53f6fc3257c74aef466d35e93e19daaa2b54137b (commit) via 009de46eddb2c1dfd52b19f79e6cdf1e9acb5174 (commit) via b13de58733c1de3b20f8df25322b45d0620f1a7e (commit) via 92e4ebdbc9df0ebb5e3afe0b7cf0a97b5cc20cd8 (commit) via bc1d94c2305ecb01f08ba5fd2ba6c9e0ae8818f8 (commit) via 906637e07dc427c92cdf3ac00d739368d1753d77 (commit) from 75a875500bdb364303b7d90aa30d988592f5663c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 69586a9d5fd734221116b1b3942d57abd49f0fe3 Merge: 75a875500bdb364303b7d90aa30d988592f5663c 8dd6bd490a400662a22cfe3684f97122cc95e294 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Mon Jun 7 10:13:40 2010 +0200 Merge remote branch 'gdb/master' commit 8dd6bd490a400662a22cfe3684f97122cc95e294 Author: Alan Modra <amodra@bigpond.net.au> Date: Mon Jun 7 00:00:05 2010 +0000 daily update commit 92cdabaf51be0b24e1115e4b68237955b09ab69a Author: gdbadmin <gdbadmin@sourceware.org> Date: Mon Jun 7 00:00:02 2010 +0000 *** empty log message *** commit b042f1660b577c801bc7dd1ff4beda8f2aa89348 Author: Alan Modra <amodra@bigpond.net.au> Date: Sun Jun 6 00:00:05 2010 +0000 daily update commit 3828e51dff39ce216a7c0fa01237640a773e9536 Author: gdbadmin <gdbadmin@sourceware.org> Date: Sun Jun 6 00:00:03 2010 +0000 *** empty log message *** commit 89438aba8612cfd4c7a91e87dba9f4c2593817b5 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Sat Jun 5 14:11:53 2010 +0000 gdb/ Fix duplicate types for single DIE. * dwarf2read.c (read_structure_type): Move set_descriptive_type after set_die_type. (read_array_type): Remove type initialization. Recheck get_die_type after initial die_type. Move set_die_type before set_descriptive_type. (read_set_type): New variable domain_type. Recheck get_die_type after initial die_type. Move attr initialization later. (read_tag_pointer_type, read_tag_reference_type): New variable target_type. Recheck get_die_type after initial die_type. (read_tag_ptr_to_member_type): Recheck get_die_type after initial die_type and die_containing_type. (read_tag_const_type, read_tag_volatile_type, read_subroutine_type): Recheck get_die_type after initial die_type. (read_subrange_type): Recheck get_die_type after initial die_type. Move set_die_type before set_descriptive_type. (set_die_type): Extend the function comment. Call complaint if DIE has some type already set. commit cbf5b8341ae85f2d2da1ffdd1d94ff89a06e3362 Author: Vladimir Prus <vladimir@codesourcery.com> Date: Sat Jun 5 05:55:59 2010 +0000 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust for current naming of thread groups (iN, not N). commit f658d37633503166d4d61c2ec96eed5fc0db73a8 Author: gdbadmin <gdbadmin@sourceware.org> Date: Sat Jun 5 00:00:36 2010 +0000 *** empty log message *** commit bcd474c7a8cd7db461419a309d734a603c8d4a46 Author: Alan Modra <amodra@bigpond.net.au> Date: Sat Jun 5 00:00:07 2010 +0000 daily update commit 70d3a217c68043df2a04cebbe360a6af37cfac4d Author: Michael Snyder <msnyder@specifix.com> Date: Fri Jun 4 23:09:15 2010 +0000 2010-06-04 Michael Snyder <msnyder@vmware.com> * gdb.base/attach.exp: Replace gdb_test_multiple with gdb_test. commit f69da6400810fa9839eadf3b4c2f5fab89c85db1 Author: Michael Snyder <msnyder@specifix.com> Date: Fri Jun 4 22:15:28 2010 +0000 2010-06-04 Michael Snyder <msnyder@vmware.com> * gdb.base/pending.exp: Replace gdb_test_multiple with gdb_test. commit 2074d093fb1fe2e9294a0849b024d2d2b57f3726 Author: Michael Snyder <msnyder@specifix.com> Date: Fri Jun 4 21:45:02 2010 +0000 2010-06-04 Michael Snyder <msnyder@vmware.com> * gdb.cp/pr-1210.exp: Add message string to gdb_test_multiple. commit b0e06c2de17ef3720293e5d9f4c5ea3e2a936a7d Author: sergiodj <sergiodj> Date: Fri Jun 4 21:39:46 2010 +0000 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com> * ada-lang.c (ada_operator_length): Constify `struct expression'. * parse.c (operator_length): Likewise. (operator_length_standard): Likewise. * parser-defs.h (operator_length): Likewise. (operator_length_standard): Likewise. (struct exp_descriptor <operator_length>): Likewise. commit 641d6f210aa992b946e63763eb39e6cbc648ba23 Author: Doug Evans <dje@google.com> Date: Fri Jun 4 21:20:21 2010 +0000 remove trailing whitespace in previous checkin commit 73ae440a4921980f803555d142a4f6d3f2c65d67 Author: Doug Evans <dje@google.com> Date: Fri Jun 4 18:18:24 2010 +0000 Add support for enabling/disabling individual pretty-printers. * python/py-prettyprint.c (search_pp_list): Skip disabled printers. * python/python-internal.h (gdbpy_enabled_cst): Declare. * python/python.c (gdbpy_enabled_cst): Define. (_initialize_python): Initialize gdbpy_enabled_cst. * NEWS: Add entry. doc/ * gdb.texinfo (Python API): New node `Disabling Pretty-Printers'. testsuite/ * gdb.python/py-prettyprint.exp: Add new test for enabled and disabled printers. * gdb.python/py-prettyprint.py (disable_lookup_function): New function. (enable_lookup_function): New function. commit f993ca08d60d6f71dc29c3754c90d3af25b9f6f1 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Fri Jun 4 16:47:58 2010 +0000 gdb/ * breakpoint.c (update_global_location_list): Fix comment typo. commit cd8fdd50575a654310162867ffd7db883f7ecf9a Author: Tom Tromey <tromey@redhat.com> Date: Fri Jun 4 16:40:13 2010 +0000 * gdb.python/py-value.exp (test_value_hash): Don't test equality of hash and id. commit 0dc1ce2f0f70eea81e64dbea0abf0a14b1f7dfdb Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Fri Jun 4 14:26:47 2010 +0000 gdb/testsuite/ * gdb.base/commands.exp (add printf tbreak command): Remove trailing newline. * gdb.gdb/complaints.exp (empty non-verbose non-noisy clear) (empty verbose non-noisy clear, empty verbose noisy clear) (empty non-verbose noisy clear): Likewise. commit 061920ccf7ad8350999c6dd492509ece2c644f68 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Fri Jun 4 14:26:47 2010 +0000 gdb/testsuite/ * gdb.base/commands.exp (add printf tbreak command): Remove trailing newline. * gdb.gdb/complaints.exp (empty non-verbose non-noisy clear) (empty verbose non-noisy clear, empty verbose noisy clear) (empty non-verbose noisy clear): Likewise. commit 671e6b78d45fef3c5e06274047d014777254ca24 Author: Hui Zhu <teawater@gmail.com> Date: Fri Jun 4 02:39:16 2010 +0000 2010-06-04 Hui Zhu <teawater@gmail.com> * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l. commit ac794ee400a0b0f31fc72c256164bd194b40a1e1 Author: Alan Modra <amodra@bigpond.net.au> Date: Fri Jun 4 00:00:08 2010 +0000 daily update commit f6e8cb4b57903155d251d2a907e6ecfbf2ade8a5 Author: gdbadmin <gdbadmin@sourceware.org> Date: Fri Jun 4 00:00:03 2010 +0000 *** empty log message *** commit 00edd0ee40c93d024dd5daf259f59acd38b307d1 Author: Michael Snyder <msnyder@specifix.com> Date: Thu Jun 3 23:54:17 2010 +0000 2010-06-03 Michael Snyder <msnyder@vmware.com> * gdb.base/commands.exp: Replace gdb_test with gdb_test_no_output. * gdb.base/display.exp: Ditto. * gdb.base/find.exp: Ditto. * gdb.base/ifelse.exp: Ditto. * gdb.base/multi-forks.exp: Ditto. * gdb.base/recurse.exp: Ditto. * gdb.base/setshow.exp: Ditto. * gdb.base/value-double-free.exp: Ditto. * gdb.base/watch-vfork.exp: Ditto. * gdb.base/watch_thread_num.exp: Ditto. * gdb.base/watchpoint-solib.exp: Ditto. * gdb.base/watchpoint.exp: Ditto. * gdb.base/watchpoints.exp: Ditto. * gdb.cp/classes.exp: Replace gdb_test with gdb_test_no_output. * gdb.cp/overload.exp: Ditto. * gdb.cp/virtfunc.exp: Ditto. * gdb.python/py-value.exp: Replace gdb_test with gdb_test_no_output. * gdb.reverse/watch-precsave.exp: Replace gdb_test with gdb_test_no_output. * gdb.threads/attach-into-signal.exp: Replace gdb_test with gdb_test_no_output. * gdb.threads/local-watch-wrong-thread.exp: Ditto. * gdb.threads/watchthreads.exp: Ditto. * gdb.threads/watchthreads2.exp: Ditto. * gdb.trace/deltrace.exp: Replace gdb_test with gdb_test_no_output. * gdb.trace/tfind.exp: Ditto. commit 2e3cda7dcb9752e7662594934dc6e0c1f06568da Author: Joel Brobecker <brobecker@gnat.com> Date: Thu Jun 3 20:29:26 2010 +0000 do not emit PASS for gdb_test_no_output test if message is empty string. This patch makes gdb_test_no_output not emit a PASS for a sucessful test when the message is the empty string. As requested, this makes it consistent with what gdb_test does. 2010-06-03 Joel Brobecker <brobecker@adacore.com> * lib/gdb.exp (gdb_test_no_output): Do not emit pass for successful test if message is the empty string. commit b257c95d95a56ffc7ed7c296ec38d4ece2fa2054 Author: Doug Evans <dje@google.com> Date: Thu Jun 3 19:06:59 2010 +0000 * gdbint.texinfo (Coding): Add subsection on command names. commit dd02113533f9df1eb7ade0bcc65f03087b94b0a8 Author: Doug Evans <dje@google.com> Date: Thu Jun 3 18:58:38 2010 +0000 * configure.ac: Don't fail if python is unusable when configured with --with-python=auto. * configure: Regenerate. commit 70cc0c1d7e1c8d112cb2ab0393f2c5529cef5b80 Author: DJ Delorie <dj@delorie.com> Date: Thu Jun 3 16:54:11 2010 +0000 merge from gcc commit d2c71e3101444f4183fbf672e5e34aa70c82881b Author: swagiaal <swagiaal> Date: Thu Jun 3 15:39:39 2010 +0000 Remove redundant naming of symbol from new_symbol. 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com> * dwarf2read.c (new_symbol): Remove redundant naming of symbol. commit 0f0987d09db144c80cdc7e3a9c05bf601b657bab Author: Pierre Muller <muller@ics.u-strasbg.fr> Date: Thu Jun 3 06:50:47 2010 +0000 * valprint.h (get_array_bounds): Change low and high parameter types to LONGEST *. * valprint.c (get_array_bounds): Use get_discrete_bounds call to compute bounds. (val_print_array_elements): Adapt to change above. * ada-valprint.c (print_optional_low_bound): Adapt to change above. * p-valprint.c (pascal_val_print): Likewise. commit e742b72b1a11fb68ba954648db11bc3fbb46ed3f Author: Ralf Wildenhues <Ralf.Wildenhues@gmx.de> Date: Thu Jun 3 06:33:10 2010 +0000 Import AC_CHECK_DECL for C++ fixes from git Autoconf. config/: Sync from GCC: PR bootstrap/42798 * override.m4 (_AC_CHECK_DECL_BODY, _AC_CHECK_DECLS): Import definitions from git Autoconf. commit fc9f6633b5caad1b5be11e06ccb9b29d07bd3ad1 Author: Alan Modra <amodra@bigpond.net.au> Date: Thu Jun 3 00:00:05 2010 +0000 daily update commit 0f2105d7209be5a9eb98d6907df93f59e27bf8b3 Author: gdbadmin <gdbadmin@sourceware.org> Date: Thu Jun 3 00:00:03 2010 +0000 *** empty log message *** commit b0418c906a7a9e4371a31871165d9299c924cb4b Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Wed Jun 2 23:01:00 2010 +0000 gdb/ * symfile.c (init_filename_language_table): New extensions .for, .FOR, .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and .F08. gdb/testsuite/ * gdb.fortran/module.exp (stopped language detection): New test. commit e0c0dff31537b936df729b98dd7a9cf83a3d9b4d Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Wed Jun 2 22:41:55 2010 +0000 gdb/ Support DW_TAG_module as separate namespaces. * dwarf2read.c (typename_concat): New parameter physname. (read_module_type): New function and declaration. (scan_partial_symbols): Scan also DW_TAG_module children. (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass to typename_concat backward compatible physname value 0. (partial_die_full_name, read_namespace_type): Pass to typename_concat backward compatible physname value 0. (add_partial_module, read_module): Remove FIXME comment. (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO. (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for DIEs under DW_TAG_module. (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and DW_AT_MIPS_linkage_name first, extend it for language_fortran && physname and return there instead of just setting NAME. Extend the main block for language_fortran. Pass physname parameter to the typename_concat call. (read_import_statement, read_func_scope, get_scope_pc_bounds) (load_partial_dies, determine_prefix): Support also DW_TAG_module. (new_symbol): Fill in cplus_specific.demangled_name if it is still missing from SYMBOL_SET_NAMES in the language_fortran case. (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module variables. (read_type_die) <DW_TAG_module>: New. (MAX_SEP_LEN): Increase to 7. (typename_concat): New parameter physname. New variable lead. Support also language_fortran. * f-exp.y (yylex): Consider : also as a symbol name character class. * f-lang.c: Include cp-support.h. (f_word_break_characters, f_make_symbol_completion_list): New functions. (f_language_defn): Use cp_lookup_symbol_nonlocal, f_word_break_characters and f_make_symbol_completion_list. * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New. * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New. * symtab.c (symbol_init_language_specific): Support language_fortran. (symbol_find_demangled_name): New comment on language_fortran. (symbol_natural_name, symbol_demangled_name): Use demangled_name even for language_fortran. (lookup_symbol_aux_local): Check imports also for language_fortran. (default_make_symbol_completion_list): Rename to ... (default_make_symbol_completion_list_break_on): ... this name. New parameter break_on, use it. (default_make_symbol_completion_list): New stub. * symtab.h (default_make_symbol_completion_list_break_on): New prototype. gdb/testsuite/ Support DW_TAG_module as separate namespaces. * gdb.fortran/library-module.exp, gdb.fortran/library-module-main.f90, gdb.fortran/library-module-lib.f90: New. * gdb.fortran/module.exp: Replace startup by a prepare_for_testing call. (print i): Remove. (continue to breakpoint: i-is-1, print var_i value 1) (continue to breakpoint: i-is-2, print var_i value 2) (continue to breakpoint: a-b-c-d, print var_a, print var_b, print var_c) (print var_d, print var_i value 14, ptype modmany, complete `modm) (complete `modmany, complete `modmany`, complete `modmany`var) (show language, setting breakpoint at module): New tests. * gdb.fortran/module.f90 (module mod): Remove. (module mod1, module mod2, module modmany, subroutine sub1) (subroutine sub2, program module): New. commit f2521eb388e07909560f5c881f338ad986ef063d Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Wed Jun 2 22:24:15 2010 +0000 gdb/testsuite/ * gdb.cp/anon-union.exp (pass): Rename to ... (print z 2): ... here. commit 7d9b30f222f413a5d30f9b92b57269ed0d3f1ef8 Author: Joel Brobecker <brobecker@gnat.com> Date: Wed Jun 2 22:21:52 2010 +0000 Fix ARI warning in remote.c (no trailing \n in call to error) * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call to error. commit 9ebc5abfba7485500641a793722348f71cf8e390 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Wed Jun 2 22:20:11 2010 +0000 gdb/testsuite/ * gdb.cp/ref-types.exp (pass, pass, pass): Rename to ... (print value of rUC, print value of rI, print value of UI): ... here. commit 4199f8a8172f7652b80f04bb0711a4f08aaffa7c Author: Michael Snyder <msnyder@specifix.com> Date: Wed Jun 2 21:55:27 2010 +0000 2010-06-02 Michael Snyder <msnyder@vmware.com> * gdb.trace/actions.exp: Use gdb_test_no_output. * gdb.trace/circ.exp: Ditto. * gdb.trace/packetlen.exp: Ditto. * gdb.trace/save-trace.exp: Ditto. * gdb.trace/tracecmd.exp: Ditto. * gdb.trace/tsv.exp: Ditto. commit 53edf2ddec50b011dd311b426f41c839d1431265 Author: Michael Snyder <msnyder@specifix.com> Date: Wed Jun 2 21:53:28 2010 +0000 2010-06-02 Michael Snyder <msnyder@vmware.com> * gdb.threads/fork-thread-pending.exp: Use gdb_test_no_output. * gdb.threads/hand-call-in-thraeds.exp: Ditto. * gdb.threads/local-watch-wrong-thread.exp: Ditto. * gdb.threads/manythreads.exp: Ditto. * gdb.threads/print-threads.exp: Ditto. * gdb.threads/pthreads.exp: Ditto. * gdb.threads/schedlock.exp: Ditto. * gdb.threads/staticthreads.exp: Ditto. * gdb.threads/thread-specific.exp: Ditto. * gdb.threads/thread-unwindonsignal.exp: Ditto. * gdb.threads/threadapply.exp: Ditto. * gdb.threads/watchthreads.exp: Ditto. * gdb.threads/watchthreads2.exp: Ditto. commit 908331045b3c7a6bfc47df7695451626a691965a Author: Michael Snyder <msnyder@specifix.com> Date: Wed Jun 2 21:50:55 2010 +0000 2010-06-02 Michael Snyder <msnyder@vmware.com> * gdb.python/py-block.exp: Use gdb_test_no_output. * gdb.python/py-prettyprint.exp: Ditto. * gdb.python/py-template.exp: Ditto. * gdb.python/py-value.exp: Ditto. * gdb.reverse/watch-precsave.exp: Use gdb_test_no_output. * gdb.reverse/watch-reverse.exp: Ditto. * gdb.server/ext-attach.exp: Use gdb_test_no_output. * gdb.server/ext-run.exp: Ditto. commit 504d3e952eafea1cb610d53ffe91a5bd6b5aeddd Author: Michael Snyder <msnyder@specifix.com> Date: Wed Jun 2 21:46:44 2010 +0000 2010-06-02 Michael Snyder <msnyder@vmware.com> * gdb.dwarf2/dw2-basic.exp: Use gdb_test_no_output. * gdb.dwarf2/dw2-compressed.exp: Ditto. * gdb.dwarf2/dw2-intercu.exp: Ditto. * gdb.dwarf2/dw2-intermix.exp: Ditto. * gdb.dwarf2/dw2-producer.exp: Ditto. * gdb.dwarf2/mac-fileno.exp: Ditto. * gdb.gdb/observer.exp: Use gdb_test_no_output. * gdb.gdb/selftest.exp: Ditto. * gdb.multi/base.exp: Use gdb_test_no_output. * gdb.opt/inline-cmds.exp: Use gdb_test_no_output. commit 53f6fc3257c74aef466d35e93e19daaa2b54137b Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Wed Jun 2 21:38:32 2010 +0000 gdb/testsuite/ * gdb.cp/ref-types.exp (print value of UI): Remove excessive newline. commit 009de46eddb2c1dfd52b19f79e6cdf1e9acb5174 Author: Jan Kratochvil <jan.kratochvil@redhat.com> Date: Wed Jun 2 20:03:40 2010 +0000 gdb/ * dwarf2read.c (typename_concat): Add const to the variable sep. commit b13de58733c1de3b20f8df25322b45d0620f1a7e Author: Michael Snyder <msnyder@specifix.com> Date: Wed Jun 2 20:03:15 2010 +0000 2010-06-02 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> * gdb.cp/class2.exp: Use gdb_test_no_output. * gdb.cp/classes.exp: Ditto. * gdb.cp/extern-c.exp: Ditto. * gdb.cp/inherit.exp: Ditto. * gdb.cp/maint.exp: Ditto. * gdb.cp/mb-inline.exp: Ditto. * gdb.cp/mb-templates.exp: Ditto. * gdb.cp/method2.exp: Ditto. * gdb.cp/misc.exp: Ditto. * gdb.cp/ovldbreak.exp: Ditto. * gdb.cp/punctuator.exp: Ditto. * gdb.cp/templates.exp: Ditto. * gdb.cp/virtbase.exp: Ditto. commit 92e4ebdbc9df0ebb5e3afe0b7cf0a97b5cc20cd8 Author: Michael Snyder <msnyder@specifix.com> Date: Wed Jun 2 19:58:21 2010 +0000 2010-06-02 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> * gdb.threads/attach-stopped.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/attachstop-mt.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/gcore-thread.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/hand-call-in-threads.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/linux-dp.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/print-threads.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/pthreads.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/schedlock.exp: Replace uses of send_gdb / gdb_expect. * gdb.threads/sigthread.exp: Replace uses of send_gdb / gdb_expect. commit bc1d94c2305ecb01f08ba5fd2ba6c9e0ae8818f8 Author: Michael Snyder <msnyder@specifix.com> Date: Wed Jun 2 19:41:11 2010 +0000 2010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com> * gdb.trace/actions.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/backtrace.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/collection.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/deltrace.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/infotrace.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/limits.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/report.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/save-trace.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/tfind.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/tracecmd.exp: Replace uses of send_gdb / gdb_expect. * gdb.trace/tsv.exp: Replace uses of send_gdb / gdb_expect. commit 906637e07dc427c92cdf3ac00d739368d1753d77 Author: Tom Tromey <tromey@redhat.com> Date: Wed Jun 2 19:37:54 2010 +0000 gdb * dwarf2loc.h (dwarf2_per_cu_data): Declare. * dwarf2read.c (dwarf_stack_op_name): No longer static. Return type is const. Add 'def' argument. Add missing operators, remove unhandled ones. (decode_locdesc): Update. (dwarf2_always_disassemble): New global. (show_dwarf2_always_disassemble): New function. (_initialize_dwarf2_read): Add always-disassemble. (dwarf2_per_cu_offset_size): New function. * dwarf2loc.c (dwarf2_always_disassemble): Declare. (piece_end_p): New function. (locexpr_describe_location_piece): Replace 'size' argument with 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize some constants. Remove errors. (disassemble_dwarf_expression): New function. (locexpr_describe_location_1): Use disassemble_dwarf_expression. Add 'offset_size' argument. (loclist_describe_location): Change output formatting. * dwarf2expr.h (dwarf_stack_op_name): Declare. gdb/doc * gdb.texinfo (Maintenance Commands): Document maint set dwarf2 always-disassemble. ----------------------------------------------------------------------- Summary of changes: bfd/version.h | 2 +- config/ChangeLog | 8 + config/override.m4 | 41 ++ gdb/ChangeLog | 156 +++++++ gdb/NEWS | 2 + gdb/ada-lang.c | 3 +- gdb/ada-valprint.c | 6 +- gdb/breakpoint.c | 2 +- gdb/configure | 39 ++- gdb/configure.ac | 25 +- gdb/doc/ChangeLog | 13 + gdb/doc/gdb.texinfo | 55 +++- gdb/doc/gdbint.texinfo | 4 + gdb/dwarf2expr.h | 2 + gdb/dwarf2loc.c | 424 +++++++++++++++++--- gdb/dwarf2loc.h | 3 + gdb/dwarf2read.c | 363 ++++++++++++----- gdb/f-exp.y | 4 +- gdb/f-lang.c | 39 ++- gdb/f-typeprint.c | 4 + gdb/gdbtypes.h | 2 + gdb/mi/mi-main.c | 19 +- gdb/p-valprint.c | 2 +- gdb/parse.c | 5 +- gdb/parser-defs.h | 7 +- gdb/python/py-prettyprint.c | 5 + gdb/python/python-internal.h | 1 + gdb/python/python.c | 2 + gdb/remote.c | 2 +- gdb/symfile.c | 14 + gdb/symtab.c | 23 +- gdb/symtab.h | 2 + gdb/testsuite/ChangeLog | 189 +++++++++ gdb/testsuite/gdb.base/attach.exp | 10 +- gdb/testsuite/gdb.base/commands.exp | 4 +- gdb/testsuite/gdb.base/display.exp | 2 +- gdb/testsuite/gdb.base/find.exp | 20 +- gdb/testsuite/gdb.base/ifelse.exp | 2 +- gdb/testsuite/gdb.base/multi-forks.exp | 2 +- gdb/testsuite/gdb.base/pending.exp | 10 +- gdb/testsuite/gdb.base/recurse.exp | 2 +- gdb/testsuite/gdb.base/setshow.exp | 2 +- gdb/testsuite/gdb.base/value-double-free.exp | 2 +- gdb/testsuite/gdb.base/watch-vfork.exp | 2 +- gdb/testsuite/gdb.base/watch_thread_num.exp | 2 +- gdb/testsuite/gdb.base/watchpoint-solib.exp | 2 +- gdb/testsuite/gdb.base/watchpoint.exp | 2 +- gdb/testsuite/gdb.base/watchpoints.exp | 4 +- gdb/testsuite/gdb.cp/anon-union.exp | 2 +- gdb/testsuite/gdb.cp/class2.exp | 4 +- gdb/testsuite/gdb.cp/classes.exp | 10 +- gdb/testsuite/gdb.cp/extern-c.exp | 2 +- gdb/testsuite/gdb.cp/inherit.exp | 4 +- gdb/testsuite/gdb.cp/maint.exp | 2 +- gdb/testsuite/gdb.cp/mb-inline.exp | 2 +- gdb/testsuite/gdb.cp/mb-templates.exp | 8 +- gdb/testsuite/gdb.cp/method2.exp | 2 +- gdb/testsuite/gdb.cp/misc.exp | 2 +- gdb/testsuite/gdb.cp/overload.exp | 2 +- gdb/testsuite/gdb.cp/ovldbreak.exp | 6 +- gdb/testsuite/gdb.cp/pr-1210.exp | 4 +- gdb/testsuite/gdb.cp/punctuator.exp | 14 +- gdb/testsuite/gdb.cp/ref-types.exp | 8 +- gdb/testsuite/gdb.cp/templates.exp | 2 +- gdb/testsuite/gdb.cp/virtbase.exp | 2 +- gdb/testsuite/gdb.cp/virtfunc.exp | 4 +- gdb/testsuite/gdb.dwarf2/dw2-basic.exp | 2 +- gdb/testsuite/gdb.dwarf2/dw2-compressed.exp | 2 +- gdb/testsuite/gdb.dwarf2/dw2-intercu.exp | 2 +- gdb/testsuite/gdb.dwarf2/dw2-intermix.exp | 2 +- gdb/testsuite/gdb.dwarf2/dw2-producer.exp | 2 +- gdb/testsuite/gdb.dwarf2/mac-fileno.exp | 2 +- .../{module.f90 => library-module-lib.f90} | 21 +- .../{module.f90 => library-module-main.f90} | 15 +- gdb/testsuite/gdb.fortran/library-module.exp | 58 +++ gdb/testsuite/gdb.fortran/module.exp | 55 +++- gdb/testsuite/gdb.fortran/module.f90 | 39 ++- gdb/testsuite/gdb.gdb/complaints.exp | 8 +- gdb/testsuite/gdb.gdb/observer.exp | 32 +- gdb/testsuite/gdb.gdb/selftest.exp | 2 +- gdb/testsuite/gdb.multi/base.exp | 2 +- gdb/testsuite/gdb.opt/inline-cmds.exp | 2 +- gdb/testsuite/gdb.python/py-block.exp | 4 +- gdb/testsuite/gdb.python/py-prettyprint.exp | 46 ++- gdb/testsuite/gdb.python/py-prettyprint.py | 5 + gdb/testsuite/gdb.python/py-template.exp | 2 +- gdb/testsuite/gdb.python/py-value.exp | 7 +- gdb/testsuite/gdb.reverse/watch-precsave.exp | 4 +- gdb/testsuite/gdb.reverse/watch-reverse.exp | 4 +- gdb/testsuite/gdb.server/ext-attach.exp | 2 +- gdb/testsuite/gdb.server/ext-run.exp | 2 +- gdb/testsuite/gdb.threads/attach-into-signal.exp | 4 +- gdb/testsuite/gdb.threads/attach-stopped.exp | 10 +- gdb/testsuite/gdb.threads/attachstop-mt.exp | 10 +- gdb/testsuite/gdb.threads/fork-thread-pending.exp | 4 +- gdb/testsuite/gdb.threads/gcore-thread.exp | 54 +-- gdb/testsuite/gdb.threads/hand-call-in-threads.exp | 40 +- gdb/testsuite/gdb.threads/linux-dp.exp | 48 +-- .../gdb.threads/local-watch-wrong-thread.exp | 8 +- gdb/testsuite/gdb.threads/manythreads.exp | 2 +- gdb/testsuite/gdb.threads/print-threads.exp | 21 +- gdb/testsuite/gdb.threads/pthreads.exp | 163 +++----- gdb/testsuite/gdb.threads/schedlock.exp | 127 +++---- gdb/testsuite/gdb.threads/sigthread.exp | 6 +- gdb/testsuite/gdb.threads/staticthreads.exp | 2 +- gdb/testsuite/gdb.threads/thread-specific.exp | 4 +- .../gdb.threads/thread-unwindonsignal.exp | 3 +- gdb/testsuite/gdb.threads/threadapply.exp | 2 +- gdb/testsuite/gdb.threads/watchthreads.exp | 6 +- gdb/testsuite/gdb.threads/watchthreads2.exp | 6 +- gdb/testsuite/gdb.trace/actions.exp | 12 +- gdb/testsuite/gdb.trace/backtrace.exp | 55 +-- gdb/testsuite/gdb.trace/circ.exp | 6 +- gdb/testsuite/gdb.trace/collection.exp | 9 +- gdb/testsuite/gdb.trace/deltrace.exp | 73 ++--- gdb/testsuite/gdb.trace/infotrace.exp | 16 +- gdb/testsuite/gdb.trace/packetlen.exp | 4 +- gdb/testsuite/gdb.trace/report.exp | 46 +-- gdb/testsuite/gdb.trace/save-trace.exp | 13 +- gdb/testsuite/gdb.trace/tfind.exp | 51 +-- gdb/testsuite/gdb.trace/tracecmd.exp | 24 +- gdb/testsuite/gdb.trace/tsv.exp | 23 +- gdb/testsuite/lib/gdb.exp | 7 +- gdb/valprint.c | 49 +-- gdb/valprint.h | 4 +- gdb/version.in | 2 +- libiberty/ChangeLog | 9 +- libiberty/configure | 22 +- libiberty/configure.ac | 4 +- 129 files changed, 1956 insertions(+), 931 deletions(-) copy gdb/testsuite/gdb.fortran/{module.f90 => library-module-lib.f90} (63%) copy gdb/testsuite/gdb.fortran/{module.f90 => library-module-main.f90} (70%) create mode 100644 gdb/testsuite/gdb.fortran/library-module.exp First 500 lines of diff: diff --git a/bfd/version.h b/bfd/version.h index d834c91..3c34559 100644 --- a/bfd/version.h +++ b/bfd/version.h @@ -1,4 +1,4 @@ -#define BFD_VERSION_DATE 20100602 +#define BFD_VERSION_DATE 20100607 #define BFD_VERSION @bfd_version@ #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ #define REPORT_BUGS_TO @report_bugs_to@ diff --git a/config/ChangeLog b/config/ChangeLog index 140e2ce..e0561d2 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,3 +1,11 @@ +2010-06-03 Joern Rennecke <joern.rennecke@embecosm.com> + Ralf Wildenhues <Ralf.Wildenhues@gmx.de> + + Sync from GCC: + PR bootstrap/42798 + * override.m4 (_AC_CHECK_DECL_BODY, _AC_CHECK_DECLS): Import + definitions from git Autoconf. + 2010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> Sync from GCC: diff --git a/config/override.m4 b/config/override.m4 index cfa225a..47d8dac 100644 --- a/config/override.m4 +++ b/config/override.m4 @@ -272,3 +272,44 @@ m4_define([m4_wrap], [m4_ifdef([_$0_text], [m4_define([_$0_text], [$1])m4_builtin([m4wrap], [m4_default(m4_defn([_$0_text])m4_undefine([_$0_text]))])])]) ]) + +m4_version_prereq([2.66],, [ +dnl We need AC_CHECK_DECL which works for overloaded C++ functions. + +# _AC_CHECK_DECL_BODY +# ------------------- +# Shell function body for AC_CHECK_DECL. +m4_define([_AC_CHECK_DECL_BODY], +[ AS_LINENO_PUSH([$[]1]) + [as_decl_name=`echo $][2|sed 's/ *(.*//'`] + [as_decl_use=`echo $][2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`] + AC_CACHE_CHECK([whether $as_decl_name is declared], [$[]3], + [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([$[]4], +[@%:@ifndef $[]as_decl_name +@%:@ifdef __cplusplus + (void) $[]as_decl_use; +@%:@else + (void) $[]as_decl_name; +@%:@endif +@%:@endif +])], + [AS_VAR_SET([$[]3], [yes])], + [AS_VAR_SET([$[]3], [no])])]) + AS_LINENO_POP +])# _AC_CHECK_DECL_BODY + +# _AC_CHECK_DECLS(SYMBOL, ACTION-IF_FOUND, ACTION-IF-NOT-FOUND, +# INCLUDES) +# ------------------------------------------------------------- +# Helper to AC_CHECK_DECLS, which generates the check for a single +# SYMBOL with INCLUDES, performs the AC_DEFINE, then expands +# ACTION-IF-FOUND or ACTION-IF-NOT-FOUND. +m4_define([_AC_CHECK_DECLS], +[AC_CHECK_DECL([$1], [ac_have_decl=1], [ac_have_decl=0], [$4])]dnl +[AC_DEFINE_UNQUOTED(AS_TR_CPP(m4_bpatsubst(HAVE_DECL_[$1],[ *(.*])), + [$ac_have_decl], + [Define to 1 if you have the declaration of `$1', + and to 0 if you don't.])]dnl +[m4_ifvaln([$2$3], [AS_IF([test $ac_have_decl = 1], [$2], [$3])])]) + +]) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7cd0030..25272cc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,159 @@ +2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com> + + Fix duplicate types for single DIE. + * dwarf2read.c (read_structure_type): Move set_descriptive_type after + set_die_type. + (read_array_type): Remove type initialization. Recheck get_die_type + after initial die_type. Move set_die_type before set_descriptive_type. + (read_set_type): New variable domain_type. Recheck get_die_type after + initial die_type. Move attr initialization later. + (read_tag_pointer_type, read_tag_reference_type): New variable + target_type. Recheck get_die_type after initial die_type. + (read_tag_ptr_to_member_type): Recheck get_die_type after initial + die_type and die_containing_type. + (read_tag_const_type, read_tag_volatile_type, read_subroutine_type): + Recheck get_die_type after initial die_type. + (read_subrange_type): Recheck get_die_type after initial die_type. + Move set_die_type before set_descriptive_type. + (set_die_type): Extend the function comment. Call complaint if DIE has + some type already set. + +2010-06-05 Vladimir Prus <vladimir@codesourcery.com> + + * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust + for current naming of thread groups (iN, not N). + +2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com> + + * ada-lang.c (ada_operator_length): Constify `struct expression'. + * parse.c (operator_length): Likewise. + (operator_length_standard): Likewise. + * parser-defs.h (operator_length): Likewise. + (operator_length_standard): Likewise. + (struct exp_descriptor <operator_length>): Likewise. + +2010-06-04 Doug Evans <dje@google.com> + + Add support for enabling/disabling individual pretty-printers. + * python/py-prettyprint.c (search_pp_list): Skip disabled printers. + * python/python-internal.h (gdbpy_enabled_cst): Declare. + * python/python.c (gdbpy_enabled_cst): Define. + (_initialize_python): Initialize gdbpy_enabled_cst. + * NEWS: Add entry. + +2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com> + + * breakpoint.c (update_global_location_list): Fix comment typo. + +2010-06-04 Hui Zhu <teawater@gmail.com> + + * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l. + +2010-06-03 Doug Evans <dje@google.com> + + * configure.ac: Don't fail if python is unusable when + configured with --with-python=auto. + * configure: Regenerate. + +2010-06-03 Sami Wagiaalla <swagiaal@redhat.com> + + * dwarf2read.c (new_symbol): Remove redundant naming of symbol. + +2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr> + + * valprint.h (get_array_bounds): Change low and high parameter types + to LONGEST *. + * valprint.c (get_array_bounds): Use get_discrete_bounds call to + compute bounds. + (val_print_array_elements): Adapt to change above. + * ada-valprint.c (print_optional_low_bound): Adapt to change above. + * p-valprint.c (pascal_val_print): Likewise. + +2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> + + * symfile.c (init_filename_language_table): New extensions .for, .FOR, + .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and + .F08. + +2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> + + Support DW_TAG_module as separate namespaces. + * dwarf2read.c (typename_concat): New parameter physname. + (read_module_type): New function and declaration. + (scan_partial_symbols): Scan also DW_TAG_module children. + (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass + to typename_concat backward compatible physname value 0. + (partial_die_full_name, read_namespace_type): Pass to typename_concat + backward compatible physname value 0. + (add_partial_module, read_module): Remove FIXME comment. + (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO. + (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for + DIEs under DW_TAG_module. + (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and + DW_AT_MIPS_linkage_name first, extend it for language_fortran + && physname and return there instead of just setting NAME. Extend + the main block for language_fortran. Pass physname parameter to the + typename_concat call. + (read_import_statement, read_func_scope, get_scope_pc_bounds) + (load_partial_dies, determine_prefix): Support also DW_TAG_module. + (new_symbol): Fill in cplus_specific.demangled_name if it is still + missing from SYMBOL_SET_NAMES in the language_fortran case. + (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module + variables. + (read_type_die) <DW_TAG_module>: New. + (MAX_SEP_LEN): Increase to 7. + (typename_concat): New parameter physname. New variable lead. Support + also language_fortran. + * f-exp.y (yylex): Consider : also as a symbol name character class. + * f-lang.c: Include cp-support.h. + (f_word_break_characters, f_make_symbol_completion_list): New functions. + (f_language_defn): Use cp_lookup_symbol_nonlocal, + f_word_break_characters and f_make_symbol_completion_list. + * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New. + * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New. + * symtab.c (symbol_init_language_specific): Support language_fortran. + (symbol_find_demangled_name): New comment on language_fortran. + (symbol_natural_name, symbol_demangled_name): Use demangled_name even + for language_fortran. + (lookup_symbol_aux_local): Check imports also for language_fortran. + (default_make_symbol_completion_list): Rename to ... + (default_make_symbol_completion_list_break_on): ... this name. New + parameter break_on, use it. + (default_make_symbol_completion_list): New stub. + * symtab.h (default_make_symbol_completion_list_break_on): New + prototype. + +2010-06-02 Joel Brobecker <brobecker@adacore.com> + + * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call + to error. + +2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com> + + * dwarf2read.c (typename_concat): Add const to the variable sep. + +2010-06-02 Tom Tromey <tromey@redhat.com> + + * dwarf2loc.h (dwarf2_per_cu_data): Declare. + * dwarf2read.c (dwarf_stack_op_name): No longer static. Return + type is const. Add 'def' argument. Add missing operators, remove + unhandled ones. + (decode_locdesc): Update. + (dwarf2_always_disassemble): New global. + (show_dwarf2_always_disassemble): New function. + (_initialize_dwarf2_read): Add always-disassemble. + (dwarf2_per_cu_offset_size): New function. + * dwarf2loc.c (dwarf2_always_disassemble): Declare. + (piece_end_p): New function. + (locexpr_describe_location_piece): Replace 'size' argument with + 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize + some constants. Remove errors. + (disassemble_dwarf_expression): New function. + (locexpr_describe_location_1): Use disassemble_dwarf_expression. + Add 'offset_size' argument. + (loclist_describe_location): Change output formatting. + * dwarf2expr.h (dwarf_stack_op_name): Declare. + 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com> * cp-support.c (make_symbol_overload_list_adl_namespace): Handle diff --git a/gdb/NEWS b/gdb/NEWS index ad9a0f1..61208b1 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -104,6 +104,8 @@ is now deprecated. ** Pretty-printers are now also looked up in the current program space. +** Pretty-printers can now be individually enabled and disabled. + ** GDB now looks for names of Python scripts to auto-load in a special section named `.debug_gdb_scripts', in addition to looking for a OBJFILE-gdb.py script when OBJFILE is read by the debugger. diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index be0c53b..1d4c38b 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -11084,7 +11084,8 @@ ada_decode_assert_location (char *args, char **addr_string, OP_DEFN (OP_DISCRETE_RANGE, 1, 2, 0) static void -ada_operator_length (struct expression *exp, int pc, int *oplenp, int *argsp) +ada_operator_length (const struct expression *exp, int pc, int *oplenp, + int *argsp) { switch (exp->elts[pc - 1].opcode) { diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c index c56d221..7e93e3a 100644 --- a/gdb/ada-valprint.c +++ b/gdb/ada-valprint.c @@ -85,8 +85,8 @@ print_optional_low_bound (struct ui_file *stream, struct type *type, const struct value_print_options *options) { struct type *index_type; - long low_bound; - long high_bound; + LONGEST low_bound; + LONGEST high_bound; if (options->print_array_indexes) return 0; @@ -131,7 +131,7 @@ print_optional_low_bound (struct ui_file *stream, struct type *type, break; } - ada_print_scalar (index_type, (LONGEST) low_bound, stream); + ada_print_scalar (index_type, low_bound, stream); fprintf_filtered (stream, " => "); return 1; } diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 0ee2258..1fc155a 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -9096,7 +9096,7 @@ update_global_location_list (int should_insert) soon, we'll fail to do the PC adjustment, and report a random SIGTRAP to the user. When the user resumes the inferior, it will most likely immediately crash - with SIGILL/SIGBUS/SEGSEGV, or worse, get silently + with SIGILL/SIGBUS/SIGSEGV, or worse, get silently corrupted, because of being resumed e.g., in the middle of a multi-byte instruction, or skipped a one-byte instruction. This was actually seen happen diff --git a/gdb/configure b/gdb/configure index 5380293..bae0b5b 100755 --- a/gdb/configure +++ b/gdb/configure @@ -2122,8 +2122,10 @@ $as_echo "$ac_res" >&6; } ac_fn_c_check_decl () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 -$as_echo_n "checking whether $2 is declared... " >&6; } + as_decl_name=`echo $2|sed 's/ *(.*//'` + as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 +$as_echo_n "checking whether $as_decl_name is declared... " >&6; } if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : $as_echo_n "(cached) " >&6 else @@ -2133,8 +2135,12 @@ $4 int main () { -#ifndef $2 - (void) $2; +#ifndef $as_decl_name +#ifdef __cplusplus + (void) $as_decl_use; +#else + (void) $as_decl_name; +#endif #endif ; @@ -10463,12 +10469,12 @@ else # Assume the python binary is ${with_python}/bin/python. python_prog="${with_python}/bin/python" python_prefix= - if test ! -x ${python_prog}; then + if test ! -x "${python_prog}"; then # Fall back to gdb 7.0/7.1 behaviour. python_prog=missing python_prefix=${with_python} fi - elif test -x ${with_python}; then + elif test -x "${with_python}"; then # While we can't run python compiled for $host (unless host == build), # the user could write a script that provides the needed information, # so we support that. @@ -10595,19 +10601,30 @@ fi esac if test "${python_prog}" != missing; then + # We have a python program to use, but it may be too old. + # Don't flag an error for --with-python=auto (the default). + have_python_config=yes python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes` if test $? != 0; then - as_fn_error "failure running python-config --includes" "$LINENO" 5 + have_python_config=failed + if test "${with_python}" != auto; then + as_fn_error "failure running python-config --includes" "$LINENO" 5 + fi fi python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags` if test $? != 0; then - as_fn_error "failure running python-config --ldflags" "$LINENO" 5 + have_python_config=failed + if test "${with_python}" != auto; then + as_fn_error "failure running python-config --ldflags" "$LINENO" 5 + fi fi python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix` if test $? != 0; then - as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5 + have_python_config=failed + if test "${with_python}" != auto; then + as_fn_error "failure running python-config --exec-prefix" "$LINENO" 5 + fi fi - have_python_config=yes else # Fall back to gdb 7.0/7.1 behaviour. if test -z ${python_prefix}; then @@ -10679,7 +10696,7 @@ $as_echo "${found_usable_python}" >&6; } as_fn_error "unable to determine python version from ${python_libs}" "$LINENO" 5 ;; esac - else + elif test "${have_python_config}" != failed; then if test "${have_libpython}" = no; then version=python2.6 diff --git a/gdb/configure.ac b/gdb/configure.ac index 16789b9..d65fd49 100644 --- a/gdb/configure.ac +++ b/gdb/configure.ac @@ -664,12 +664,12 @@ else # Assume the python binary is ${with_python}/bin/python. python_prog="${with_python}/bin/python" python_prefix= - if test ! -x ${python_prog}; then + if test ! -x "${python_prog}"; then # Fall back to gdb 7.0/7.1 behaviour. python_prog=missing python_prefix=${with_python} fi - elif test -x ${with_python}; then + elif test -x "${with_python}"; then # While we can't run python compiled for $host (unless host == build), # the user could write a script that provides the needed information, # so we support that. @@ -716,19 +716,30 @@ else esac if test "${python_prog}" != missing; then + # We have a python program to use, but it may be too old. + # Don't flag an error for --with-python=auto (the default). + have_python_config=yes python_includes=`${python_prog} ${srcdir}/python/python-config.py --includes` if test $? != 0; then - AC_ERROR(failure running python-config --includes) + have_python_config=failed + if test "${with_python}" != auto; then + AC_ERROR(failure running python-config --includes) + fi fi python_libs=`${python_prog} ${srcdir}/python/python-config.py --ldflags` if test $? != 0; then - AC_ERROR(failure running python-config --ldflags) + have_python_config=failed + if test "${with_python}" != auto; then + AC_ERROR(failure running python-config --ldflags) + fi fi python_prefix=`${python_prog} ${srcdir}/python/python-config.py --exec-prefix` if test $? != 0; then - AC_ERROR(failure running python-config --exec-prefix) + have_python_config=failed + if test "${with_python}" != auto; then + AC_ERROR(failure running python-config --exec-prefix) + fi fi - have_python_config=yes else # Fall back to gdb 7.0/7.1 behaviour. if test -z ${python_prefix}; then @@ -767,7 +778,7 @@ else AC_MSG_ERROR([unable to determine python version from ${python_libs}]) ;; esac - else + elif test "${have_python_config}" != failed; then if test "${have_libpython}" = no; then AC_TRY_LIBPYTHON(python2.6, have_libpython, ${python_includes}, "${python_libs} -lpython2.6") diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 4ffe455..071a409 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,16 @@ +2010-06-04 Doug Evans <dje@google.com> + + * gdb.texinfo (Python API): New node `Disabling Pretty-Printers'. + +2010-06-03 Doug Evans <dje@google.com> + + * gdbint.texinfo (Coding): Add subsection on command names. + +2010-06-02 Tom Tromey <tromey@redhat.com> + + * gdb.texinfo (Maintenance Commands): Document maint set dwarf2 + always-disassemble. + 2010-06-01 Pedro Alves <pedro@codesourcery.com> * gdb.texinfo (Set Tracepoints): Mention tracepoints support in diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 178ef68..fa7a0ec 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -20019,6 +20019,7 @@ situation, a Python @code{KeyboardInterrupt} exception is thrown. * Types In Python:: Python representation of types. * Pretty Printing API:: Pretty-printing values. * Selecting Pretty-Printers:: How GDB chooses a pretty-printer. +* Disabling Pretty-Printers:: Disabling broken printers. * Commands In Python:: Implementing new commands in Python. * Parameters In Python:: Adding new @value{GDBN} parameters. * Functions In Python:: Writing new convenience functions. @@ -20710,7 +20711,8 @@ If the result is not one of these types, an exception is raised. @subsubsection Selecting Pretty-Printers The Python list @code{gdb.pretty_printers} contains an array of -functions that have been registered via addition as a pretty-printer. +functions or callable objects that have been registered via addition +as a pretty-printer. Each @code{gdb.Progspace} contains a @code{pretty_printers} attribute. Each @code{gdb.Objfile} also contains a @code{pretty_printers} attribute. hooks/post-receive -- Repository for Project Archer.
next reply other threads:[~2010-06-07 8:14 UTC|newest] Thread overview: 120+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-06-07 8:14 jkratoch [this message] -- strict thread matches above, loose matches on Subject: below -- 2011-02-01 19:25 jkratoch 2011-01-29 16:44 jkratoch 2011-01-25 12:53 pmuldoon 2011-01-25 9:10 jkratoch 2011-01-17 13:31 pmuldoon 2011-01-15 11:35 jkratoch 2011-01-14 8:04 jkratoch 2011-01-10 12:00 pmuldoon 2011-01-10 9:10 jkratoch 2011-01-07 5:57 jkratoch 2011-01-06 12:22 pmuldoon 2011-01-04 4:59 jkratoch 2010-12-31 22:30 jkratoch 2010-12-30 7:22 jkratoch 2010-12-22 20:11 swagiaal 2010-12-14 17:13 jkratoch 2010-12-14 8:27 pmuldoon 2010-12-10 17:16 jkratoch 2010-12-08 15:55 pmuldoon 2010-12-06 6:40 jkratoch 2010-12-04 1:03 jkratoch 2010-12-02 15:47 pmuldoon 2010-11-30 0:15 jkratoch 2010-11-28 18:02 jkratoch 2010-11-28 5:41 jkratoch 2010-11-16 5:04 jkratoch 2010-11-12 11:47 pmuldoon 2010-11-11 11:39 pmuldoon 2010-11-10 9:09 pmuldoon 2010-11-08 9:34 pmuldoon 2010-11-07 18:15 jkratoch 2010-10-22 14:28 pmuldoon 2010-10-20 12:48 pmuldoon 2010-10-19 16:01 pmuldoon 2010-10-17 20:27 jkratoch 2010-10-15 17:07 jkratoch 2010-10-14 20:55 jkratoch 2010-10-13 15:06 jkratoch 2010-10-12 16:45 jkratoch 2010-10-11 9:21 jkratoch 2010-10-11 8:47 pmuldoon 2010-10-06 9:00 pmuldoon 2010-09-30 8:56 pmuldoon 2010-09-27 9:48 jkratoch 2010-09-20 12:34 pmuldoon 2010-09-16 20:49 ratmice 2010-09-04 19:59 jkratoch 2010-09-03 7:26 jkratoch 2010-09-02 15:04 jkratoch 2010-09-01 15:29 swagiaal 2010-08-23 13:54 jkratoch 2010-08-20 17:49 jkratoch 2010-08-12 15:19 swagiaal 2010-08-06 15:32 jkratoch 2010-07-29 19:17 swagiaal 2010-07-22 16:57 jkratoch 2010-07-22 16:26 jkratoch 2010-07-20 18:51 jkratoch 2010-07-09 8:09 jkratoch 2010-06-24 8:55 jkratoch 2010-06-23 20:56 jkratoch 2010-06-17 12:53 jkratoch 2010-06-02 19:03 jkratoch 2010-05-28 21:27 jkratoch 2010-05-26 18:36 swagiaal 2010-05-17 18:02 jkratoch 2010-05-17 1:04 jkratoch 2010-05-10 19:30 swagiaal 2010-05-05 14:24 swagiaal 2010-05-03 13:49 jkratoch 2010-05-03 8:48 jkratoch 2010-05-02 23:10 jkratoch 2010-05-02 15:54 jkratoch 2010-04-30 7:11 jkratoch 2010-04-28 11:44 jkratoch 2010-04-25 20:22 jkratoch 2010-04-09 20:37 jkratoch 2010-04-07 1:41 jkratoch 2010-04-05 10:11 jkratoch 2010-04-04 11:58 jkratoch 2010-03-22 23:58 jkratoch 2010-03-20 17:23 jkratoch 2010-03-18 10:01 jkratoch 2010-03-17 18:04 jkratoch 2010-03-12 18:35 jkratoch 2010-03-04 22:28 jkratoch 2010-03-01 22:16 jkratoch 2010-02-26 22:16 jkratoch 2010-02-26 17:50 jkratoch 2010-02-17 16:01 swagiaal 2010-02-13 22:51 jkratoch 2010-02-11 12:51 jkratoch 2010-02-09 19:01 jkratoch 2010-02-08 21:46 jkratoch 2010-02-03 4:38 jkratoch 2010-01-31 17:25 jkratoch 2010-01-28 19:17 swagiaal 2010-01-28 10:56 jkratoch 2010-01-27 19:21 swagiaal 2010-01-27 8:08 jkratoch 2010-01-26 18:58 swagiaal 2010-01-20 21:48 jkratoch 2010-01-15 2:09 jkratoch 2010-01-15 0:52 jkratoch 2010-01-14 22:23 jkratoch 2010-01-13 20:53 jkratoch 2010-01-10 20:47 jkratoch 2010-01-09 10:03 jkratoch 2010-01-09 8:41 jkratoch 2010-01-08 19:16 jkratoch 2009-12-06 17:43 jkratoch 2009-12-03 16:32 jkratoch 2009-11-30 13:59 jkratoch 2009-11-24 21:21 jkratoch 2009-11-21 9:24 jkratoch 2009-11-20 21:06 jkratoch 2009-11-20 15:57 jkratoch 2009-11-17 19:59 jkratoch 2009-11-16 2:22 jkratoch
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100607081400.20737.qmail@sourceware.org \ --to=jkratoch@sourceware.org \ --cc=archer-commits@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).