aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-06-06*** empty log message ***gdbadmin1-1/+1
2010-06-05gdb/Jan Kratochvil2-12/+117
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 * mi/mi-main.c (mi_cmd_list_thread_groups): AdjustVladimir Prus2-6/+18
for current naming of thread groups (iN, not N).
2010-06-05*** empty log message ***gdbadmin1-1/+1
2010-06-05daily updateAlan Modra1-1/+1
2010-06-042010-06-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-6/+7
* gdb.base/attach.exp: Replace gdb_test_multiple with gdb_test.
2010-06-042010-06-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-5/+7
* gdb.base/pending.exp: Replace gdb_test_multiple with gdb_test.
2010-06-042010-06-04 Michael Snyder <msnyder@vmware.com>Michael Snyder2-2/+6
* gdb.cp/pr-1210.exp: Add message string to gdb_test_multiple.
2010-06-042010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior4-6/+18
* 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-04remove trailing whitespace in previous checkinDoug Evans1-1/+1
2010-06-04 Add support for enabling/disabling individual pretty-printers.Doug Evans10-5/+102
* 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.
2010-06-04gdb/Jan Kratochvil2-1/+5
* breakpoint.c (update_global_location_list): Fix comment typo.
2010-06-04 * gdb.python/py-value.exp (test_value_hash): Don't test equalityTom Tromey2-1/+5
of hash and id.
2010-06-04gdb/testsuite/Jan Kratochvil3-5/+13
* 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.
2010-06-042010-06-04 Hui Zhu <teawater@gmail.com>Hui Zhu2-1/+5
* dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
2010-06-04daily updateAlan Modra1-1/+1
2010-06-04*** empty log message ***gdbadmin1-1/+1
2010-06-032010-06-03 Michael Snyder <msnyder@vmware.com>Michael Snyder25-46/+80
* 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.
2010-06-03do not emit PASS for gdb_test_no_output test if message is empty string.Joel Brobecker2-2/+10
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.
2010-06-03 * gdbint.texinfo (Coding): Add subsection on command names.Doug Evans2-0/+8
2010-06-03 * configure.ac: Don't fail if python is unusable whenDoug Evans3-18/+52
configured with --with-python=auto. * configure: Regenerate.
2010-06-03 PR gold/11658Sriraman Tallam2-19/+32
* output.cc (Output_section::Input_section_sort_entry::compare_section_ordering): Change to return non-zero correctly. (Output_section::Input_section_sort_section_order_index_compare ::operator()): Change to fix ambiguity in comparisons.
2010-06-032010-06-02 Quentin Neill <quentin.neill@amd.com>Sebastian Pop2-1/+5
* config/tc-i386.c (OPTION_MAVXSCALAR): Fix define.
2010-06-03merge from gccDJ Delorie3-11/+24
2010-06-03Remove redundant naming of symbol from new_symbol.Sami Wagiaalla2-26/+4
2010-06-03 Sami Wagiaalla <swagiaal@redhat.com> * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
2010-06-032010-06-02 Tristan Gingold <gingold@adacore.com>Tristan Gingold6-158/+15
* as.h: Remove conditionnal definition of HAVE_STDARG_H, USE_STDARG, va_alist, va_dcl, va_list, va_start, va_end. Remove conditionnal inclusion of stdarg.h and varargs.h. Assume ISO C. * config.in: Regenerate. * configure: Regenerate. * configure.in: Remove stdarg.h and varargs.h from AC_CHECK_HEADERS list. * messages.c (as_tsktsk): Remove non ISO C version. (as_warn, as_warn_where, as_bad, as_bad_where, as_fatal): Ditto.
2010-06-03 * valprint.h (get_array_bounds): Change low and high parameter typesPierre Muller5-39/+32
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-03Import AC_CHECK_DECL for C++ fixes from git Autoconf.Ralf Wildenhues2-0/+49
config/: Sync from GCC: PR bootstrap/42798 * override.m4 (_AC_CHECK_DECL_BODY, _AC_CHECK_DECLS): Import definitions from git Autoconf.
2010-06-03daily updateAlan Modra1-1/+1
2010-06-03*** empty log message ***gdbadmin1-1/+1
2010-06-02gdb/Jan Kratochvil4-0/+30
* 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.
2010-06-02gdb/Jan Kratochvil14-64/+426
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.
2010-06-02gdb/testsuite/Jan Kratochvil2-1/+3
* gdb.cp/anon-union.exp (pass): Rename to ... (print z 2): ... here.
2010-06-02Fix ARI warning in remote.c (no trailing \n in call to error)Joel Brobecker2-1/+6
* remote.c (remote_get_noisy_reply): Remove trailing "\n" in call to error.
2010-06-02gdb/testsuite/Jan Kratochvil2-3/+8
* gdb.cp/ref-types.exp (pass, pass, pass): Rename to ... (print value of rUC, print value of rI, print value of UI): ... here.
2010-06-022010-06-02 Michael Snyder <msnyder@vmware.com>Michael Snyder7-17/+21
* 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.
2010-06-022010-06-02 Michael Snyder <msnyder@vmware.com>Michael Snyder14-39/+52
* 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.
2010-06-022010-06-02 Michael Snyder <msnyder@vmware.com>Michael Snyder9-11/+22
* 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.
2010-06-022010-06-02 Michael Snyder <msnyder@vmware.com>Michael Snyder11-25/+41
* 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.
2010-06-02gdb/testsuite/Jan Kratochvil2-1/+5
* gdb.cp/ref-types.exp (print value of UI): Remove excessive newline.
2010-06-02gdb/Jan Kratochvil2-1/+5
* dwarf2read.c (typename_concat): Add const to the variable sep.
2010-06-022010-06-02 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder14-27/+41
* 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.
2010-06-022010-06-02 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder10-276/+184
* 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.
2010-06-022010-05-26 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>Michael Snyder10-186/+99
* 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.
2010-06-02gdbTom Tromey7-74/+482
* 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.
2010-06-02gdb/testsuite/Jan Kratochvil3-0/+91
* gdb.cp/re-set-overloaded.exp, gdb.cp/re-set-overloaded.cc: New.
2010-06-02Fix ADL anonymous name crash.Sami Wagiaalla5-0/+25
2010-06-02 Sami Wagiaalla <swagiaal@redhat.com> * cp-support.c (make_symbol_overload_list_adl_namespace): Handle anonymous type case. 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/koenig.exp: Added new test case. * gdb.cp/koenig.cc: Ditto.
2010-06-022010-06-02 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+5
* vms-alpha.c (alpha_vms_bfd_final_link): Fix 64bit constant.
2010-06-02 * dwarf2read.c (read_subrange_type): Handle missing base typePierre Muller2-11/+56
according to Dwarf-2 specifications.
2010-06-022010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior3-27/+13
* expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL. (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH. (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN. * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX, UNOP_CHMIN>: Remove opcodes.