1. Feb 15, 2017
    • Tim Wiederhake's avatar
      Add missing ChangeLog entries. · 4e746bb6
      Tim Wiederhake authored
      This adds the missing ChangeLog entries for the "Python bindings" patch series.
      4e746bb6
    • GDB Administrator's avatar
      Automatic date update in version.in · 18690794
      GDB Administrator authored
      18690794
    • Jim Wilson's avatar
      Add self to aarch64 maintainers. Fix mla instruction. · 742e3a77
      Jim Wilson authored
      	sim/
      	* MAINTAINTERS (aarch64): Add myself.
      
      	sim/aarch64/
      	* simulator.c (do_vec_MLA): Rewrite switch body.
      
      	sim/testsuite/sim/aarch64/
      	* mla.s: New.
      742e3a77
    • Jim Wilson's avatar
      Fix bit/bif instructions. · bf25e9a0
      Jim Wilson authored
      	sim/aarch64/
      	* simulator.c (do_vec_bit): Change loop limits from 16 and 8 to 4 and
      	2.  Move test_false if inside loop.  Fix logic for computing result
      	stored to vd.
      
      	sim/testsuite/sim/aarch64
      	* bit.s: New.
      bf25e9a0
    • Jim Wilson's avatar
      Add ldn/stn single support, fix ldnr support. · e8f42b5e
      Jim Wilson authored
      	sim/aarch64/
      	* simulator.c: (LDn_STn_SINGLE_LANE_AND_SIZE): New.
      	(do_vec_LDn_single, do_vec_STn_single): New.
      	(do_vec_LDnR): Add and set new nregs var.  Replace switch on nregs with
      	loop over nregs using new var n.  Add n times size to address in loop.
      	Add n to vd in loop.
      	(do_vec_load_store): Add comment for instruction bit 24.  New var
      	single to hold instruction bit 24.  Add new code to use single.  Move
      	ldnr support inside single if statements.  Fix ldnr register counts
      	inside post if statement.  Change HALT_NYI calls to HALT_UNALLOC.
      
      	sim/testsuite/sim/aarch64/
      	* ldn_single.s: New.
      	* ldnr.s: New.
      	* stn_single.s: New.
      e8f42b5e
    • Tom Tromey's avatar
      PR python/13598 - add before_prompt event · 3f77c769
      Tom Tromey authored
      This adds an event that is emitted just before GDB presents a prompt
      to the user.  This provides Python code a way to react to whatever
      changes might have been made by the previous command.  For example, in
      my GUI I use this to track changes to the selected frame and reflect
      them in the UI.
      
      Built and regtested on x86-64 Fedora 23.
      
      gdb/ChangeLog
      2017-02-14  Tom Tromey  <tom@tromey.com>
      
      	PR python/13598:
      	* python/python.c (gdbpy_before_prompt_hook): Emit before_prompt
      	event.
      	* python/py-evts.c (gdbpy_initialize_py_events): Add
      	before_prompt registry.
      	* python/py-events.h (events_object) <before_prompt>: New field.
      
      gdb/doc/ChangeLog
      2017-02-14  Tom Tromey  <tom@tromey.com>
      
      	PR python/13598:
      	* python.texi (Events In Python): Document events.before_prompt.
      
      gdb/testsuite/ChangeLog
      2017-02-14  Tom Tromey  <tom@tromey.com>
      
      	PR python/13598:
      	* gdb.python/py-events.exp: Add before_prompt event tests.
      3f77c769
    • Andreas Arnez's avatar
      Big-endian targets: Fix implptrpiece.exp · 075beec0
      Andreas Arnez authored
      The test case implptrpiece.exp accesses the second byte of the short
      integer number 1 and expects it to be zero.  This is valid for
      little-endian targets, but fails on big-endian targets.
      
      This is fixed by distinguishing the expected value by endianness.
      
      gdb/testsuite/ChangeLog:
      
      	* gdb.dwarf2/implptrpiece.exp: Fix check for big-endian targets.
      075beec0
  2. Feb 14, 2017
    • Nick Clifton's avatar
      Fix invalid memory access displayiing contents of sections. · bc303e5d
      Nick Clifton authored
      	PR binutils/21159
      	* readelf.c (dump_section_as_strings): Reset the start address if
      	no decompression is perfromed.
      	(dump_section_as_bytes): Likewise.
      bc303e5d
    • Nick Clifton's avatar
      Fix an illegal memory access parsing corrupt STABD debug information. · 92134dc1
      Nick Clifton authored
      	PR binutils/21158
      	* rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
      	empty symbol name.
      92134dc1
    • Nick Clifton's avatar
      Fix handling of corrupt STABS enum type strings. · a2dea0b2
      Nick Clifton authored
      	PR binutils/21157
      	* stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
      	pairs.
      	(parse_number): Exit early if passed an empty string.
      a2dea0b2
    • Nick Clifton's avatar
      Fix illegal memory access problems with readelf processing corrupt RL78 binaries. · b32e566b
      Nick Clifton authored
      	PR binutils/21155
      	* readelf.c (IN_RANGE): New macro.  Tests for an address + offset
      	being within a given range.
      	(target_specific_reloc_handling): Use macro to test for underflow
      	as well as overflow of reloc offset.
      b32e566b
    • Alan Modra's avatar
      PowerPC register expression checks · 7e0de605
      Alan Modra authored
      This stops powerpc gas blithely accepting such nonsense as
      "addi %f4,%cr3,%r31".
      
      	PR 21118
      gas/
      	* NEWS: Mention powerpc register checks.
      	* config/tc-ppc.c (struct pd_reg): Make value a short.  Add flags.
      	(pre_defined_registers): Delete fpscr and pmr entries.  Set
      	register type in flags.
      	(cr_names): Set type in flags.
      	(reg_name_search): Return pointer to struct pd_reg rather than value.
      	(register_name): Adjust to suit.  Set X_md from flags.
      	(ppc_parse_name): Likewise.
      	(ppc_optimize_expr): New function.
      	(md_assemble): Verify expresion reg flags match operand.
      	* config/tc-ppc.h (md_optimize_expr): Define.
      	(ppc_optimize_expr): Declare.
      include/
      	* opcode/ppc.h (PPC_OPERAND_*): Reassign values, regs first.
      	(PPC_OPERAND_SPR, PPC_OPERAND_GQR): Define.
      opcodes/
      	* ppc-opc.c (powerpc_operands): Flag SPR, SPRG and TBR entries
      	with PPC_OPERAND_SPR.  Flag PSQ and PSQM with PPC_OPERAND_GQR.
      7e0de605
    • Alan Modra's avatar
      Fix powerpc testsuite source errors · 606a935e
      Alan Modra authored
      PR 21118 work exposed these errors in the testsuite.
      
      	* testsuite/gas/ppc/cell.s: Correct invalid registers.
      	* testsuite/gas/ppc/vle-simple-1.s: Likewise.
      	* testsuite/gas/ppc/vle-simple-2.s: Likewise.
      606a935e
    • Alan Modra's avatar
      Update ppc64_elf_gc_mark_dynamic_ref · e278ae05
      Alan Modra authored
      	* elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
      	--gc-keep-exported, and test versioned field of sym rather than
      	looking for @ in name.
      e278ae05
    • Tim Wiederhake's avatar
      Add documentation for new record Python bindings. · 0a0faf9f
      Tim Wiederhake authored
      
      
      Signed-off-by: default avatarTim Wiederhake <tim.wiederhake@intel.com>
      
      gdb/ChangeLog:
      
      	* NEWS: Add record Python bindings entry.
      
      gdb/doc/ChangeLog:
      
      	* python.texi (Recordings In Python): New section.
      
      Change-Id: Ibacb5930085bff36b0003fde30db9a8178cb280b
      0a0faf9f
    • Tim Wiederhake's avatar
      python: Add tests for record Python bindings · 714aa61c
      Tim Wiederhake authored
      
      
      Signed-off-by: default avatarTim Wiederhake <tim.wiederhake@intel.com>
      
      gdb/testsuite/ChangeLog:
      
              * gdb.python/py-record-btrace.c, gdb.python/py-record-btrace.exp,
      	gdb.python/py-record-full.c, gdb.python/py-record-full.exp: New file.
      
      Change-Id: Icd919b4e1d5642f5cbc097a6aede1416eba402e5
      714aa61c
    • Tim Wiederhake's avatar
      python: Implement btrace Python bindings for record history. · 75c0bdf4
      Tim Wiederhake authored
      
      
      This patch implements the gdb.Record Python object methods and fields for
      record target btrace.  Also, implement a stub for record target full.
      
      Signed-off-by: default avatarTim Wiederhake <tim.wiederhake@intel.com>
      
      gdb/ChangeLog:
      
      	* Makefile.in (SUBDIR_PYTHON_OBS): Add py-record-btrace.o,
      	py-record-full.o.
      	(SUBDIR_PYTHON_SRCS): Add py-record-btrace.c, py-record-full.c.
      	* python/py-record-btrace.c, python/py-record-btrace.h,
      	python/py-record-full.c, python/py-record-full.h: New file.
      	* python/py-record.c: Add include for py-record-btrace.h and
      	py-record-full.h.
      	(recpy_method, recpy_format, recpy_goto, recpy_replay_position,
      	recpy_instruction_history, recpy_function_call_history, recpy_begin,
      	recpy_end): Use functions from py-record-btrace.c and py-record-full.c.
      	* python/python-internal.h (PyInt_FromSsize_t, PyInt_AsSsize_t):
      	New definition.
      	(gdbpy_initialize_btrace): New export.
      	* python/python.c (_initialize_python): Add gdbpy_initialize_btrace.
      
      Change-Id: I8bd893672ffc7e619cc1386767897249e125973a
      75c0bdf4
    • Tim Wiederhake's avatar
      python: Create Python bindings for record history. · 4726b2d8
      Tim Wiederhake authored
      
      
      This patch adds three new functions to the gdb module in Python:
      	- start_recording
      	- stop_recording
      	- current_recording
      start_recording and current_recording return an object of the new type
      gdb.Record, which can be used to access the recorded data.
      
      Signed-off-by: default avatarTim Wiederhake <tim.wiederhake@intel.com>
      
      gdb/ChangeLog
      
      	* Makefile.in (SUBDIR_PYTHON_OBS): Add python/py-record.o.
      	(SUBDIR_PYTHON_SRCS): Add python/py-record.c.
      	* python/py-record.c: New file.
      	* python/python-internal.h (gdbpy_start_recording,
      	gdbpy_current_recording, gdpy_stop_recording,
      	gdbpy_initialize_record): New export.
      	* python/python.c (_initialize_python): Add gdbpy_initialize_record.
      	(python_GdbMethods): Add gdbpy_start_recording,
      	gdbpy_current_recording and gdbpy_stop_recording.
      
      Change-Id: I772aa9aa068621443f10a330b11dc7dc9a63face
      4726b2d8
    • Tim Wiederhake's avatar
      Add method to query current recording method to target_ops. · b158a20f
      Tim Wiederhake authored
      
      
      Signed-off-by: default avatarTim Wiederhake <tim.wiederhake@intel.com>
      
      gdb/ChangeLog
      
      	* record-btrace.c (record_btrace_record_method): New function.
      	(init_record_btrace_ops): Initialize to_record_method.
      	* record-full.c (record_full_record_method): New function.
      	(init_record_full_ops, init_record_full_core_ops): Add
      	record_full_record_method.
      	* record.h (enum record_method): New enum.
      	* target-debug.h (target_debug_print_enum_record_method: New define.
      	* target-delegates.c: Regenerate.
      	* target.c (target_record_method): New function.
      	* target.h: Include record.h.
      	(struct target_ops) <to_record_method>: New field.
      	(target_record_method): New export.
      
      Change-Id: I05daa70e4e08a19901e848c731bb7d60cd87cc5a
      b158a20f
    • Tim Wiederhake's avatar
      Add record_start and record_stop functions. · 45b196c5
      Tim Wiederhake authored
      
      
      Signed-off-by: default avatarTim Wiederhake <tim.wiederhake@intel.com>
      
      gdb/ChangeLog
      
      	* record.h (record_start, record_stop): New export.
      	* record.c (record_start, record_stop): New function.
      
      Change-Id: If235d4bde8ec61dab6dbd23e087430e66d2e91a7
      45b196c5
    • Tim Wiederhake's avatar
      btrace: Use binary search to find instruction. · fdd2bd92
      Tim Wiederhake authored
      
      
      Currently, btrace_find_insn_by_number will iterate over all function call
      segments to find the one that contains the needed instruction.  This linear
      search is too slow for the upcoming Python bindings that will use this
      function to access instructions.  This patch introduces a vector in struct
      btrace_thread_info that holds pointers to all recorded function segments and
      allows to use binary search.
      
      The proper solution is to turn the underlying tree into a vector of objects
      and use indices for access.  This requires more work.  A patch set is
      currently being worked on and will be published later.
      
      Signed-off-by: default avatarTim Wiederhake <tim.wiederhake@intel.com>
      
      gdb/ChangeLog:
      	* btrace.c (btrace_fetch): Copy function call segments pointer
      	into a vector.
      	(btrace_clear): Clear the vector.
      	(btrace_find_insn_by_number): Use binary search to find the correct
      	function call segment.
      	* btrace.h (brace_fun_p): New typedef.
      	(struct btrace_thread_info) <functions>: New field.
      
      Change-Id: I8a7f67e80bfe4ff62c4192f74a2153a70bf2a035
      fdd2bd92
    • Tim Wiederhake's avatar
      btrace: Export btrace_decode_error function. · 508352a9
      Tim Wiederhake authored
      
      
      Signed-off-by: default avatarTim Wiederhake <tim.wiederhake@intel.com>
      
      gdb/ChangeLog:
      
      	* record-btrace.c (btrace_ui_out_decode_error): Move most of it ...
      	* btrace.c (btrace_decode_error): ... here.  New function.
      	* btrace.h (btrace_decode_error): New export.
      
      Change-Id: I2b4b43a55dbfd9f526a540d2ad52a6708f31feba
      508352a9
    • Tim Wiederhake's avatar
      btrace: Count gaps as one instruction explicitly. · 69090cee
      Tim Wiederhake authored
      
      
      This gives all instructions, including gaps, a unique number.  Add a function
      to retrieve the error code if a btrace instruction iterator points to an
      invalid instruction.
      
      Signed-off-by: default avatarTim Wiederhake <tim.wiederhake@intel.com>
      
      gdb/ChangeLog:
      
      	* btrace.c (ftrace_call_num_insn, btrace_insn_get_error): New function.
      	(ftrace_new_function, btrace_insn_number, btrace_insn_cmp,
      	btrace_find_insn_by_number): Remove special case for gaps.
      	* btrace.h (btrace_insn_get_error): New export.
      	(btrace_insn_number, btrace_find_insn_by_number): Adjust comment.
      	* record-btrace.c (btrace_insn_history): Print number for gaps.
      	(record_btrace_info, record_btrace_goto): Handle gaps.
      
      Change-Id: I8eb0e48a95f4278522fea74ea13526bfe6898ecc
      69090cee
    • Markus Metzger's avatar
      btrace: preserve call stack on function switch · 4c2c7ac6
      Markus Metzger authored
      On 64-bit FC25, the _dl_runtime_resolve function uses a conditional branch to
      'call' a particular variant optimized for that system:
      
          (gdb) disas _dl_runtime_resolve_avx_opt
          Dump of assembler code for function _dl_runtime_resolve_avx_opt:
             0x00007ffff7deeb60 <+0>: push   %rax
             0x00007ffff7deeb61 <+1>: push   %rcx
             0x00007ffff7deeb62 <+2>: push   %rdx
             0x00007ffff7deeb63 <+3>: mov    $0x1,%ecx
             0x00007ffff7deeb68 <+8>: xgetbv
             0x00007ffff7deeb6b <+11>: mov    %eax,%r11d
             0x00007ffff7deeb6e <+14>: pop    %rdx
             0x00007ffff7deeb6f <+15>: pop    %rcx
             0x00007ffff7deeb70 <+16>: pop    %rax
             0x00007ffff7deeb71 <+17>: and    $0x4,%r11d
             0x00007ffff7deeb75 <+21>: bnd je 0x7ffff7def4a0 <_dl_runtime_resolve_sse_vex>
          End of assembler dump.
      
      When computing the function-level trace, btrace treats this as a switch from
      _dl_runtime_resolve_avx_opt to _dl_runtime_resolve_sse_vex.  We know that we
      switched functions but we can't really say in which caller/callee relationship
      those two functions are.
      
      In addition to preserving the indentaion level, also preserve the caller
      information.  This is a heuristic since we don't really know.  But at least in
      this case, this seems to be the right thing to do.
      
      This fixes a fail in gdb.btrace/rn-dl-bind.exp on 64-bit FC25.
      
      gdb/
      	* btrace.c (ftrace_new_switch): Preserve up link and flags.
      4c2c7ac6
    • GDB Administrator's avatar
      Automatic date update in version.in · 61697d01
      GDB Administrator authored
      61697d01
    • Palmer Dabbelt's avatar
      Don't use "_gp" on RISC-V, use "_global_pointer$" instead · 10ddfe62
      Palmer Dabbelt authored
      "_gp" could conflict with ABI-complient code.  While it's probably OK
      because MIPS uses this name, we figured it'd be good to clean this up
      before a release with RISC-V in it.
      
      ld/ChangeLog:
      
      2017-02-13  Palmer Dabbelt  <palmer@dabbelt.com>
      
              * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Change
              _gp to __global_pointer$.
      
      bfd/ChangeLog:
      
      2017-02-13  Palmer Dabbelt  <palmer@dabbelt.com>
      
              * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to
              __global_pointer$.
      10ddfe62
    • Nick Clifton's avatar
      Fix invalid memory access in the BFD library's DWARF parser. · d11135f5
      Nick Clifton authored
      	PR binutils/21151
      	* dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid
      	unit length field.
      d11135f5
    • Thomas Preud'homme's avatar
      [ARM] Allow immediate without prefix in unified syntax for VCMP · 3c6452ae
      Thomas Preud'homme authored
      2017-02-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
      
      	gas/
      	* config/tc-arm.c (parse_ifimm_zero): Make prefix optional in unified
      	syntax.
      	* testsuite/gas/arm/vcmp-noprefix-imm.d: New file.
      	* testsuite/gas/arm/vcmp-noprefix-imm.s: New file.
      3c6452ae
    • Nick Clifton's avatar
      Fix illegal memory access bug in nm when run on a corrupt binary. · c1221402
      Nick Clifton authored
      	PR binutils/21150
      	* nm.c (file_symbol): Add test of string length before testing
      	string characters.
      c1221402
  3. Feb 13, 2017
    • Nick Clifton's avatar
      Extend previous patch to cover uncompress_section_contents returning FALSE to other callers. · 1835f746
      Nick Clifton authored
      	PR binutils/21135
      	(dump_section_as_bytes, load_specific_debug_section): Likewise.
      1835f746
    • Nick Clifton's avatar
      Fix invalid read of section contents whilst processing a corrupt binary. · f055032e
      Nick Clifton authored
      	PR binutils/21135
      	* readelf.c (dump_section_as_bytes): Handle the case where
      	uncompress_section_contents returns false.
      f055032e
    • Nick Clifton's avatar
      Fix invalid memory access attempting to read the compression header of a... · ebdf1ebf
      Nick Clifton authored
      Fix invalid memory access attempting to read the compression header of a too-small compressed section.
      
      	PR binutils/21149
      	* readelf.c (get_compression_header): Add size parameter.  Check
      	size against sizeof compression header before attempting to
      	extract the header.
      	(process_section_headers): Pass size to get_compression_header.
      	(dump_section_as_strings): Likewise.
      	(dump_section_as_bytes): Likewise.
      	(load_specific_debug_section): Likewise.
      ebdf1ebf
    • Nick Clifton's avatar
      Fix check for buffer overflow when processing version information. · 4aeb00ad
      Nick Clifton authored
      	PR binutils/21148
      	* readelf.c (process_version_sections): Include size of auxillary
      	version information when checking for buffer overflow.
      4aeb00ad
    • Nick Clifton's avatar
      Fix access violation when reporting sections that could not be dumped. · 0ee3043f
      Nick Clifton authored
      	PR binutils/21147
      	* readelf.c (process_section_contents): Fix off by one error
      	reporting un-dumped sections.
      0ee3043f
    • Nick Clifton's avatar
      Fix read-after-free error in readelf when processing multiple, relocated... · f84ce13b
      Nick Clifton authored
      Fix read-after-free error in readelf when processing multiple, relocated sections in an MSP430 binary.
      
      	PR binutils/21139
      	* readelf.c (target_specific_reloc_handling): Add num_syms
      	parameter.  Check for symbol table overflow before accessing
      	symbol value.  If reloc pointer is NULL, discard all saved state.
      	(apply_relocations): Pass num_syms to target_specific_reloc_handling.
      	Call target_specific_reloc_handling with a NULL reloc pointer
      	after processing all of the relocs.
      f84ce13b
    • Luis Machado's avatar
      Improve load command's help text · 5cf30ebf
      Luis Machado authored
      This fairly obvious patch adds usage text to the load command's help text.
      
      Originally it did not have usage and mentioned things like FILE and OFFSET
      without explaining how those should be passed in the command.
      
      gdb/ChangeLog:
      
      2017-02-13  Luis Machado  <lgustavo@codesourcery.com>
      
      	* symfile (_initialize_symfile): Add usage text to the load command's
      	help text.
      
      gdb/doc/ChangeLog:
      
      2017-02-13  Luis Machado  <lgustavo@codesourcery.com>
      
      	* gdb.texinfo (Target Commands): Document the optional offset
      	argument for the load command.
      5cf30ebf
    • Luis Machado's avatar
      Fix gdb.linespec/explicit.exp · bf5f525c
      Luis Machado authored
      This patch addresses timeout failures i noticed while testing aarch64-elf.
      
      FAIL: gdb.linespec/explicit.exp: complete unique function name (timeout)
      FAIL: gdb.linespec/explicit.exp: complete non-unique function name (timeout)
      FAIL: gdb.linespec/explicit.exp: complete non-existant function name (timeout)
      FAIL: gdb.linespec/explicit.exp: complete unique file name (timeout)
      FAIL: gdb.linespec/explicit.exp: complete non-unique file name (timeout)
      
      The timeouts were caused by an attempt to match a bell character (x07) that
      doesn't show up on my particular test setup.
      
      The bell character is output whenever one tries to complete a pattern and there
      are multiple possible matches. When there is only one possible match, GDB will
      complete the input pattern without outputting the bell character.
      
      The reason for the discrepancy in this test's behavior is due to the use of
      "main" for a unique name test.
      
      On glibc-based systems, GDB may notice the "main_arena" symbol, which is
      a data global part of glibc's malloc implementation. Therefore a bell character
      will be output because we have a couple possible completion matches.
      
      GDB should not be outputting such a data symbol as a possible match, but this
      problem may/will be addressed in a future change and is besides the point of
      this particular change.
      
      On systems that are not based on glibc, GDB will not see any other possible
      matches for completing "main", so there will be no bell characters.
      
      The use of main is a bit fragile though, so the patch adds a new local function
      with a name that has a greater chance of being unique and adjusts the test to
      iuse it.
      
      I've also added the regular expression switch (-re) to all the
      gdb_test_multiple calls that were missing it. Hopefully this will reduce the
      chances of someone wasting time trying to match a regular expression (a much
      more common use case) when, in reality, the pattern is supposed to be matched
      literally.
      
      gdb/testsuite/ChangeLog
      
      2017-02-13  Luis Machado  <lgustavo@codesourcery.com>
      
      	* gdb.linespec/explicit.c (my_unique_function_name): New function.
      	(main): Call my_unique_function_name.
      	* gdb.linespec/explicit.exp: Use my_unique_function_name to test
      	completion of patterns with a single match.
      	Add missing -re switches to gdb_test_multiple calls.
      bf5f525c
    • Luis Machado's avatar
      Make gdb.arch/i386-biarch-core.exp more robust · 13a66184
      Luis Machado authored
      This test attempts to load a x86 core file no matter what target
      architectures the tested GDB supports. If GDB doesn't know how to handle
      a i386 target, it is very likely the core file will not be recognized.
      
      In this case we should still attempt to load a core file to make sure GDB
      doesn't crash or throws an internal error.  But we should not proceed to
      try to read memory unconditionally.
      
      This patch makes the test check for proper i386 arch support in GDB and bails
      out if i386 is not supported and the core file format is not recognized.
      
      This addresses the spurious aarch64-elf failures i'm seeing for this test.
      
      gdb/testsuite/ChangeLog:
      
      2017-02-13  Luis Machado  <lgustavo@codesourcery.com>
      
      	* gdb.arch/i386-biarch-core.exp: Check for i386 arch support and
      	return if core file is not recognized.
      13a66184
    • Nick Clifton's avatar
      Fix readelf writing to illegal addresses whilst processing corrupt input files... · 03f7786e
      Nick Clifton authored
      Fix readelf writing to illegal addresses whilst processing corrupt input files containing symbol-difference relocations.
      
      	PR binutils/21137
      	* readelf.c (target_specific_reloc_handling): Add end parameter.
      	Check for buffer overflow before writing relocated values.
      	(apply_relocations): Pass end to target_specific_reloc_handling.
      03f7786e
    • Mike Frysinger's avatar