and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here

  1. 06 Feb, 2014 3 commits
  2. 05 Feb, 2014 3 commits
    • Yao Qi's avatar
      Create inferior for ctf target. · cf419c94
      Yao Qi authored
      This patch creates inferior when GDB opens a ctf trace data, to be
      consistent with tfile target.  A test case is added to test for
      live target, tfile and ctf target.
      
      gdb:
      
      2014-02-05  Yao Qi  <yao@codesourcery.com>
      
      	* ctf.c: Include "inferior.h" and "gdbthread.h".
      	(CTF_PID): A new macro.
      	(ctf_open): Call inferior_appeared and add_thread_silent.
      	(ctf_close): Call exit_inferior_silent and set inferior_ptid.
      	(ctf_thread_alive): New function.
      	(init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
      
      gdb/testsuite:
      
      2014-02-05  Yao Qi  <yao@codesourcery.com>
      
      	* gdb.trace/report.exp (use_collected_data): Test the output
      	of "info threads" and "info inferiors".
      cf419c94
    • Yao Qi's avatar
      Create inferior for tfile target · fd7fe75f
      Yao Qi authored
      When a trace file is loaded in Eclipse, it is expected to see thread
      and process (=thread-group-started and =thread-created).  Create an
      inferior and add a thread for this purpose.
      
      This patch just reverts my previous patch.
      
      gdb/testsuite:
      
      2014-02-05  Yao Qi  <yao@codesourcery.com>
      
      	Revert this patch:
      
      	2013-05-24  Yao Qi  <yao@codesourcery.com>
      
      	* gdb.trace/tfile.exp: Test inferior and thread.
      
      gdb:
      
      2014-02-05  Yao Qi  <yao@codesourcery.com>
      
      	Revert this patch:
      
      	2013-05-24  Yao Qi  <yao@codesourcery.com>
      
      	* tracepoint.c (TFILE_PID): Remove.
      	(tfile_open): Don't add thread and inferior.
      	(tfile_close): Don't set 'inferior_ptid'.  Don't call
      	exit_inferior_silent.
      	(tfile_thread_alive): Remove.
      	(init_tfile_ops): Don't set field 'to_thread_alive' of
      	tfile_ops.
      fd7fe75f
    • GDB Administrator's avatar
      Automatic date update in version.in · 1dc7c3cf
      GDB Administrator authored
      1dc7c3cf
  3. 04 Feb, 2014 1 commit
  4. 03 Feb, 2014 1 commit
  5. 02 Feb, 2014 2 commits
    • Michael Zolotukhin's avatar
      Fix shift for AVX512F gather/scatter instructions · 53b7665d
      Michael Zolotukhin authored
      opcodes/
      
      2014-01-30  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
      	    Jan Beulich  <jbeulich@suse.com>
      
      	PR binutils/16490
      	* i386-dis.c (OP_E_memory): Fix shift computation for
      	vex_vsib_q_w_dq_mode.
      
      gas/testsuite/
      
      2014-01-30  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
      	    Jan Beulich  <jbeulich@suse.com>
      
      	PR binutils/16490
      	* gas/i386/avx512f.d: Fix test output.
      	* gas/i386/avx512f-intel.d: Likewise.
      	* gas/i386/x86-64-avx512f.d: Likewise.
      	* gas/i386/x86-64-avx512f-intel.d: Likewise.
      
      Conflicts:
      	gas/testsuite/ChangeLog
      53b7665d
    • GDB Administrator's avatar
      Automatic date update in version.in · 2d221943
      GDB Administrator authored
      2d221943
  6. 01 Feb, 2014 1 commit
  7. 31 Jan, 2014 1 commit
  8. 30 Jan, 2014 1 commit
  9. 29 Jan, 2014 1 commit
  10. 28 Jan, 2014 3 commits
  11. 27 Jan, 2014 1 commit
  12. 26 Jan, 2014 1 commit
  13. 25 Jan, 2014 1 commit
  14. 24 Jan, 2014 1 commit
  15. 23 Jan, 2014 4 commits
    • Tom Tromey's avatar
      avoid python exception in FrameDecorator.py · 56d4c712
      Tom Tromey authored
      This fixes a bug in FrameDecorator.py.
      
      FrameVars seems to assume that Frame.block can return None if there is
      no block.  However, it actually throws an exception.
      
      I saw this bug while developing a frame filter, but unfortunately I
      don't know how to reproduce it.  It seems to me that the SAL tests in
      _is_limited_frame should exclude the bad cases; and in my attempts to
      write a test they do.
      
      Nevertheless I think the fix is reasonably obvious and ought to go in.
      
      2014-01-23  Tom Tromey  <tromey@redhat.com>
      
      	PR python/16485:
      	* python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
      	Handle exception from frame.block.
      	(FrameVars.fetch_frame_locals): Likewise.
      56d4c712
    • Tom Tromey's avatar
      fix erroneous error-handling in frame filter code · 4c9a21f6
      Tom Tromey authored
      This fixes PR python/16487.
      
      The bug here is that the function-name-handling code in py_print_frame
      had a small logic error (really a misplaced closing brace).  This
      error could lead to a Py_DECREF(NULL), which crashes.
      
      This patch fixes the bug in the obvious way.
      
      Built and regtested on x86-64 Fedora 18.  New test case included.
      
      2014-01-23  Tom Tromey  <tromey@redhat.com>
      
      	PR python/16487:
      	* python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
      	on a NULL pointer.  Move "goto error" to correct place.
      
      2014-01-23  Tom Tromey  <tromey@redhat.com>
      
      	PR python/16487:
      	* gdb.python/py-framefilter.exp: Add test using "Error" filter.
      	* gdb.python/py-framefilter.py (ErrorInName, ErrorFilter): New
      	classes.
      4c9a21f6
    • Tom Tromey's avatar
      fix crash in frame filters · fc447514
      Tom Tromey authored
      apply_frame_filter calls ensure_python_env before computing the
      gdbarch to use.  This means that python_gdbarch can be NULL while in
      Python code, and if a frame filter depends on this somehow (easy to
      do), gdb will crash.
      
      The fix is to compute the gdbarch first.
      
      Built and regtested on x86-64 Fedora 18.
      New test case included.
      
      2014-01-23  Tom Tromey  <tromey@redhat.com>
      
      	PR python/16491:
      	* python/py-framefilter.c (apply_frame_filter): Call
      	ensure_python_env after computing gdbarch.
      
      2014-01-23  Tom Tromey  <tromey@redhat.com>
      
      	PR python/16491:
      	* gdb.python/py-framefilter.py (Reverse_Function.function): Read a
      	string from an inferior frame.
      	* gdb.python/py-framefilter-mi.exp: Update.
      fc447514
    • GDB Administrator's avatar
      Automatic date update in version.in · 4492782b
      GDB Administrator authored
      4492782b
  16. 22 Jan, 2014 4 commits
    • Baruch Siach's avatar
      gdb: xtensa: fix on 64-bit hosts · d0b7626a
      Baruch Siach authored
      On 64-bit hosts unsigned long is 64 bit.  Use uint32_t instead.
      
      gdb/
      2014-01-22  Baruch Siach  <baruch@tkos.co.il>
      
      	* xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
      d0b7626a
    • Pedro Alves's avatar
      xtensa-config.c: missing defs.h include. · f45cb9dd
      Pedro Alves authored
      All .c files must start by including defs.h.
      
      2014-01-22  Pedro Alves  <palves@redhat.com>
      
      	* xtensa-config.c: Include defs.h.
      f45cb9dd
    • Baruch Siach's avatar
      gdb: xtensa: fix linux ptrace includes · 8f0e6a87
      Baruch Siach authored
      Currently, xtensa code using the Linux ptrace interface only include
      sys/ptrace.h.  This file comes from the C library (glibc and uClibc,
      at least), and includes a declaration of the ptrace() functions, along
      with some cross architecture constants that are mostly copied from the
      file located at include/uapi/linux/ptrace.h in recent Linux kernels.
      
      For xtensa specific constants like PTRACE_GETXTREGS and
      PTRACE_SETXTREGS the asm/ptrace.h include from the Linux kernel UAPI
      is needed.  The code in gdbserver xtensa specific part doesn't call
      ptrace() directly, so we can remove the unneeded sys/ptrace.h include.
      The gdb xtensa specific code needs both headers, since it calls
      ptrace().
      
      gdb/
      	* xtensa-linux-nat.c: Include asm/ptrace.h.
      
      gdb/gdbserver/
      	* linux-xtensa-low.c: Include asm/ptrace.h instead of
      	sys/ptrace.h.
      8f0e6a87
    • GDB Administrator's avatar
      Automatic date update in version.in · 2e782c45
      GDB Administrator authored
      2e782c45
  17. 21 Jan, 2014 2 commits
    • Roland McGrath's avatar
      gdb: Support install-strip target · d066ae49
      Roland McGrath authored
      gdb/
      	* configure.ac: Call AM_PROG_INSTALL_STRIP.
      	* configure: Regenerate.
      	* aclocal.m4: Regenerate.
      	* Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
      	New substituted	variables.
      	(install-strip): New target.
      	(INSTALL_SCRIPT): New substituted variable.
      	(FLAGS_TO_PASS): Add it.
      	(install-only): Use $(INSTALL_SCRIPT) rather than
      	$(INSTALL_PROGRAM) for gcore.
      
      (cherry picked from commit 4869db5e)
      d066ae49
    • GDB Administrator's avatar
      Automatic date update in version.in · 0d8628cf
      GDB Administrator authored
      0d8628cf
  18. 20 Jan, 2014 1 commit
  19. 19 Jan, 2014 1 commit
  20. 18 Jan, 2014 1 commit
  21. 17 Jan, 2014 1 commit
  22. 16 Jan, 2014 3 commits
    • Doug Evans's avatar
      25373078
    • Pedro Alves's avatar
      Fix go32-nat.c build fallout from to_detach constification. · deddf268
      Pedro Alves authored
      The recent constification of to_detach missed updating the forward
      declaration of go32_detach, breaking the build:
      
       ../../src/gdb/go32-nat.c:387:1: error: conflicting types for 'go32_detach'
       ../../src/gdb/go32-nat.c:240:13: note: previous declaration of 'go32_detach' was here
      
      go32_detach is actually defined before it's ever used, making the
      forward declaration is unnecessary.  So we can just remove it instead
      of updating it.  While at it, remove all others in the same situation.
      Tested by building a djgpp gdb.
      
      gdb/
      2014-01-16  Pedro Alves  <palves@redhat.com>
      
      	* go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
      	(go32_resume, go32_fetch_registers, store_register)
      	(go32_store_registers, go32_prepare_to_store)
      	(go32_xfer_memory, go32_files_info, go32_kill_inferior)
      	(go32_create_inferior, go32_can_run, go32_terminal_init)
      	(go32_terminal_inferior, go32_terminal_ours): Delete forward
      	declarations.
      deddf268
    • GDB Administrator's avatar
      Automatic date update in version.in · c17f3998
      GDB Administrator authored
      c17f3998
  23. 15 Jan, 2014 2 commits