aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2013-01-16Add x86 size relocation support to bfdH.J. Lu6-12/+123
* bfd-in2.h: Regenerated. * libbfd.h: Likewise. * elf32-i386.c (elf_howto_table): Fill R_386_SIZE32 entry. (elf_i386_reloc_type_lookup): Support BFD_RELOC_SIZE32. (elf_i386_check_relocs): Handle R_386_SIZE32. (elf_i386_gc_sweep_hook): Likewise. (elf_i386_relocate_section): Likewise. * elf64-x86-64.c (x86_64_elf_howto_table): Fill R_X86_64_SIZE32 and R_X86_64_SIZE64 entries. (x86_64_reloc_map): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64, (elf_x86_64_rtype_to_howto): Handle R_X86_64_SIZE32 for x32. (elf_x86_64_reloc_name_lookup): Likewise. (elf_x86_64_check_relocs): Handle R_X86_64_SIZE32 and R_X86_64_SIZE64. (elf_x86_64_gc_sweep_hook): Likewise. (elf_x86_64_relocate_section): Likewise. * reloc.c (bfd_reloc_code_type): Add BFD_RELOC_SIZE32 and BFD_RELOC_SIZE64.
2013-01-16Define R_386_SIZE32/R_X86_64_SIZE32/R_X86_64_SIZE64H.J. Lu3-2/+9
* i386.h (R_386_SIZE32): Fill it. * x86-64.h (R_X86_64_SIZE32): Likewise. (R_X86_64_SIZE64): Likewise.
2013-01-162013-01-03 Pedro Alves <palves@redhat.com>Tom Tromey13-130/+964
Tom Tromey <tromey@redhat.com> PR cli/7221: * NEWS: Add "catch signal". * breakpoint.c (base_breakpoint_ops): No longer static. (bpstat_explains_signal): New function. (init_catchpoint): No longer static. (base_breakpoint_explains_signal): New function. (base_breakpoint_ops): Initialize new field. * breakpoint.h (enum bpstat_signal_value): New. (struct breakpoint_ops) <explains_signal>: New field. (bpstat_explains_signal): Remove macro, declare as function. (base_breakpoint_ops, init_catchpoint): Declare. * break-catch-sig.c: New file. * inferior.h (signal_catch_update): Declare. * infrun.c (signal_catch): New global. (handle_syscall_event): Update for change to bpstat_explains_signal. (handle_inferior_event): Likewise. Always handle random signals via bpstats. (signal_cache_update): Check signal_catch. (signal_catch_update): New function. (_initialize_infrun): Initialize signal_catch. * Makefile.in (SFILES): Add break-catch-sig.c. (COMMON_OBS): Add break-catch-sig.o. gdb/doc * gdb.texinfo (Set Catchpoints): Document "catch signal". (Signals): Likewise. gdb/testsuite * gdb.base/catch-signal.c: New file. * gdb.base/catch-signal.exp: New file.
2013-01-16 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)Tom Tromey6-6/+51
(print_one_catch_solib, print_one_catch_syscall) (print_one_catch_exec, print_one_exception_catchpoint): Emit "catch-type". gdb/doc * gdb.texinfo (GDB/MI Breakpoint Information): Document "catch-type" field. (GDB/MI Catchpoint Commands): Add "catch-type" to examples. gdb/testsuite * gdb.mi/mi-catch-load.exp: Look for "catch-type".
2013-01-16gdb/Yao Qi2-1/+5
* printcmd.c (current_display_number): Make it static.
2013-01-16gdb/gdbserver/Yao Qi2-1/+6
* linux-low.c (linux_resume_one_lwp): Don't check 'lwp->bp_reinsert != 0'.
2013-01-16gdb/Yao Qi2-1/+6
* infcmd.c (step_once): Don't check '!single_inst' as it was checked before.
2013-01-16 * rx.c (decode_opcode): Handle RXO_satr.Nick Clifton2-0/+20
2013-01-16 * ld-plugin/lto.exp (lto-9.o, pr13229.o): Pass -finline.Alan Modra2-2/+6
2013-01-16 * gas/ppc/htm.d: Ignore padding at end of section.Alan Modra2-0/+5
2013-01-16 * config/tc-ppc.c (md_assemble <TE_PE>): Ignore line afterAlan Modra2-3/+8
finding some sort of toc syntax error, and break to avoid compiler uninit warning.
2013-01-16*** empty log message ***gdbadmin1-1/+1
2013-01-15daily updateAlan Modra1-1/+1
2013-01-15 * configure.ac: Sync with GCC repo.Jan-Benedict Glaw5-16/+118
* configure: Ditto. * Makefile.def: Ditto. * Makefile.in: Ditto.
2013-01-15gdb/Jan Kratochvil2-1/+7
* dwarf2read.c (psymtab_include_file_name): Extend the function comment.
2013-01-15Increment length by 1 if the relocation token is removedH.J. Lu9-4/+40
gas/ PR gas/15019 * config/tc-i386.c (lex_got): Increment length by 1 if the relocation token is removed. gas/testsuite/ PR gas/15019 * gas/i386/reloc32.s: Add tests for "xtrn@got -/+ 4". * gas/i386/reloc64.s: Likewise. * gas/i386/ilp32/reloc64.s: Likewise. * gas/i386/reloc32.d: Updated. * gas/i386/reloc64.d: Likewise. * gas/i386/ilp32/reloc64.d: Likewise.
2013-01-15Define R_X86_64_standard with R_X86_64_RELATIVE64H.J. Lu2-1/+6
* elf64-x86-64.c (R_X86_64_standard): Replace R_X86_64_IRELATIVE with R_X86_64_RELATIVE64.
2013-01-15gdb/testsuite/Jan Kratochvil2-0/+9
* gdb.dwarf2/dw2-restrict.exp: Skip compilation on non-x86_64 targets.
2013-01-15 PR binutils/15018Alan Modra2-6/+10
* stabs.c (parse_stab_members): Always set physname here to avoid gcc warning.. (parse_stab_argtypes): ..and don't duplicate the init here.
2013-01-15 * config/tc-v850.c (md_assemble): Allow signed values forNick Clifton10-13/+37
V850E_IMMEDIATE. * gas/v850/basic.exp: Allow for variations in reloc names. * gas/v850/split-lo16.d: Likewise. * gas/v850/v850e1.s: Add more tests of the PREPARE insn. * gas/v850/v850e1.d: Update expected disassembly. * v850-dis.c (get_operand_value): Sign extend V850E_IMMEDIATE values. * v850-opc.c (IMM16LO): Add V850_OPERAND_SIGNED attribute.
2013-01-15Fix spelling typo.Nick Clifton2-4/+7
2013-01-15bfd/Alan Modra10-26/+57
* elf64-ppc.c (ppc64_elf_size_stubs): Default shared libs to plt-thread-safe. gold/ * powerpc.cc (Target_powerpc::do_relax): Default shared libs to plt-thread-safe. ld/testsuite/ * ld-powerpc/tlsso.d: Adjust for plt-thread-safe stubs. * ld-powerpc/tlsso.g: Likewise. * ld-powerpc/tlsso.r: Likewise. * ld-powerpc/tlstocso.d: Likewise. * ld-powerpc/tlstocso.g: Likewise.
2013-01-15 * ld-plugin/lto-16a.d: Match powerpc64 function symbol type.Alan Modra5-4/+11
* ld-plugin/lto-16b.d: Likewise. * ld-plugin/lto-17a.d: Likewise. * ld-plugin/lto-17b-2.d: Likewise.
2013-01-15*** empty log message ***gdbadmin1-1/+1
2013-01-14 * testsuite/Makefile.am (final_layout_script.lds): Handle .got section.Alan Modra3-2/+7
* testsuite/Makefile.in: Regenerate.
2013-01-14daily updateAlan Modra1-1/+1
2013-01-14 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return theTom Tromey6-17/+68
set command. * command.h (add_setshow_string_noescape_cmd): Update. * corefile.c (set_gnutarget_command): Remove trailing whitespace. (complete_set_gnutarget): New function. (_initialize_core): Set the "set gnutarget" completer. gdb/testsuite * gdb.base/completion.exp: Add "set gnutarget" test.
2013-01-14 PR symtab/14442:Tom Tromey9-12/+570
* c-typeprint.c (cp_type_print_method_args): Handle 'restrict'. (c_type_print_modifier): Likewise. * dwarf2read.c (read_tag_restrict_type): New function. (read_type_die_1): Handle DW_TAG_restrict_type. * gdbtypes.c (make_restrict_type): New function. (recursive_dump_type): Handle TYPE_RESTRICT. * gdbtypes.h (enum type_flag_values): Renumber. (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_RESTRICT. (TYPE_RESTRICT): New macro. (make_restrict_type): Declare. gdb/testsuite * gdb.dwarf2/dw2-restrict.S: New file. * gdb.dwarf2/dw2-restrict.c: New file. * gdb.dwarf2/dw2-restrict.exp: New file.
2013-01-14 PR symtab/14931:Tom Tromey8-1/+292
* psymtab.c (struct psymtab_state): New. (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New functions. * psympriv.h (make_cleanup_discard_psymtabs): Declare. * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions. gdb/testsuite * gdb.dwarf2/dw2-error.exp: New file. * gdb.dwarf2/dw2-error.c: New file. * gdb.dwarf2/dw2-error.S: New file.
2013-01-142013-01-14 Richard Sharman <richard_sharman@mitel.com>Pedro Alves2-1/+20
Pedro Alves <palves@redhat.com> PR remote/14786 * remote.c (remote_threads_info): Make a copy of the reply from qfThreadInfo and use that instead of rs->buf.
2013-01-14 * ld.texinfo (-Tldata-segment): Describe.Alan Modra5-0/+30
* ldlex.h (OPTION_TLDATA_SEGMENT): New enum value. * lexsup.c (ld_options): Add -Tldata-segment. (parse_args): Handle OPTION_TLDATA_SEGMENT. * scripttempl/elf.sc: Support LARGE_DATA_ADDR.
2013-01-14 * ld-elf/pr14926.d: Disable for d10v, msp, xstormy.Alan Modra3-1/+8
* ld-elf/sec-to-seg.exp: Choose correct variant output to suit updated microblaze page size.
2013-01-14 PR binutils/14813Alan Modra6-11/+21
* bfdio.c (struct bfd_iovec <bclose>): Revert 2012-11-06. (memory_bclose): Likewise. Return 0 on success. * cache.c (cache_bclose): Likewise. * opncls.c (opncls_bclose, bfd_close): Likewise. * vms-lib.c (vms_lib_bclose): Likewise. * libbfd.h: Regenerate.
2013-01-14 * gas/v850/basic.exp (reloc part 1): Pass -mgcc-abi to gas.Alan Modra3-3/+8
* gas/v850/split-lo16.d: Likewise.
2013-01-14 * testsuite/Makefile.am (MOSTLYCLEANFILES): Add various output files.Alan Modra3-25/+46
* testsuite/Makefile.in: Regenerate.
2013-01-14 * metag-dis.c (REG_WIDTH): Increase to 64.Nick Clifton4-7/+15
* gas/metag/metadsp21.d: Fix expected MMOV disassembly.
2013-01-14gdb/Yao Qi5-48/+42
2013-01-14 Yao Qi <yao@codesourcery.com> * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL. (dbx_psymtab_to_symtab): Likewise. * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise. * mdebugread.c (mdebug_psymtab_to_symtab): Likewise. * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
2013-01-14 * gas/ppc/htm.s: Use .text rather than .section ".text".Alan Modra5-4/+11
* gas/ppc/power8.s: Likewise. * gas/ppc/htm.d: Don't match file format. * gas/ppc/power8.d: Likewise.
2013-01-14*** empty log message ***gdbadmin1-1/+1
2013-01-13daily updateAlan Modra1-1/+1
2013-01-13gdb/Jan Kratochvil7-3/+119
* parse.c (parse_exp_in_context): New variable inner_chain. Call make_cleanup_restore_current_language. Call set_language. Move OLD_CHAIN and INNER_CHAIN cleanups. * utils.c (do_restore_current_language) (make_cleanup_restore_current_language): New functions. * utils.h (make_cleanup_restore_current_language): New declaration. gdb/testsuite/ * gdb.cp/parse-lang.cc: New file. * gdb.cp/parse-lang.exp: New file.
2013-01-13gdb/Jan Kratochvil2-1/+4
* source.c (symtab_to_fullname): Do not prepend DIRNAME for non-existing files if FILENAME is already absolute.
2013-01-13gdb/Jan Kratochvil4-4/+41
* source.c (symtab_to_fullname): Apply rewrite_source_path also for non-existing files. gdb/testsuite/ * gdb.mi/mi-fullname-deleted.exp: Set srcfileabssubst and initdir. (set substitute-path): New test. (fullname present): Remove content. (substituted fullname): New test.
2013-01-13 * elf-bfd.h (struct elf_link_hash_entry): Delete dynamic_weak.Alan Modra3-51/+45
Add ref_dynamic_nonweak. * elflink.c (_bfd_elf_mark_dynamic_def_weak): Delete. (_bfd_elf_merge_symbol): Don't call above function. Move setting of ref_dynamic_nonweak and dynamic_def earlier. Don't clear dynamic_def. (elf_link_add_object_symbols): Delete redundant "override" test. Don't set dynamic_def here. (elf_link_output_extsym): Update.
2013-01-13Fix gdb.python/py-finish-breakpoint.exp ERROR.Joel Brobecker2-7/+14
This patch fixes the following error, when running gdb.python/ py-finish-breakpoint.exp: ERROR: can't read "gdb_py_is_py24": no such variable while executing "if { $gdb_py_is_py24 == 1 } { gdb/testsuite/ChangeLog: * gdb.python/py-finish-breakpoint.exp: Add skip_python_tests check. Move $gdb_py_is_py24 value check right after.
2013-01-13Set bfd errror for normal and TLS symbol accessH.J. Lu3-0/+8
* elf32-i386.c (elf_i386_check_relocs): Set bfd errror for normal and TLS symbol access. * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
2013-01-13*** empty log message ***gdbadmin1-1/+1
2013-01-12daily updateAlan Modra1-1/+1
2013-01-12 * ChangeLog: Fix typo.Jan-Benedict Glaw1-1/+1
2013-01-12*** empty log message ***gdbadmin1-1/+1