From patchwork Sun Feb 17 10:14:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: pkill9 X-Patchwork-Id: 1108 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 105FF16C4A; Sun, 17 Feb 2019 10:15:13 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID,UNPARSEABLE_RELAY,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 9855916BDD for ; Sun, 17 Feb 2019 10:15:12 +0000 (GMT) Received: from localhost ([127.0.0.1]:38931 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvJTc-00064i-31 for patchwork@mira.cbaines.net; Sun, 17 Feb 2019 05:15:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvJTT-00064I-Bb for guix-patches@gnu.org; Sun, 17 Feb 2019 05:15:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvJTS-0001ar-Cb for guix-patches@gnu.org; Sun, 17 Feb 2019 05:15:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51455) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gvJTS-0001af-7r for guix-patches@gnu.org; Sun, 17 Feb 2019 05:15:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gvJTR-00024i-Vv for guix-patches@gnu.org; Sun, 17 Feb 2019 05:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34512] Add scanmem Resent-From: Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 17 Feb 2019 10:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34512 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 34512@debbugs.gnu.org X-Debbugs-Original-To: "guix-patches" Received: via spool by submit@debbugs.gnu.org id=B.15503984877935 (code B ref -1); Sun, 17 Feb 2019 10:15:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Feb 2019 10:14:47 +0000 Received: from localhost ([127.0.0.1]:50736 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvJTC-00023v-Nc for submit@debbugs.gnu.org; Sun, 17 Feb 2019 05:14:47 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gvJTA-00023b-8s for submit@debbugs.gnu.org; Sun, 17 Feb 2019 05:14:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:44735) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gvJT4-0001NR-Pr for submit@debbugs.gnu.org; Sun, 17 Feb 2019 05:14:39 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvJT3-00063S-KF for guix-patches@gnu.org; Sun, 17 Feb 2019 05:14:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvJT1-0001Lz-HL for guix-patches@gnu.org; Sun, 17 Feb 2019 05:14:37 -0500 Received: from aibo.runbox.com ([91.220.196.211]:54800) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gvJSv-0001Js-5U for guix-patches@gnu.org; Sun, 17 Feb 2019 05:14:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=rbselector1; h=Message-Id:Content-Type:Date:Subject:To:From:MIME-Version; bh=xHEqmrZCXZFxPvwDcIJG5KwUD9d2B/gTPp3H9kqy48o=; b=XO3v56SebvhWPf5ocLtzSkU55 9JB4MK/JFWWiwAizCpM+tdFNu0NGB3MrcbrshGZFOdebU7QNbrjXaLIFKW+iyZg8nkUOQ4i3T+PG2 EeUXB7+gXY4qPPfR5DPtV9Use8QdnD/HT8PDhNf0IdrpQirEgk3nhLGQQEt+DolZJu8mED2oFelBV N2jdxPY0M70VKL7KZ+cBy307Po/DwNGlDTvbf7K2oJS7CEgOjILqVHeM6EBA6awEL2kpDNc+uKrNE yoXDzZ2PJVHXBv6HQ0rlTUugSsSKw32h7bsq7r2qzxnfFI5vBGGqCuYsROmq+GTc0hQ98zF/8TnJk Bz17JiBgA==; Received: from [10.9.9.127] (helo=rmmprod05.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1gvJSt-0000Hy-7B for guix-patches@gnu.org; Sun, 17 Feb 2019 11:14:27 +0100 Received: from mail by rmmprod05.runbox with local (Exim 4.86_2) (envelope-from ) id 1gvJSt-0003Yh-6H for guix-patches@gnu.org; Sun, 17 Feb 2019 11:14:27 +0100 MIME-Version: 1.0 Received: from [Authenticated user (850733)] by runbox.com with http (RMM6); for ; Sun, 17 Feb 2019 10:14:27 GMT From: Date: Sun, 17 Feb 2019 10:14:27 +0000 (GMT) X-Mailer: RMM6 Message-Id: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Scanmem is a memory scanner that allows you to find the memory address of a variable in a program by scanning the memory multiple times and seeing what has change or stayed the same since the last scan. It lets you change the variable in that memory address as well. https://github.com/scanmem/scanmem From 01a9c43ecaee76d39e579d713b82765abe95f719 Mon Sep 17 00:00:00 2001 From: Pkill -9 Date: Sun, 17 Feb 2019 10:09:52 +0000 Subject: [PATCH] gnu: Add scanmem. * gnu/packages/debug.scm (scanmem): New variable. --- gnu/packages/debug.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/debug.scm b/gnu/packages/debug.scm index 0f4a654e6..dc44f8ddf 100644 --- a/gnu/packages/debug.scm +++ b/gnu/packages/debug.scm @@ -30,11 +30,13 @@ #:use-module (gnu packages base) #:use-module (gnu packages bash) #:use-module (gnu packages flex) + #:use-module (gnu packages glib) #:use-module (gnu packages golang) #:use-module (gnu packages code) #:use-module (gnu packages llvm) #:use-module (gnu packages perl) #:use-module (gnu packages pretty-print) + #:use-module (gnu packages readline) #:use-module (gnu packages virtualization) #:use-module (ice-9 match) #:use-module (srfi srfi-1)) @@ -336,3 +338,36 @@ conditions.") intercepting file operations and changing random bits in the program's input. Zzuf's behaviour is deterministic, making it easy to reproduce bugs.") (license (non-copyleft "http://www.wtfpl.net/txt/copying/")))) + +(define-public scanmem + (package + (name "scanmem") + (version "0.17") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/scanmem/scanmem") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "17p8sh0rj8yqz36ria5bp48c8523zzw3y9g8sbm2jwq7sc27i7s9")))) + (build-system gnu-build-system) + (native-inputs + `(("libtool" ,libtool) + ("intltool" ,intltool) + ("automake" ,automake) + ("autoconf" ,autoconf))) + (inputs + `(("readline" ,readline))) + (home-page "https://github.com/scanmem/scanmem") + (synopsis "Memory scanner") + (description "Scanmem is a debugging utility designed to isolate the address + of an arbitrary variable in an executing process. scanmem simply needs to be +told the pid of the process and the value of the variable at several different + times. + +After several scans of the process, scanmem isolates the position of the +variable and allows you to modify its value.") + (license gpl3))) -- 2.20.1