[DynInst_API:] [dyninst/dyninst] 5d2e0b: Truncate PTRACE_GETEVENTMSG exit status to int


Date: Fri, 03 Jun 2016 03:25:00 -0700
From: Bill Williams <wwilliam47@xxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 5d2e0b: Truncate PTRACE_GETEVENTMSG exit status to int
  Branch: refs/heads/VEX
  Home:   https://github.com/dyninst/dyninst
  Commit: 5d2e0b7c2ae6f447b7456440d9a184892ce143ee
      https://github.com/dyninst/dyninst/commit/5d2e0b7c2ae6f447b7456440d9a184892ce143ee
  Author: Josh Stone <jistone@xxxxxxxxxx>
  Date:   2016-05-31 (Tue, 31 May 2016)

  Changed paths:
    M proccontrol/src/linux.C

  Log Message:
  -----------
  Truncate PTRACE_GETEVENTMSG exit status to int

The sys/wait.h macros are expecting to operate on an int, and they have
some ugly pointer macros to deal with old BSD compatibility.  But we get
an unsigned long from PTRACE_GETEVENTMSG.  Normally this work out ok,
but on big-endian ppc64 those macros end up reading the int from the
most significant bits only, which are zero.

Cast the long down to a local int first, so WEXITSTATUS works properly.

Fixes #35.


  Commit: 1da0a1a9fed405ebfd90443db1d72c6d6f3a78ff
      https://github.com/dyninst/dyninst/commit/1da0a1a9fed405ebfd90443db1d72c6d6f3a78ff
  Author: Bill Williams <wwilliam47@xxxxxxxxx>
  Date:   2016-06-01 (Wed, 01 Jun 2016)

  Changed paths:
    M proccontrol/src/linux.C

  Log Message:
  -----------
  Merge pull request #69 from cuviper/wexitstatus-int

Truncate PTRACE_GETEVENTMSG exit status to int


  Commit: e09b7e8db7b04d4fd530088cad07a0b1a1b419ef
      https://github.com/dyninst/dyninst/commit/e09b7e8db7b04d4fd530088cad07a0b1a1b419ef
  Author: Josh Stone <jistone@xxxxxxxxxx>
  Date:   2016-06-01 (Wed, 01 Jun 2016)

  Changed paths:
    M proccontrol/src/process.C

  Log Message:
  -----------
  proccontrol: init int_thread's fakeSyscallExitBp members


  Commit: 2a2f4f4f4fe804e7db54c8a2f3e3dfa8d0ad7818
      https://github.com/dyninst/dyninst/commit/2a2f4f4f4fe804e7db54c8a2f3e3dfa8d0ad7818
  Author: Bill Williams <wwilliam47@xxxxxxxxx>
  Date:   2016-06-02 (Thu, 02 Jun 2016)

  Changed paths:
    M symtabAPI/CMakeLists.txt
    M symtabAPI/h/Symtab.h
    M symtabAPI/src/Object-elf.C
    R symtabAPI/src/emitElf-64.C
    R symtabAPI/src/emitElf-64.h
    A symtabAPI/src/emitElf.C
    A symtabAPI/src/emitElf.h

  Log Message:
  -----------
  Rename emitElf64 to emitElf and add it as a generic *nix file. (#73)


Compare: https://github.com/dyninst/dyninst/compare/6e3a1f910b95...2a2f4f4f4fe8
[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 5d2e0b: Truncate PTRACE_GETEVENTMSG exit status to int, Bill Williams <=