aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-12-13Record GDB 7.4 branch creation. Bump version number to 7.4.50.20111213-cvs.gdbadmin2-1/+6
2011-12-13 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_SAME): UpdateNick Clifton2-2/+6
to match code.
2011-12-13Missing file from my previous commit.Tristan Gingold1-0/+798
2011-12-13bfd/gdb_7_4-branchpointTristan Gingold9-684/+76
2011-12-13 Tristan Gingold <gingold@adacore.com> * mach-o.c (bfd_mach_o_read_symtab_symbols): Make global. Remove prototype. (bfd_mach_o_section_get_entry_size): Make global. (bfd_mach_o_section_get_nbr_indirect): Likewise. (bfd_mach_o_read_symtab_strtab): Likewise. (struct bfd_mach_o_xlat_name): Move to mach-o.h (bfd_mach_o_print_flags): Move to binutils/od-macho.c (bfd_mach_o_get_name_of_null, bfd_mach_o_get_name): Likewise. (bfd_mach_o_cpu_name, bfd_mach_o_filetype_name): Likewise. (bfd_mach_o_header_flags_name): Likewise. (bfd_mach_o_load_command_name): Likewise. (bfd_mach_o_print_private_header): Likewise. (bfd_mach_o_print_section_map, bfd_mach_o_print_section): Likwise. (bfd_mach_o_print_segment, bfd_mach_o_print_dysymtab): Likewise. (bfd_mach_o_print_dyld_info): Likewise. (bfd_mach_o_print_private_bfd_data): Remove. (bfd_mach_o_type_name): Make global. (bfd_mach_o_section_attribute_name): Likewise. * mach-o.h (bfd_mach_o_xlat_name): Added. (bfd_mach_o_section_get_nbr_indirect) (bfd_mach_o_section_get_entry_size) (bfd_mach_o_read_symtab_symbols) (bfd_mach_o_read_symtab_strtab) (bfd_mach_o_section_attribute_name) (bfd_mach_o_section_type_name): Likewise. * mach-o-target.c (bfd_mach_o_bfd_print_private_bfd_data): Define. binutils/ 2011-12-13 Tristan Gingold <gingold@adacore.com> * od-macho.c: New file. * objdump.h (objdump_private_desc_mach_o): Add. * configure.in: Add Mach-O od_vectors. * Makefile.am (CFILES): Add od-macho.c * configure: Regenerate. * Makefile.in: Regenerate.
2011-12-13 * ppc-opc.c (ISA_V2): Define and use for relevant BO field tests.Alan Modra3-338/+359
(valid_bo_pre_v2, valid_bo_post_v2): New functions, extracted from.. (valid_bo): ..here. When disassembling, accept either 'y' or 'at' type encoding on second pass. (powerpc_opcodes): Use ISA_V2 to enable branch insns rather than POWER4. * ppc-dis.c (print_insn_powerpc): Delete dialect_orig. Instead ignore deprecated on second pass.
2011-12-132011-12-13 Chung-Lin Tang <cltang@codesourcery.com>Chung-Lin Tang2-4/+11
* elfxx-mips.c (mips_elf_calculate_relocation): Correct R_MIPS16_HI16/R_MIPS16_LO16 handling of two cleared lower bits, update comments.
2011-12-132011-12-13 Yao Qi <yao@codesourcery.com>Yao Qi2-7/+14
* tracepoint.c (trace_buffer_alloc): Replace magic numbers with macros. (upload_fast_traceframes, upload_fast_traceframes): Likewise.
2011-12-13*** empty log message ***gdbadmin1-1/+1
2011-12-12daily updateAlan Modra1-1/+1
2011-12-122011-12-12 Iain Sandoe <iains@gcc.gnu.org>Tristan Gingold2-2/+7
* mach-o.c (bfd_mach_o_read_section_32): Null-terminate sectname. (bfd_mach_o_read_section_64): Likewise.
2011-12-122011-12-11 Yao Qi <yao@codesourcery.com>Yao Qi2-0/+14
* gdb.trace/status-stop.exp: Skip it if target doesn't support trace.
2011-12-12*** empty log message ***gdbadmin1-1/+1
2011-12-11daily updateAlan Modra1-1/+1
2011-12-11[Ada] improve message when cannot insert Ada exception catchpoint.Joel Brobecker2-1/+6
gdb/ChangeLog: * ada-lang.c (ada_exception_support_info_sniffer): Improve error message.
2011-12-11[Ada] Make the exception_support_info data per inferior.Joel Brobecker2-30/+35
The ada-lang module was using a static global called "exception_info" for all inferiors. But each inferior might be different, and thus this patch makes this data per-inferior. gdb/ChangeLog: * ada-lang.c (struct ada_inferior_data) [exception_info]: New field. (exception_info): Delete. (ada_exception_support_info_sniffer): Get exception_support_info data from our per-inferior data. Adjust code accordingly. (ada_unhandled_exception_name_addr_from_raise): Likewise. (ada_exception_name_addr_1, ada_exception_sym_name): Ditto. (ada_executable_changed_observer): Delete. (_initialize_ada_language): Remove call to observer_attach_executable_changed.
2011-12-11Warn if missing debug info for Ada exception catchpointsJoel Brobecker5-3/+35
This patch should help the user understand why the debugger is not able to insert Ada exception catchpoints when the Ada runtime was stripped of debugging info, as is often the case on many GNU/Linux distros: (gdb) catch exception Your Ada runtime appears to be missing some debugging information. Cannot insert Ada exception catchpoint in this configuration. gdb/ChangeLog: * ada-lang.c (ada_has_this_exception_support): Raise an error if we could find the Ada exception hook in the Ada runtime, but no debugging info for that hook. gdb/testsuite/ChangeLog: * gdb.ada/catch_ex.exp, gdb.ada/mi_catch_ex.exp: Adjust expected output for unsupported case.
2011-12-11Ada exception catchpoint support cleanup.Joel Brobecker2-35/+48
This patch cleans up a bit the way we detect which type of runtime the program uses with respect to Ada exceptions. It also removes an unnecessary check in ada_exception_sal which is already performed by ada_exception_support_info_sniffer. Some of the changes are preparation work for detecting the situation where the Ada runtime is found, but lacking debugging info. gdb/ChangeLog: * ada-lang.c (ada_has_this_exception_support): New function, extracted out of ada_exception_sal and ada_exception_sal. (ada_exception_support_info_sniffer): Simplify by using ada_has_this_exception_support. (ada_exception_sal): Replace unnecessary checks by assertions. Minor simplifications.
2011-12-11 PR binutils/13476Dave Anglin2-39/+53
* elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L, R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations to R_PARISC_DPREL21L when not doing a shared link. Likewise convert R_PARISC_TLS_GD14R, R_PARISC_TLS_LDM14R and R_PARISC_TLS_IE14R to R_PARISC_DPREL14R. Handle R_PARISC_TLS_GD21L, R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L with R_PARISC_DLTIND21L.
2011-12-11* breakpoint.c (update_global_location_list): Remove nestedAndrey Smirnov2-1/+6
definition of `b'(-Wshadow).
2011-12-11* breakpoint.c (insert_breakpoint_locations): Rename `error' toAndrey Smirnov2-4/+9
`error_flag'(-Wshadow).
2011-12-11* bfd-target.c (target_bfd_reopen): Rename `bfd' toAndrey Smirnov2-3/+8
`abfd'(-Wshadow).
2011-12-11* annotate.c (annotate_array_section_begin): Rename `index' toAndrey Smirnov2-2/+7
`idx'(-Wshadow).
2011-12-11* amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' toAndrey Smirnov2-2/+7
`idx'(-Wshadow).
2011-12-11* amd64-linux-tdep.c (amd64_canonicalize_syscall): RenameAndrey Smirnov2-2/+7
`syscall' to `syscall_number'(-Wshadow).
2011-12-11* ada-lang.c (remove_extra_symbols): Rename `remove' toAndrey Smirnov2-4/+9
`remove_p'(-Wshadow).
2011-12-11* ada-exp.y (write_var_or_type): Rename nested `renaming' toAndrey Smirnov2-3/+8
`ren_sym'(-Wshadow).
2011-12-112011-12-10 David Daney <david.daney@cavium.com>David Daney2-30/+39
* elfxx-mips.c (mips_elf_link_hash_table.rld_value): Remove. (mips_elf_link_hash_table.rld_symbol): New field; (MIPS_ELF_RLD_MAP_SIZE): New macro. (_bfd_mips_elf_add_symbol_hook): Remember __rld_obj_head symbol in rld_symbol. (_bfd_mips_elf_create_dynamic_sections): Remember __rld_map symbol in rld_symbol. (_bfd_mips_elf_size_dynamic_sections): Set correct size for .rld_map. (_bfd_mips_elf_finish_dynamic_symbol): Remove .rld_map handling. (_bfd_mips_elf_finish_dynamic_sections): Use rld_symbol to calculate DT_MIPS_RLD_MAP value. (_bfd_mips_elf_link_hash_table_create): Initialize rld_symbol, quit initializing rld_value.
2011-12-112011-12-10 David Daney <david.daney@cavium.com>David Daney2-1/+6
* ld-mips-elf/pic-and-nonpic-6-n64.dd: Use correct encoding for 64-bit MOVE instruction.
2011-12-11*** empty log message ***gdbadmin1-1/+1
2011-12-10 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section toDoug Evans2-32/+37
debug_types_section. All uses updated. (partial_read_comp_unit_head): Rename parameter is_debug_type_section to is_debug_types_section.
2011-12-10gdb/testsuite/Jan Kratochvil2-2/+9
PR testsuite/12649 * gdb.trace/ftrace.exp (test_fast_tracepoints): Import gdb_prompt. Protect gdb_test_multiple by final $gdb_prompt match.
2011-12-10daily updateAlan Modra1-1/+1
2011-12-10 * python/py-auto-load.c (source_section_scripts): Call xfreeDoug Evans2-1/+6
instead of free.
2011-12-10gdb/testsuite/Jan Kratochvil2-0/+43
* gdb.cp/static-method.exp (have_gcc_45682_fixed, info addr A::func()): New variable, new test. (list static-method.cc:xxx::(anonymous namespace)::A::func) (list 'static-method.cc:xxx::(anonymous namespace)::A::func') (list 'static-method.cc':'xxx::(anonymous namespace)::A::func') (list static-method.cc:'xxx::(anonymous namespace)::A::func'): KFAIL them if HAVE_GCC_45682_FIXED is not set.
2011-12-102011-12-10 Hui Zhu <teawater@gmail.com>Yao Qi5-0/+186
Yao Qi <yao@codesourcery.com> * tracepoint.c (start_tracing): Clear `inserted' flag. 2011-12-10 Yao Qi <yao@codesourcery.com> * gdb.trace/status-stop.exp: New. * gdb.trace/status-stop.c: New.
2011-12-102011-12-10 Hui Zhu <teawater@gmail.com>Hui Zhu2-4/+16
* tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
2011-12-102011-12-09 David Daney <david.daney@cavium.com>David Daney4-3/+10
* ld-mips-elf/tls-multi-got-1.r: Add "0x" to match value for MIPS_BASE_ADDRESS. * ld-mips-elf/textrel-1.d: Same. * ld-mips-elf/multi-got-1.d: Same.
2011-12-10* breakpoint.c (bp_loc_is_permanent): Rename `brk' toAndrey Smirnov2-4/+9
`bpoint'(-Wshadow).
2011-12-10* breakpoint.c (update_static_tracepoint): Rename nested `sal' andAndrey Smirnov2-15/+21
`marker' variables to `sal2' and `tpmarker' respectively (-Wshadow).
2011-12-10*** empty log message ***gdbadmin1-1/+1
2011-12-09daily updateAlan Modra1-1/+1
2011-12-092011-12-09 Andrew Pinski <apinski@cavium.com>Andrew Pinski2-1/+8
* linespec.c (hash_address_entry): Use iterative_hash_object on each field rather than the struct itself.
2011-12-09 * breakpoint.c (compare_breakpoints): New function.Tom Tromey2-1/+49
(clear_command): Remove duplicate breakpoints. Properly clean up.
2011-12-09gdb/testsuite/Jan Kratochvil2-0/+9
* gdb.reverse/until-precsave.exp (run to end of main) Extend the timeout.
2011-12-09*** empty log message ***gdbadmin1-1/+1
2011-12-08daily updateAlan Modra1-1/+1
2011-12-08opcodes:Andrew Pinski8-0/+20
2011-12-08 Andrew Pinski <apinski@cavium.com> * mips-opc.c (mips_builtin_opcodes): Add "pause". gas/testsuite: 2011-12-08 Andrew Pinski <apinski@cavium.com> * gas/mips/mips32-mt.d: Add pause instruction encoding to the end. * gas/mips/micromips@mips32r2.d: Likewise. * gas/mips/mips32r2.d: Likewise. * gas/mips/mips32-mt.s: Add pause instruction to the end. * gas/mips/mips32r2.s: Likewise.
2011-12-08bfd:Andrew Pinski17-9/+189
2011-12-08 Andrew Pinski <apinski@cavium.com> Adam Nemet <anemet@caviumnetworks.com> * archures.c (bfd_mach_mips_octeon2): New macro * bfd-in2.h: Regenerate. * cpu-mips.c (I_mipsocteon2): New enum value. (arch_info_struct): Add bfd_mach_mips_octeon2. * elfxx-mips.c (_bfd_elf_mips_mach): Support E_MIPS_MACH_OCTEON2. (mips_set_isa_flags): Add bfd_mach_mips_octeon2. (mips_mach_extensions): Add bfd_mach_mips_octeon2. gas: 2011-12-08 Andrew Pinski <apinski@cavium.com> Adam Nemet <anemet@caviumnetworks.com> * tc-mips.c (CPU_IS_OCTEON): Add Octeon2. (mips_cpu_info_table): Add Octeon2. * doc/c-mips.texi: Document octeon2 as an acceptable value for -march=. gas/testsuite: 2011-12-08 Andrew Pinski <apinski@cavium.com> Adam Nemet <anemet@caviumnetworks.com> * gas/mips/mips.exp: Add Octeon2 for an architecture. Run octeon2 test. * gas/mips/octeon2.d: New file. * gas/mips/octeon2.s: New file. include/opcode: 2011-12-08 Andrew Pinski <apinski@cavium.com> Adam Nemet <anemet@caviumnetworks.com> * mips.h (INSN_CHIP_MASK): Update according to INSN_OCTEON2. (INSN_OCTEON2): New macro. (CPU_OCTEON2): New macro. (OPCODE_IS_MEMBER): Add Octeon2. opcodes: 2011-12-08 Andrew Pinski <apinski@cavium.com> Adam Nemet <anemet@caviumnetworks.com> * mips-dis.c (mips_arch_choices): Add Octeon2. For "octeon+", just include OcteonP for the insn. * mips-opc.c (IOCT): Include Octeon2. (IOCTP): Include Octeon2. (IOCT2): New macro. (mips_builtin_opcodes): Add "laa", "laad", "lac", "lacd", "lad", "ladd", "lai", "laid", "las", "lasd", "law", "lawd". Move "lbux", "ldx", "lhx", "lwx", and "lwux" up to where the standard loads are, and add IOCT2 to them. Add "lbx" and "lhux". Add "qmac.00", "qmac.01", "qmac.02", "qmac.03", "qmacs.00", "qmacs.01", "qmacs.01", "qmacs.02" and "qmacs.03". Add "zcb" and "zcbt".
2011-12-08 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extendMaciej W. Rozycki2-4/+13
address chunks retrieved from decoded lui/addiu pairs.
2011-12-08 * mips-tdep.c (extended_offset): Correct calculation.Maciej W. Rozycki2-47/+26
(unpack_mips16): Correct bitfield positions used for extraction of the immediate argument; fix sign-extension of same. (extended_mips16_next_pc): Correct B instruction's offset calculation. Correct register decoding of the BEQZ and BNEZ as well as jump-register instructions. Handle compact jumps.