aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-01-20 PR c++/11026:Tom Tromey2-1/+7
* dwarf2read.c (read_partial_die): Allocate partial DIE's name on objfile obstack.
2010-01-20binutils/:Ian Lance Taylor8-23/+74
* objcopy.c (copy_main): Rewrite OPTION_ADD_SECTION code to work with non-ordinary files like /dev/null. binutils/testsuite/: * lib/utils-lib.exp (run_dump_test): Permit option values to use $srcdir to refer to the source directory. * binutils-all/add-section.d: New test. * binutils-all/add-empty-section.d: New test. * binutils-all/empty-file: New test input file. * binutils-all/objcopy.exp: Run new tests.
2010-01-20*** empty log message ***gdbadmin1-1/+1
2010-01-19 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.Cary Coutant2-0/+8
2010-01-19daily updateAlan Modra1-1/+1
2010-01-19 * top.c (stop_sig, float_handler, do_nothing): Remove.Tom Tromey2-60/+4
2010-01-19gdb/Jan Kratochvil7-11/+137
* breakpoint.c (watchpoint_check): Check the call gdbarch_in_function_epilogue_p before calling frame_find_by_id. Extend the comment. * config/djgpp/fnchange.lst: Add translations for watchpoint-cond-gone.exp, watchpoint-cond-gone.c and watchpoint-cond-gone-stripped.c. gdb/testsuite/ * gdb.base/watchpoint-cond-gone.exp, gdb.base/watchpoint-cond-gone.c, gdb.base/watchpoint-cond-gone-stripped.c: New.
2010-01-19gdbTom Tromey5-5/+29
PR c++/8000: * dwarf2read.c (partial_die_parent_scope): Put enumeration type into parent scope, and enumerator into grandparent scope. gdb/testsuite PR c++/8000: * gdb.cp/namespace.exp: Use new enum. Fix line numbers in existing tests. * gdb.cp/namespace.cc (AAA::SomeEnum): New enum. (main): Use AAA::SomeEnum.
2010-01-19elfcpp/:Ian Lance Taylor4-3/+28
* elfcpp.h (PN_XNUM): Define. gold/: * output.cc (Output_section_headers::do_sized_write): Write large segment count to sh_info field. (Output_file_header::do_sized_write): For large segment count, write PN_XNUM to e_phnum field.
2010-01-19 * readelf.c (process_file_header): Handle e_phnum extension.Alan Modra2-1/+14
2010-01-19 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.Alan Modra3-3/+80
(elf_object_p): Read e_phnum extension. (elf_write_shdrs_and_ehdr): Write e_phnum extension. * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check that we can read last program header.
2010-01-19 * common.h (PN_XNUM): Define.Alan Modra2-1/+8
2010-01-19 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.Joel Brobecker2-0/+13
2010-01-19Fix typo in GDB documentation.Joel Brobecker2-1/+5
* gdb.texinfo (Command Files): Fix typo.
2010-01-19Add configure handling of x86_64-*-solaris2.1[0-9]*Joel Brobecker3-2/+9
* configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of i[34567]86-*-solaris2.1[0-9]*. * configure.tgt: Likewise.
2010-01-19 * NEWS: Document the source command enhancement allowing itJoel Brobecker2-0/+23
to load Python scripts. Document the "set/show script-extension" commands.
2010-01-19Add -Wunused-function to compile flags.Joel Brobecker3-2/+10
* configure.ac: Add -Wunused-function to build_warnings. * configure: Regenerate.
2010-01-19"delete" ada-lex.c:input function, not used.Joel Brobecker2-0/+9
* ada-lex.l: #define YY_NO_INPUT.
2010-01-19Delete free_named_symtabs and associated cleanup.Joel Brobecker8-234/+14
* symfile.h (free_named_symtabs): Delete declaration. * symfile.c: Remove some commented out code (clear_symtab_users_once). (cashier_psymtab): Comment function out. Delete declaration. (free_named_symtabs): Delete. * coffread.c (coff_end_symtab): Remove call to free_named_symtabs. * dbxread.c (end_psymtab): Likewise. * dwarf2read.c (process_psymtab_comp_unit): Ditto. * exec.c (exec_close_1): Ditto. * xcoffread.c (xcoff_end_psymtab): Likewise.
2010-01-19Comment out unused function.Joel Brobecker2-0/+13
The function is being commented out instead of deleted because this function is used by some code which is itself commented out. It is unclear which the latter was commented out. * stack.c (print_block_frame_labels): Comment function out.
2010-01-19Delete unused or undefined functions.Joel Brobecker16-276/+31
* breakpoint.c (ep_parse_optional_filename): Delete. * dcache.c (dcache_write_line): Remove declaration. * infrun.c (build_infrun): Remove declaration. * tracepoint.c (tracepoint_save_command): Remove declaration. * linux-nat.c (init_lwp_list): Delete. No longer used. * event-loop.c (check_async_signal_handlers): Delete declaration. * infrun.c (init_execution_control_state): Delete. (proceed): Update comment to avoid mentioning init_execution_control_state. * target.c (kill_or_be_killed, nosupport_runtime): Delete. * ada-lang.c (ada_to_static_fixed_value): Delete. * scm-lang.c (evaluate_subexp_scm): Delete declaration. * cp-namespace.c (cp_copy_usings): Delete. * xml-syscall.c (xml_number_of_syscalls): Delete. * progspace.c (find_program_space_by_num): Delete. * inflow.c (handle_sigio): Delete declaration. * hppa-tdep.c (hppa_alignof): Delete. * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset) (mipsnbsd_core_osabi_sniffer): Delete.
2010-01-192010-01-18 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-37/+20
* config/tc-ia64.c (ia64_vms_note): Generate 24 bytes note headers.
2010-01-19gdb/testsuite/Jan Kratochvil4-12/+36
* gdb.mi/mi-break.exp (set line_callme_head, set line_callme_body): New. (test_ignore_count): Declare line_callme_body global. (run to breakpoint with ignore count): Use line_callme_body. * gdb.mi/mi-cli.exp (set line_main_head, set line_main_body) (set line_main_hello, set line_main_return): Reindent. (set line_callee4_head, set line_callee4_body, set line_callee4_next): New. (continue to callee4): Use line_callee4_body. (check *stopped from CLI command): Use line_callee4_next. * gdb.mi/mi2-cli.exp (set line_main_head, set line_main_body) (set line_main_hello, set line_main_return): Reindent. (set line_callee4_head, set line_callee4_body): New. (continue to callee4): Use line_callee4_body.
2010-01-19 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize ofAlan Modra2-3/+11
R_ARM_THM_CALL entry. (elf32_arm_final_link_relocate): Correct calculation of reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22, or R_ARM_THM_JUMP24 relocation.
2010-01-19*** empty log message ***gdbadmin1-1/+1
2010-01-18daily updateAlan Modra1-1/+1
2010-01-18gdbTom Tromey13-16/+602
PR c++/9680: * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST) (CONST_CAST): New tokens. (exp): Add new productions. (ident_tokens): Add const_cast, dynamic_cast, static_cast, and reinterpret_cast. (is_cast_operator): New function. (yylex): Handle cast operators specially. * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: New cases. * expprint.c (print_subexp_standard): Likewise. (op_name_standard): Likewise. (dump_subexp_body_standard): Likewise. * parse.c (operator_length_standard): Likewise. * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST. * gdbtypes.c (class_types_same_p): New function. (is_ancestor): Use it. (is_public_ancestor): New function. (is_unique_ancestor_worker): Likewise. (is_unique_ancestor): Likewise. * gdbtypes.h (class_types_same_p, is_public_ancestor) (is_unique_ancestor): Declare. * valops.c (value_reinterpret_cast): New function. (dynamic_cast_check_1): Likewise. (dynamic_cast_check_2): Likewise. (value_dynamic_cast): Likewise. * value.h (value_reinterpret_cast, value_dynamic_cast): Declare. gdb/testsuite PR c++/9680: * gdb.cp/casts.cc: Add new classes and variables. * gdb.cp/casts.exp: Test new operators.
2010-01-18Fix build failure when building without Python support.Joel Brobecker2-1/+7
* python/python.c: Always include exceptions.h, even when HAVE_PYTHON is not defined.
2010-01-18Use XVS field type instead of doing a parallel lookup.Joel Brobecker2-5/+21
* ada-lang.c (ada_get_base_type): Follow the XVS field type if it is a reference type instead of doing a type lookup using the XVS field name.
2010-01-18 Trust PAD types instead of using PAD___XVS.Joel Brobecker2-6/+73
* ada-lang.c (trust_pad_over_xvs): New static variable. (ada_is_aligner_type): If !trust_pad_over_xvs and there is a parallel XVS type, follow the XVS type instead of the PAD type. (unwrap_value): Make sure that there is no parallel XVE type before returning the value as is. (set_ada_list, show_ada_list): New static variables. (set_ada_command, show_ada_command): New functions. (_initialize_ada_language): Add new "set/show ada" prefix commands. Add new "set/show ada trust-PAD-over-XVS" setting.
2010-01-18 PR 11168Alan Modra2-24/+37
* coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C block past vars in COFF_IMAGE_WITH_PE block. Report error on more than 32k sections.
2010-01-18 * gdb.python/source2.py: New file.Joel Brobecker4-0/+50
* gdb.python/source1: New file. * gdb.python/python.exp: Test "source" command.
2010-01-18 * gdb.texinfo (File Options): Document -x on .py files.Joel Brobecker2-2/+15
(Command Files): Document handling of Python scripts.
2010-01-18Allow "source" to load python scripts.Joel Brobecker5-12/+139
* exceptions.h (enum errors): Add UNSUPPORTED_ERROR. * python/python.c (source_python_script): New function. * python/python.h (source_python_script): Add declaration. * cli/cli-cmds.c: #include exceptions.h and python/python.h. (script_ext_off, script_ext_soft, script_ext_strict) (script_ext_enums, script_ext_mode): New static constants. (show_script_ext_mode, find_and_open_script): New functions. (source_script): Enhance to handle Python scripts. (init_cli_cmds): Add set/show script-extension commands.
2010-01-18 * Makefile.in (ANNOTATE_DOC_BUILD_INCLUDES): Add GDBvn.texi.Jie Zhang2-1/+6
2010-01-18Cannot build mips simulator on darwin.Joel Brobecker2-2/+4
Masaki Muranaka <monaka@monami-software.com> (tiny change) * interp.c: Don't include sysdep.h
2010-01-18*** empty log message ***gdbadmin1-1/+1
2010-01-17daily updateAlan Modra1-1/+1
2010-01-17*** empty log message ***gdbadmin1-1/+1
2010-01-162010-01-16 Stan Shebs <stan@codesourcery.com>Stan Shebs3-29/+127
* tracepoint.h (struct trace_status): Use unsigned long long instead of size_t. * tracepoint.c (trace_status_command): Fix printf directive. (trace_save_command): Check fwrite returns, fix printf directive. (trace_filename): New global. (tfile_open): Set it, check read returns. (tfile_close): Free trace_filename. (tfile_get_traceframe_address): Check read returns. (tfile_trace_find): Ditto. (tfile_fetch_registers): Ditto. (tfile_xfer_partial): Ditto. (tfile_get_trace_state_variable_value): Ditto.
2010-01-16daily updateAlan Modra1-1/+1
2010-01-16*** empty log message ***gdbadmin1-1/+1
2010-01-15daily updateAlan Modra1-1/+1
2010-01-15 Add trace file support.Stan Shebs14-232/+1966
* tracepoint.h (enum trace_stop_reason): New enum. (struct trace_status): New struct. (parse_trace_status): Declare. (struct uploaded_tp): Move here from remote.c, add fields for actions. (struct uploaded_tsv): New struct. * tracepoint.c (tfile_ops): New target vector. (trace_fd): New global. (tfile_open): New function. (tfile_close): New function. (tfile_files_info): New function. (tfile_get_trace_status): New function. (tfile_get_traceframe_address): New function. (tfile_trace_find): New function. (tfile_fetch_registers): New function. (tfile_xfer_partial): New function. (tfile_get_trace_state_variable_value): New function. (init_tfile_ops): New function. (_initialize_tracepoint): Call it, add tfile target. (trace_status): New global. (current_trace_status): New function. (trace_running_p): Remove, change all users to get from current_trace_status()->running. (get_trace_status): Remove. (trace_status_command): Call target_get_trace_status directly, report more detail including tracing stop reasons. (trace_find_command): Always allow tfind on a file. (trace_find_pc_command): Ditto. (trace_find_tracepoint_command): Ditto. (trace_find_line_command): Ditto. (trace_find_range_command): Ditto. (trace_find_outside_command): Ditto. (trace_frames_offset, cur_offset): Declare as off_t. (trace_regblock_size): Rename from reg_size, update users. (parse_trace_status): New function. (tfile_interp_line): New function. (disconnect_or_stop_tracing): Ensure current trace status before asking what to do. (stop_reason_names): New global. (trace_save_command): New command. (get_uploaded_tp): Move here from remote.c. (find_matching_tracepoint): Ditto. (merge_uploaded_tracepoints): New function. (parse_trace_status): Use stop_reason_names. (_initialize_tracepoint): Define tsave command. * target.h (target_ops): New fields to_save_trace_data, to_upload_tracepoints, to_upload_trace_state_variables, to_get_raw_trace_data, change to_get_trace_status to take a pointer to a status struct. (target_save_trace_data): New macro. (target_upload_tracepoints): New macro. (target_upload_trace_state_variables): New macro. (target_get_raw_trace_data): New macro. * target.c (update_current_target): Add new methods, change signature of to_get_trace_status. * remote.c (hex2bin): Make globally visible. (bin2hex): Ditto. (remote_download_trace_state_variable): Download name also. (remote_get_trace_status): Update parameter, use parse_trace_status. (remote_save_trace_data): New function. (remote_upload_tracepoints): New function. (remote_upload_trace_state_variables): New function. (remote_get_raw_trace_data): New function. (remote_start_remote): Use them. (_initialize_remote_ops): Add operations. * ax-gdb.c: Include breakpoint.h. * breakpoint.c (create_tracepoint_from_upload): Use break_command_really, return tracepoint, warn about unimplemented parts. * NEWS: Mention trace file addition. * gdb.texinfo (Trace Files): New section. (Tracepoint Packets): Document QTSave and qTBuffer. (Trace File Format): New appendix. * generic/gdbtk-bp.c (gdb_trace_status): Use current_trace_status. * gdb.trace/tfile.c: New file. * gdb.trace/tfile.exp: New file.
2010-01-15bfd/Jan Kratochvil2-2/+8
Fix compilation warning on gcc-3.4. * vms-tir.c (start_etir_record, sto_imm): Rename the prototype parameter index to sec_index according to the function definition.
2010-01-15gdb/Jan Kratochvil2-6/+10
Fix compilation warning on gcc-3.4. * exec.c (print_section_info): Move the `displacement' variable initialization to its declaration.
2010-01-152010-01-15 Sebastian Pop <sebastian.pop@amd.com>Sebastian Pop10-2/+3157
gas/ * config/tc-i386.c (md_assemble): Before accessing the IMM field check that it's not an XOP insn. gas/testsuite/ * gas/i386/x86-64-xop.d: Add missing patterns. * gas/i386/x86-64-xop.s: Same. * gas/i386/xop.d: Same. * gas/i386/xop.s: Same. opcodes/ * i386-opc.tbl: Support all the possible aliases for VPCOM* insns. * i386-tbl.h: Regenerated.
2010-01-15gdb/Jan Kratochvil2-1/+6
* gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE comparison.
2010-01-15Remove duplicated entries.H.J. Lu1-15/+0
2010-01-15 * arm.cc (Arm_relocate_functions::thm_jump6): New function.Ian Lance Taylor2-0/+99
(Arm_relocate_functions::thm_jump8): New function. (Arm_relocate_functions::thm_jump11): New function. (Target_arm::Scan::local): Handle R_ARM_THM_JUMP6, R_ARM_THM_JUMP8, R_ARM_THM_JUMP11. (Target_arm::Scan::global): Likewise. (Target_arm::Relocate::relocate): Likewise. (Target_arm::Relocatable_size_for_reloc::get_size_for_reloc): Likewise.