From patchwork Wed Jun 21 15:42:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 106100 Delivered-To: patch@linaro.org Received: by 10.140.91.2 with SMTP id y2csp1994972qgd; Wed, 21 Jun 2017 08:43:49 -0700 (PDT) X-Received: by 10.200.50.249 with SMTP id a54mr4324643qtb.91.1498059829922; Wed, 21 Jun 2017 08:43:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1498059829; cv=none; d=google.com; s=arc-20160816; b=c0vscwY8/tJfrptvCcfdf1mNCpZjdfTFPMXGvx+j4rQf2HZASZUWIKM/k0wovYh9nm gSmFW8DNZxGA9inZ3RB2KEkmD/hv655OfFSBRhkYmn/0px5IegLIP4SBt0WJPe1Vn8js hUk/SzkpuFT9VI178JExWNUv6RVX79UVzjo1cB13NZJk+Vh3IvnTvA97nt10zdU7M8El NAhVHoflNZ+9zbbAbLsrwqNbpJdo5duxF+VMDzpTuTF4R5SNonGKKw55A0VAR2R+Op5N kKhADLZipKj00UGR9izB17iMavhRID6K6l17HMo/3unQyPGLHwzNC8NvTNlfJdKk7Rz+ sCBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:to:from:dkim-signature:arc-authentication-results; bh=J/yN4C9X1+aePL3BdMqHjwT07KSj1vM+Via6aS7/6pM=; b=exgI2CBUr7ZnbG1lpqth9sIuM6wTVtSAz1VCH9QryMwuFjt/MImJDON2gXw+74WJot 68jL53Iz7DlfCfURPXutXsCMWxirWE03wKkdJYqMvH2sgwtSrStfdc4Gim0O9NEu49TA 9io2Xc0wjm5Bfadb1PQS6u1lun5HbTZ+42yz/ij6PQcFhOD5RemfcvIeSDlEChgbneT3 JrBaixorpz9Jm7atmOgSqCxhOMHygsa0Uzcra+DWFc9y4xwlXLfProYBD36a1ordA9xD dPYurhnFH/pbFHeimoSAE2jotL73oDKeBbxKDiE7xivSifao2Lcbk8OJCWgieOF60VJ5 vMgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.b=OtSVQL63; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id b46si14944277qtb.40.2017.06.21.08.43.49 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 21 Jun 2017 08:43:49 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.b=OtSVQL63; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:54745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNhnH-0007GW-D2 for patch@linaro.org; Wed, 21 Jun 2017 11:43:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52448) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dNhlm-0006D4-Pd for qemu-devel@nongnu.org; Wed, 21 Jun 2017 11:42:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dNhli-0002pe-FP for qemu-devel@nongnu.org; Wed, 21 Jun 2017 11:42:14 -0400 Received: from mail-wr0-x233.google.com ([2a00:1450:400c:c0c::233]:33501) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dNhli-0002pQ-9D for qemu-devel@nongnu.org; Wed, 21 Jun 2017 11:42:10 -0400 Received: by mail-wr0-x233.google.com with SMTP id r103so140130537wrb.0 for ; Wed, 21 Jun 2017 08:42:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J/yN4C9X1+aePL3BdMqHjwT07KSj1vM+Via6aS7/6pM=; b=OtSVQL6353y2kS4NyLCN40WKUn6dq7FpTS48D60XkEJFl/cFTr0KH/ETAYCzWut3Sm TeD02qfbbKUwUHzgGLD62Bs3hyWrQzqxrhL1zOqZ0dHZ1kauuIkPWAa6A/4Ir3Fmo5/F NCROi0WffibNgEZbkIjRiEOlfxVu8S+7/DDA0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J/yN4C9X1+aePL3BdMqHjwT07KSj1vM+Via6aS7/6pM=; b=ciEiOh6Dxi6Sy+O2Jud5o6UsVpVilmfEr2ylUtitdx4IW5LoEZqYtN9g24DMzLtsWf fx6E4wRqSn48rA9Aujjw8ZZs7/rR5gnydCsFAyIgF0FZTQ6SxgkzSMYDFQpDyUjBmhLQ VVfradUc7iv9C4HixjQ42PAzX7j7p+QA8ZxLkr+0MFY/Us7mXY5wPzXjUqULKDGcFcLF ijI2Te1QRb6TFfPKc5GgLx0TnBT9vVS5Hyn7sMlSt0r8BieiVpacC0Cb0n0tL8WcjWcJ sPj3Qgwk9IH56hBMGctlNvxfSU+qU3N196okcK8GRcYxhaEmpZn7YnrgqpX4a/LXWhEa wfEw== X-Gm-Message-State: AKS2vOxx2Ym5If+TqYxzRtcWPoVAnalR5WeMjlkz3mjaDrmdVLU6sRcp Kx9r5Yo00GuNUGcSiyIT5w== X-Received: by 10.223.170.79 with SMTP id q15mr21005811wrd.134.1498059729166; Wed, 21 Jun 2017 08:42:09 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id 139sm19028573wmw.15.2017.06.21.08.42.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Jun 2017 08:42:07 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 48B0B3E0F68; Wed, 21 Jun 2017 16:42:51 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org Date: Wed, 21 Jun 2017 16:42:37 +0100 Message-Id: <20170621154244.28309-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170621154244.28309-1-alex.bennee@linaro.org> References: <20170621154244.28309-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c0c::233 Subject: [Qemu-devel] [RISU PATCH v6 03/10] risu: a bit more verbosity when starting X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" When debugging faults it is useful to know where the generated instructions are living. Signed-off-by: Alex Bennée --- v6 - removed stray/stale declarations v5 - dropped all the status update due to signal handler contraints v3 - use portable fmt string for image_start_address - include arm dumping position --- risu.c | 4 ++++ 1 file changed, 4 insertions(+) -- 2.13.0 diff --git a/risu.c b/risu.c index 2cd6d22..a10422a 100644 --- a/risu.c +++ b/risu.c @@ -124,6 +124,8 @@ int master(int sock) } master_socket = sock; set_sigill_handler(&master_sigill); + fprintf(stderr, "starting master image at 0x%"PRIxPTR"\n", + image_start_address); fprintf(stderr, "starting image\n"); image_start(); fprintf(stderr, "image returned unexpectedly\n"); @@ -134,6 +136,8 @@ int apprentice(int sock) { apprentice_socket = sock; set_sigill_handler(&apprentice_sigill); + fprintf(stderr, "starting apprentice image at 0x%"PRIxPTR"\n", + image_start_address); fprintf(stderr, "starting image\n"); image_start(); fprintf(stderr, "image returned unexpectedly\n");