aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-04-26 Provide a way for programs to recognize BFD_ASSERT calls.Hans-Peter Nilsson5-2/+112
* bfd.c (bfd_assert_handler_type): New API type. (bfd_set_assert_handler, bfd_get_assert_handler): New API functions. (_bfd_assert_handler): New variable. (_bfd_default_assert_handler): New function. (bfd_assert): Call _bfd_assert_handler, not _bfd_error_handler. * libbfd-in.h (_bfd_assert_handler): Declare. * libbfd.h, bfd-in2.h: Regenerate.
2012-04-26 * arm.cc (Target_arm::do_is_defined_by_abi): Make sym a constIan Lance Taylor6-11/+26
pointer. (Stub_addend_reader::operator()): Declare Arm_relocate_functions as a class, not a struct. (Target_arm::scan_span_for_cortex_a8_erratum): Likewise. (Target_arm::apply_cortex_a8_workaround): Likewise. * gc.h: Declare Reloc_types as a struct, not a class. * object.h: Declare Symbols_data as a struct. * reloc.h: Declare Read_relocs_data as a struct. * target.h: Declare Relocate_info as a struct.
2012-04-26daily updateAlan Modra1-1/+1
2012-04-26*** empty log message ***gdbadmin1-1/+1
2012-04-25 * cli/cli-decode.c (print_doc_line): Use stream instead ofDoug Evans2-1/+6
current_uiout.
2012-04-25back out previous changeDoug Evans2-6/+1
2012-04-25 * cli/cli-decode.c (print_doc_line): Use stream instead ofDoug Evans2-1/+6
current_uiout.
2012-04-252012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior27-26/+66
* features/arm-with-iwmmxt.c: Regenerate. * features/arm-with-m-fpa-layout.c: Likewise. * features/arm-with-m.c: Likewise. * features/arm-with-neon.c: Likewise. * features/arm-with-vfpv2.c: Likewise. * features/arm-with-vfpv3.c: Likewise. * features/mips-dsp-linux.c: Likewise. * features/mips-linux.c: Likewise. * features/mips64-dsp-linux.c: Likewise. * features/mips64-linux.c: Likewise. * features/s390-linux32.c: Likewise. * features/s390-linux32v1.c: Likewise. * features/s390-linux32v2.c: Likewise. * features/s390-linux64.c: Likewise. * features/s390-linux64v1.c: Likewise. * features/s390-linux64v2.c: Likewise. * features/s390x-linux64.c: Likewise. * features/s390x-linux64v1.c: Likewise. * features/s390x-linux64v2.c: Likewise. * features/tic6x-c62x-linux.c: Likewise. * features/tic6x-c62x.c: Likewise. * features/tic6x-c64x-linux.c: Likewise. * features/tic6x-c64x.c: Likewise. * features/tic6x-c64xp-linux.c: Likewise. * features/tic6x-c64xp.c: Likewise. * target-descriptions.c: Only generate `field_type' and `type' variables when needed.
2012-04-25 * doc/binutils.texi: Add -D/--enable-deterministic-archives optionCary Coutant3-1/+49
to strip and objcopy. * objcopy.c (deterministic): New global variable. (strip_options): Add --enable-deterministic-archives. (copy_options): Likewise. (copy_usage): Likewise. (strip_usage): Likewise. (copy_archive): When stripping all, don't add archive map; set deterministic output when requested. (strip_main): Add -D/--enable-deterministic-archives option. (copy_main): Likewise.
2012-04-25 * gdb.texinfo (Go): Fix thinko.Doug Evans2-1/+3
2012-04-25Update config.sub to 2012-04-18 version.Joel Brobecker2-15/+31
ChangeLog: * config.sub: Update to 2012-04-18 version from official repo.
2012-04-25Fix location of entry added last.Joel Brobecker1-4/+4
2012-04-25Corrupted path caused by "cd" command.Joel Brobecker2-2/+6
gdb/ChangeLog: * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2012-04-25 Initial pass at Go language support.Doug Evans42-21/+3840
* NEWS: Mention Go. * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c, go-valprint.c. (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o. (YYFILES): Add go-exp.c. (YYOBJ): Add go-exp.o. (local-maintainer-clean): Delete go-exp.c. * defs.h (enum language): Add language_go. * dwarf2read.c: #include "go-lang.h". (fixup_go_packaging): New function. (process_full_comp_unit): Call it when processing Go CUs. (dwarf2_physname): Add Go support. (read_file_scope): Handle missing language spec for GNU Go. (set_cu_language): Handle DW_LANG_Go. * go-exp.y: New file. * go-lang.h: New file. * go-lang.c: New file. * go-typeprint.c: New file. * go-valprint.c: New file. * symtab.c: #include "go-lang.h". (symbol_set_language): Handle language_go. (symbol_find_demangled_name, symbol_set_names): Ditto. (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto. testsuite/ * configure.ac: Create gdb.go/Makefile. * configure: Regenerate. * gdb.base/default.exp: Add "go" to "set language" testing. * gdb.go/Makefile.in: New file. * gdb.go/basic-types.exp: New file. * gdb.go/chan.exp: New file. * gdb.go/chan.go: New file. * gdb.go/handcall.exp: New file. * gdb.go/handcall.go: New file. * gdb.go/hello.exp: New file. * gdb.go/hello.go: New file. * gdb.go/integers.exp: New file. * gdb.go/integers.go: New file. * gdb.go/methods.exp: New file. * gdb.go/methods.go: New file. * gdb.go/package.exp: New file. * gdb.go/package1.go: New file. * gdb.go/package2.go: New file. * gdb.go/print.exp: New file. * gdb.go/strings.exp: New file. * gdb.go/strings.go: New file. * gdb.go/types.exp: New file. * gdb.go/types.go: New file. * gdb.go/unsafe.exp: New file. * gdb.go/unsafe.go: New file. * lib/future.exp: Add Go support. (gdb_find_go, gdb_find_go_linker): New procs. (gdb_default_target_compile): Add Go support. * lib/gdb.exp (skip_go_tests): New proc. * lib/go.exp: New file. doc/ * gdb.texinfo (Supported Languages): Add Go. (Go): New node.
2012-04-25 * gdb.threads/linux-dp.exp: Unset 'seen' before 'array set'.Tom Tromey2-1/+5
2012-04-25gdb/docYao Qi2-0/+55
* gdbint.texinfo (Testsuite): New section `Board settings'.
2012-04-25avoid a few strncpy-induced buffer overrunsJim Meyering3-2/+12
* procfs.c (procfs_make_note_section): Be sure to NUL-terminate fname and psargs before trying to concatenate. * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate "name" before applying strchr.
2012-04-252012-04-25 Siva Chandra Reddy <sivachandra@google.com>Siva Chandra Reddy2-3/+8
* CONTRIBUTE: Use unified diff instead of context diff when generating patches.
2012-04-25daily updateAlan Modra1-1/+1
2012-04-25*** empty log message ***gdbadmin1-1/+1
2012-04-24gold: Add linker relaxation of tail calls on sparc.David S. Miller2-0/+158
gold/ * sparc.cc (Target_sparc::Relocate::relax_call): New function. (Target_sparc::Relocate::relocate): Call it for R_SPARC_WDISP30 and R_SPARC_WPLT30.
2012-04-24 * incremental-dump.cc (find_input_containing_global): ReplaceCary Coutant4-34/+123
magic number with symbolic constant. (dump_incremental_inputs): Update version number. * incremental.cc (Output_section_incremental_inputs): Update version number; import symbolic constants from Incremental_inputs_reader. (Incremental_inputs::create_data_sections): Align relocations section correctly for 64-bit targets. (Output_section_incremental_inputs::set_final_data_size): Use symbolic constants; add padding. (Output_section_incremental_inputs::write_header): Add assert for header_size. (Output_section_incremental_inputs::write_input_files): Add assert for input_entry_size. (Output_section_incremental_inputs::write_info_blocks): Add padding; add assert for object_info_size, input_section_entry_size, global_sym_entry_size. * incremental.h (Incremental_inputs_reader): Add symbolic constants for data structure sizes; use them. (Incremental_input_entry_reader): Import symbolic constants from Incremental_inputs_reader; use them.
2012-04-24 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 supportMaciej W. Rozycki2-10/+15
code. Handle JR.HB correctly.
2012-04-24 * mips-tdep.cMaciej W. Rozycki2-21/+27
(is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group with the other MIPS16 helpers.
2012-04-242012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior2-1/+15
* observer.sh: Conditionally declare `args', thus cleaning up unused instances of this variable.
2012-04-24* ld-x86-64/plt-nacl.pd: Fix expected nop padding.Roland McGrath3-6/+14
* ld-x86-64/tlsdesc-nacl.pd: Likewise.
2012-04-24 PR ld/13990Hans-Peter Nilsson7-0/+58
* ld-arm/arm-elf.exp: Run gc-hidden-1. * ld-arm/gc-hidden-1.d: New test-file. * ld-arm/gcdfn.s, ld-arm/hideall.ld, ld-arm/hidfn.s, ld-arm/main.s: New files.
2012-04-24 PR ld/13990Hans-Peter Nilsson2-2/+19
* elf32-arm.c (elf32_arm_gc_sweep_hook): Handle a forced-local symbol, where PLT refcount is set to -1.
2012-04-24 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.Thiago Jung Bauermann4-16/+40
(PTRACE_ARG4_TYPE): Likewise. (PTRACE_XFER_TYPE): Likewise. * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of ptrace to PTRACE_ARG3_TYPE. * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h. (PTRACE_ARG4_TYPE): Likewise. (PTRACE_XFER_TYPE): Likewise. (linux_detach_one_lwp): Cast fourth argument of ptrace to long then PTRACE_ARG4_TYPE. (regsets_fetch_inferior_registers): Cast third argument of ptrace to long then PTRACE_ARG3_TYPE. (regsets_store_inferior_registers): Likewise.
2012-04-24gdb:Yao Qi5-4/+73
Revert this patch to allow breakpoint always-inserted in record target. 2011-12-05 Pedro Alves <pedro@codesourcery.com> * breakpoint.c: Include record.h. (breakpoints_always_inserted_mode): Return false when the record target is in use. * breakpoint.c (iterate_over_bp_locations): New. * breakpoint.h: Declare. New typedef walk_bp_location_callback. * record.c (record_open): Call record_init_record_breakpoints. (record_sync_record_breakpoints): New. (record_init_record_breakpoints): New. * NEWS: Mention supporting breakpoint always-inserted mode in record target.
2012-04-242012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>Marc Khouzam2-1/+6
* mi/mi-main.c (mi_cmd_execute): Choose a live thread not just any thread.
2012-04-24gdb/Yao Qi3-3/+10
* breakpoint.c (ep_is_catchpoint): Renamed to ... (is_catchpoint): ... it. (print_one_breakpoint_location): Caller update. * breakpoint.h: Update declaration.
2012-04-24 PR ld/13991Alan Modra75-200/+243
bfd/ * bfd/elf-bfd.h (_bfd_elf_link_just_syms): Define as _bfd_generic_link_just_syms. * bfd/elflink.c (_bfd_elf_link_just_syms): Delete. * bfd/linker.c (_bfd_generic_link_just_syms): Set sec_info_type. * bfd/bfd-in.h (discarded_section): Renamed from elf_discarded_section. * bfd/section.c (SEC_INFO_TYPE_NONE, SEC_INFO_TYPE_STABS, SEC_INFO_TYPE_MERGE, SEC_INFO_TYPE_EH_FRAME, SEC_INFO_TYPE_JUST_SYMS): Renamed from corresponding ELF_INFO_TYPE. * bfd/elf-eh-frame.c, * bfd/elf-m10200.c, * bfd/elf-m10300.c, * bfd/elf.c, * bfd/elf32-arm.c, * bfd/elf32-avr.c, * bfd/elf32-bfin.c, * bfd/elf32-cr16.c, * bfd/elf32-cr16c.c, * bfd/elf32-cris.c, * bfd/elf32-crx.c, * bfd/elf32-d10v.c, * bfd/elf32-epiphany.c, * bfd/elf32-fr30.c, * bfd/elf32-frv.c, * bfd/elf32-h8300.c, * bfd/elf32-hppa.c, * bfd/elf32-i370.c, * bfd/elf32-i386.c, * bfd/elf32-i860.c, * bfd/elf32-ip2k.c, * bfd/elf32-iq2000.c, * bfd/elf32-lm32.c, * bfd/elf32-m32c.c, * bfd/elf32-m32r.c, * bfd/elf32-m68hc1x.c, * bfd/elf32-m68k.c, * bfd/elf32-mcore.c, * bfd/elf32-mep.c, * bfd/elf32-moxie.c, * bfd/elf32-msp430.c, * bfd/elf32-mt.c, * bfd/elf32-openrisc.c, * bfd/elf32-ppc.c, * bfd/elf32-rl78.c, * bfd/elf32-rx.c, * bfd/elf32-s390.c, * bfd/elf32-score.c, * bfd/elf32-score7.c, * bfd/elf32-sh.c, * bfd/elf32-spu.c, * bfd/elf32-tic6x.c, * bfd/elf32-tilepro.c, * bfd/elf32-v850.c, * bfd/elf32-vax.c, * bfd/elf32-xc16x.c, * bfd/elf32-xstormy16.c, * bfd/elf32-xtensa.c, * bfd/elf64-alpha.c, * bfd/elf64-hppa.c, * bfd/elf64-ia64-vms.c, * bfd/elf64-mmix.c, * bfd/elf64-ppc.c, * bfd/elf64-s390.c, * bfd/elf64-sh64.c, * bfd/elf64-x86-64.c, * bfd/elflink.c, * bfd/elfnn-ia64.c, * bfd/elfxx-mips.c, * bfd/elfxx-sparc.c, * bfd/elfxx-tilegx.c, * bfd/reloc.c: Update all references. * bfd/bfd-in2.h: Regenerate. ld/ * ld/ldlang.c (size_input_section): Use sec_info_type rather than usrdata->flags.just_syms. * ld/ldwrite.c (build_link_order): Likewise. * ld/emultempl/hppaelf.em (build_section_lists): Likewise. * ld/emultempl/ppc64elf.em (build_toc_list): Likewise. * ld/emultempl/armelf.em (build_section_lists): Likewise. (after_allocation): Update for renamed sec_info_type value. * ld/emultempl/tic6xdsbt.em: Likewise.
2012-04-24gdb: Enable gdbserver by default on sparc-*-linux*David S. Miller2-0/+5
This appears to be an oversight, since this is done already for sparc64-*-linux*, and essentially every other linux target. gdb/ * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2012-04-24*** empty log message ***gdbadmin1-1/+1
2012-04-24daily updateAlan Modra1-1/+1
2012-04-23gold: Maintain sparc ELF header bits properlyDavid S. Miller2-1/+120
gold/ * sparc.cc (class Target_sparc): Add elf_machine_, elf_flags_, and elf_flags_set_. (Target_sparc::Target_sparc): Initialize new fields. (Target_sparc::do_make_elf_object): New function. (Target_sparc::do_adjust_elf_header): New function.
2012-04-23elfcpp/Cary Coutant4-3/+78
* elfcpp_swap.h (struct Swap_aligned32): New template. gold/ * gdb-index.cc (Gdb_index::do_write): Use Swap_aligned32 for writing CU range table of gdb index.
2012-04-23 * buildsym.c (add_free_pendings): Remove.Tom Tromey3-16/+5
* buildsym.h (add_free_pendings): Remove.
2012-04-23* ld-pie/pie.exp: Remove extra braces.Andreas Schwab2-1/+5
2012-04-23gdb/doc/Jan Kratochvil2-3/+6
* gdb.texinfo (Auto-loading safe path): Add trailing @dots{}. Three times.
2012-04-23gdb/doc/Jan Kratochvil2-3/+8
* gdb.texinfo (Auto-loading safe path): Remove trailing [@dots{}]. Three times.
2012-04-23 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr inDoug Evans2-17/+35
attr.u.unsnd instead of attr.u.addr. (read_attribute_value) Ditto for cases DW_FORM_ref_addr, DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8, DW_FORM_ref_udata. (dump_die_shallow): Update cases DW_FORM_ref_addr, DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8, DW_FORM_ref_udata. (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2012-04-23 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.Maciej W. Rozycki2-19/+25
(mips_o32_return_value): Likewise. (mips_o64_return_value): Likewise.
2012-04-23*** empty log message ***gdbadmin1-1/+1
2012-04-23daily updateAlan Modra1-1/+1
2012-04-22gdb/doc/Jan Kratochvil2-6/+11
* gdb.texinfo (Auto-loading safe path): Replace @itemize @bullet by @table @asis. Fix formatting of one item.
2012-04-22*** empty log message ***gdbadmin1-1/+1
2012-04-22daily updateAlan Modra1-1/+1
2012-04-21Add proper handling for internal functions and STT_GNU_IFUNC symbols in Ada ↵Paul N. Hilfinger2-1/+24
mode. The code for handling calls to internal functions (esp., Python functions) and for handling STT_GNU_IFUNC had not been added to the Ada expression evaluator. This change adapts them from eval.c. gdb/Changelog: * ada-lang.c (ada_evaluate_subexp): Add cases for TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following their treatment in eval.c.