Skip to content
Snippets Groups Projects
  1. Mar 03, 2016
  2. Mar 02, 2016
  3. Mar 01, 2016
    • H.J. Lu's avatar
      Update PR ld/12365 test for GCC 6 · ef621b15
      H.J. Lu authored
      PR ld/12365 test is to verify that linker catches the reference to
      undefined symbol error caused by a GCC bug.  Since the GCC bug has
      been fixed in GCC 6, update the test to verify that there is no
      reference to undefined symbol in executable
      
      	* testsuite/ld-plugin/lto.exp: Update PR ld/12365 test for GCC 6.
      ef621b15
    • Pedro Alves's avatar
      Fix gdb.trace/ftrace-lock.c compilation · 86e501af
      Pedro Alves authored
      Fixes, on F23:
      
       .../src/gdb/testsuite/gdb.trace/ftrace-lock.c: In function 'gdb_agent_gdb_collect':
       .../src/gdb/testsuite/gdb.trace/ftrace-lock.c:50:3: warning: implicit declaration of function 'sleep' [-Wimplicit-function-declaration]
          sleep (1);
          ^
      
      gdb/testsuite/ChangeLog:
      2016-03-01  Pedro Alves  <palves@redhat.com>
      
      	* gdb.trace/ftrace-lock.c: Include <unistd.h>.
      86e501af
    • Pedro Alves's avatar
      Fix gdb.threads/watchpoint-fork*.c compilation · 1e903e32
      Pedro Alves authored
      This testcase currently fails to compile on Fedora 23:
      
       .../src/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c: In function 'start':
       .../src/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c:70:11: warning: implicit declaration of function 'pthread_yield' [-Wimplicit-function-declaration]
      	i = pthread_yield ();
      	    ^
       .../src/gdb/testsuite/gdb.threads/watchpoint-fork-child.c: In function 'forkoff':
       .../src/gdb/testsuite/gdb.threads/watchpoint-fork-child.c:114:8: warning: implicit declaration of function 'pthread_yield' [-Wimplicit-function-declaratio
       n]
           i = pthread_yield ();
      	 ^
       /tmp/ccUkNIsI.o: In function `start':
       .../src/gdb/testsuite/gdb.threads/watchpoint-fork-mt.c:70: undefined reference to `pthread_yield'
       (...)
       collect2: error: ld returned 1 exit status
      
       UNSUPPORTED: gdb.threads/watchpoint-fork.exp: child: multithreaded: Couldn't compile watchpoint-fork-child.c: unrecognized error
       UNTESTED: gdb.threads/watchpoint-fork.exp: child: multithreaded: watchpoint-fork.exp
       testcase .../src/gdb/testsuite/gdb.threads/watchpoint-fork.exp completed i
      
      The glibc manual says, on _GNU_SOURCE:
      
       "You should define these macros by using ‘#define’ preprocessor
       directives at the top of your source code files. These directives must
       come before any #include of a system header file."
      
      I instead put it in the header all the .c files of the testcase must
      include anyway.
      
      gdb/testsuite/ChangeLog:
      2016-03-01  Pedro Alves  <palves@redhat.com>
      
      	* gdb.threads/watchpoint-fork-child.c: Include "watchpoint-fork.h"
      	before anything else.
      	* gdb.threads/watchpoint-fork-mt.c: Likewise.  Don't define
      	_GNU_SOURCE here.
      	* gdb.threads/watchpoint-fork-st.c: Include "watchpoint-fork.h"
      	before anything else.
      	* gdb.threads/watchpoint-fork.h: Define _GNU_SOURCE.
      1e903e32
    • Pedro Alves's avatar
      Fix gdb.base/catch-fork-kill.c compilation · 6ccb54e2
      Pedro Alves authored
      Fixes:
      
       Running .../src/gdb/testsuite/gdb.base/catch-fork-kill.exp ...
       gdb compile failed, .../src/gdb/testsuite/gdb.base/catch-fork-kill.c: In function 'main':
       .../src/gdb/testsuite/gdb.base/catch-fork-kill.c:81:4: warning: implicit declaration of function 'wait' [-Wimplicit-function-declaration]
           wait (NULL);
           ^
      
      gdb/testsuite/ChangeLog:
      2016-03-01  Pedro Alves  <palves@redhat.com>
      
      	* gdb.base/catch-fork-kill.c: Include <sys/wait.h>.
      6ccb54e2
    • H.J. Lu's avatar
      Skip ld-elf/pr19162.d for arc target · 2955a517
      H.J. Lu authored
      	* testsuite/ld-elf/pr19162.d: Skip arc target.
      2955a517
    • Yao Qi's avatar
      Fix output path for arm-disp-step.exp · 30ca9da1
      Yao Qi authored
      This patch fixes the following error,
      
      ERROR: (/scratch/yao/gdb/build-git/arm-linux-gnueabihf/gdb/testsuite/outputs/gdb.arch/arm-disp-step/arm-disp-step) No such file or directory
      FAIL: gdb.arch/arm-disp-step.exp: Can't run to main
      
      gdb/testsuite:
      
      2016-03-01  Yao Qi  <yao.qi@linaro.org>
      
      	* gdb.arch/arm-disp-step.exp: Use standard_testfile and
      	prepare_for_testing.
      30ca9da1
    • Yao Qi's avatar
      Compile gdb.arch/arm-neon.c with "quiet" · dc856b38
      Yao Qi authored
      When we compile gdb.arch/arm-neon.c with options that don't enable NEON,
      there are many error/warnings emitted into gdb.sum, which is annoying.
      This patch fixes it by passing quiet to prepare_for_testing.
      
      gdb/testsuite:
      
      2016-03-01  Yao Qi  <yao.qi@linaro.org>
      
      	* gdb.arch/arm-neon.exp: Pass quiet to prepare_for_testing.
      dc856b38
    • H.J. Lu's avatar
      Speedup ELF orphan placement for relocatable link · 077fcd6a
      H.J. Lu authored
      Since there is no need to place output sections in specific order for
      relocatable link, we can skip merging flags of other input sections.
      
      	PR ld/19739
      	* ld/emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
      	merge flags of other input sections for relocatable link.
      077fcd6a
    • Andreas Arnez's avatar
      S390: Fix output path for s390-tdbregs test case · 4a932159
      Andreas Arnez authored
      Since test artifacts are always organized in a directory hierarchy, the
      s390-tdbregs test case is not executed correctly any more.  This is
      because it uses an obsolete way of constructing the executable's path.
      
      This change invokes prepare_for_testing instead.
      
      gdb/testsuite/ChangeLog:
      
      	* gdb.arch/s390-tdbregs.exp: Use prepare_for_testing instead of
      	manually constructing the output path.
      4a932159
    • Andreas Arnez's avatar
      S390: Fix internal error with stackless inferior · f2489477
      Andreas Arnez authored
      This fixes a GDB internal error that may occur when the inferior has no
      valid stack pointer in r15.
      
      gdb/testsuite/ChangeLog:
      
      	* gdb.arch/s390-stackless.S: New.
      	* gdb.arch/s390-stackless.exp: New.
      
      gdb/ChangeLog:
      
      	* s390-linux-tdep.c (s390_backchain_frame_unwind_cache): Avoid
      	exception when attempting to access the inferior's backchain.
      f2489477
    • Nick Clifton's avatar
      Fix typo in print_insn_rl78_common function. · 020efce5
      Nick Clifton authored
      	PR target/19747
      	* rl78-dis.c (print_insn_rl78_common): Fix typo.
      020efce5
    • GDB Administrator's avatar
      Automatic date update in version.in · efd5b507
      GDB Administrator authored
      efd5b507
  4. Feb 29, 2016
    • H.J. Lu's avatar
      Add a testcase for PR ld/19162 · 7f50ebc1
      H.J. Lu authored
      	PR ld/19162
      	* testsuite/ld-elf/pr19162.d: New file.
      	* testsuite/ld-elf/pr19162a.s: Likwise.
      	* testsuite/ld-elf/pr19162b.s: Likwise.
      7f50ebc1
    • Yao Qi's avatar
      aarch64-linux process record: more syscalls · d5219069
      Yao Qi authored
      The last patch supports several syscalls in linux-record.c, so now
      GDB aarch64-linux backend can return these canonicalized syscall numbers
      per aarch64 syscall number.
      
      This patch fixes the following fails,
      
      Process record and replay target doesn't support syscall number 59^M
      Process record: failed to record execution log.^M
      ^M
      Program stopped.^M
      0x00000020000eab28 in pipe () from /lib/aarch64-linux-gnu/libc.so.6^M
      (gdb) FAIL: gdb.reverse/pipe-reverse.exp: continue to breakpoint: marker2
      
      Process record and replay target doesn't support syscall number 59^M
      Process record: failed to record execution log.^M
      ^M
      Program stopped.^M
      0x00000020000eab28 in pipe () from /lib/aarch64-linux-gnu/libc.so.6^M
      (gdb) FAIL: gdb.reverse/readv-reverse.exp: continue to breakpoint: marker2
      
      gdb:
      
      2016-02-29  Yao Qi  <yao.qi@linaro.org>
      
      	* aarch64-linux-tdep.c (aarch64_canonicalize_syscall): Support
      	eventfd2, eventfd2, dup3, inotify_init1, fallocate and pipe2.
      	Return gdb_sys_epoll_create1 instead of gdb_sys_epoll_create
      	for aarch64_sys_epoll_create1.
      d5219069
    • Yao Qi's avatar
      Support more syscalls in linux-record: pipe2 epoll_create1 eventfd2 fallocate... · 253b4d3a
      Yao Qi authored
      Support more syscalls in linux-record: pipe2 epoll_create1 eventfd2 fallocate dup3 and inotify_init1
      
      This patch adds more syscalls in linux-record.
      
      gdb:
      
      2016-02-29  Yao Qi  <yao.qi@linaro.org>
      
      	* linux-record.h (enum gdb_syscall) <gdb_sys_fallocate>: New.
      	<gdb_sys_eventfd2, gdb_sys_epoll_create1, gdb_sys_dup3>: New.
      	<gdb_sys_pipe2, gdb_sys_inotify_init1>: New.
      	* linux-record.c (record_linux_system_call): Handle them.
      253b4d3a
    • Claudiu Zissulescu's avatar
      [ARC] Local symbols relocation cleanup · 841fdfcd
      Claudiu Zissulescu authored
      bfd/
      2016-02-29  Cupertino Miranda  <cmiranda@synopsys.com>
      
      	* elf32-arc.c (elf_arc_relocate_section): Added rules to fix the
      	relocation addend when sections get merged.
      
      gas/
      2016-02-29  Cupertino Miranda  <cmiranda@synopsys.com>
      	    Claudiu Zissulescu  <Claudiu.Zissulescu@synopsys.com>
      
              * config/tc-arc.c (arc_extra_reloc): Change size to 0.
              (tc_arc_fix_adjustable): Changed default return value to 1.
              * testsuite/gas/arc/j.d: Updated expected symbol
              * testsuite/gas/arc/jl.d: Likewise
              * testsuite/gas/arc/relax-avoid1.d: Likewise
              * testsuite/gas/arc/st.d: Likewise
      
      ld/
      2016-02-29 Cupertino Miranda  <cmiranda@synopsys.com>
      
      	* testsuite/ld-elf/merge.d: Removed xfail for ARC.
      	* testsuite/ld-elf/merge2.d: Likewise.
      	* testsuite/ld-elf/merge3.d: Likewise.
      841fdfcd
    • Claudiu Zissulescu's avatar
      [ARC] General fixes. · 7e458899
      Claudiu Zissulescu authored
      bfd/
      2016-02-29  Cupertino Miranda <Cupertino.Miranda@synopsys.com>
      
      	* elf32-arc.c (arc_elf_final_write_processing): Add condition to
      	the flag change.
              (elf_arc_relocate_section): Fixes and conditions to support PIE.
      	Assert for code sections dynamic relocs.
      
      gas/
      2016-02-29  Claudiu Zissulescu  <Claudiu.Zissulescu@synopsys.com>
      
      	* config/tc-arc.c: Enable code density instructions for ARC EM.
      
      ld/
      2016-02-29  Cupertino Miranda  <Cupertino.Miranda@synopsys.com>
      
      	* scripttempl/arclinux.sc: Force .tdata and .tbss to always be
      	generated.
      7e458899
    • GDB Administrator's avatar
      Automatic date update in version.in · 63aef214
      GDB Administrator authored
      63aef214
  5. Feb 28, 2016
    • Iain Buclaw's avatar
      Don't recursively look for a symbol in all imports of imported modules. · 38899f16
      Iain Buclaw authored
      Given two or more modules that import each other's scope, the current symbol
      lookup routines would go round in circles looking through each import from
      each module, possibly checking the same module twice or more until all possible
      paths are marked as "searched".
      
      Given enough modules, this causes an exponential slowdown in time taken to find
      symbols that do exist, and infinite recursion when they don't.
      
      gdb/ChangeLog:
      	* d-namespace.c (d_lookup_symbol_imports): Avoid recursive lookups from
      	cyclic imports.
      
      gdb/testsuite/ChangeLog:
      	* gdb.dlang/circular.c: New file.
      	* gdb.dlang/circular.exp: New file.
      38899f16
    • GDB Administrator's avatar
      Automatic date update in version.in · e919aa9a
      GDB Administrator authored
      e919aa9a
  6. Feb 27, 2016
  7. Feb 26, 2016
    • Keith Seitz's avatar
      Fix CXX invalid cast from void *. · 1ed0c2a4
      Keith Seitz authored
      This is an obvious patch to fix the following build error seen with
      --enable-build-with-cxx:
      
      ../../src/gdb/rs6000-tdep.c: In function ‘rs6000_frame_cache* rs6000_frame_cache(frame_info*, void**)’:
      ../../src/gdb/rs6000-tdep.c:3242:15: error: invalid conversion from ‘void*’ to ‘rs6000_frame_cache*’ [-fpermissive]
             return (*this_cache);
                    ~^~~~~~~~~~~~
      
      gdb/ChangeLog
      
      	* rs6000-tdep.c (rs6000_frame_cache): Explicitly cast return result
      	to avoid invalid conversion from void *.
      1ed0c2a4
Loading