From patchwork Fri Oct 5 03:42:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rashmica Gupta X-Patchwork-Id: 979265 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42RFw66RWKz9sB5 for ; Fri, 5 Oct 2018 13:43:18 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ToxYeuyr"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 42RFw62GlXzF3Fl for ; Fri, 5 Oct 2018 13:43:18 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ToxYeuyr"; dkim-atps=neutral X-Original-To: pdbg@lists.ozlabs.org Delivered-To: pdbg@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:4864:20::644; helo=mail-pl1-x644.google.com; envelope-from=rashmica.g@gmail.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ToxYeuyr"; dkim-atps=neutral Received: from mail-pl1-x644.google.com (mail-pl1-x644.google.com [IPv6:2607:f8b0:4864:20::644]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42RFvv31LJzF3F8 for ; Fri, 5 Oct 2018 13:43:06 +1000 (AEST) Received: by mail-pl1-x644.google.com with SMTP id f8-v6so6159695plb.2 for ; Thu, 04 Oct 2018 20:43:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=VDazwQLy1pVnovJB1aN1YfKBFM1oGaBI8Z4JNsNsP/E=; b=ToxYeuyrD9/WTvbRKif9WzPJQLCHvTh2y5DXghgSUlBm9v+iPfdZJmF7A2F/EOVIu4 JCBZpNL98IsNA7swhj2tcE/bakjuEA8NpTpQkH9wpP5Bv9jOsiWHX67bBUQIF6xfXaGh hvJM2VG2pu0xu5cshZVosTRpwKko9Te25gpyIvJsv+n0lAiDQL/8BpZAigwZhg2ayqFo 5CMVcdLxCayu8Iz2yyVW9GX8qcRtdLihbuzXttkKmNar+2H5BSA6NV1ywdxVH3xGPVpy C5sg2VZNuswq6fwMQf2BPfXvjqOUHH21Q+Fpfj8e/Zh0Zyy5+S4TwJtOqMemNzZBvQSf 6LnA== 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; bh=VDazwQLy1pVnovJB1aN1YfKBFM1oGaBI8Z4JNsNsP/E=; b=DtqgHYqJXPJnVrUSA5tRMBMFgvvTHMUGcevKpzIxDi4uxP9N4H4FmD/ukrZlWmGQTh vUOU1dhhTDzI2+dkhf9ryNwOo0sbbf+vkBIzQ+4knkJ/4vIE+ciI19rZJQIMtx/8EBor HqNZo+0mnu5xkf9atB31PIHYKnMonc6iyDDV8YWIDbjGCF1Lztqp7wqgD+ufPbK1FYNf C5VTV6wZxvTKd+VwSLjFDOaZHm4+Z1ZTV9kW0wUGRU6fSllvlsDvUAffqzBCWu0M8Kb0 bFNloaDTk7awZjkOye22AN0J/KXtq49cEat/Akz3tbmBed/brr74DkzbIrczSda+sSS5 HRHg== X-Gm-Message-State: ABuFfogvqDIZ2RW+x8uSwH3bmGIUw4xhgXN+gQSFdU2iGP2ZbXdx/lTv NuBYcRkfBuW8+MWqSdCemlOqbyPowkw= X-Google-Smtp-Source: ACcGV61PhMweg3yPGDeRcLgY9+ivUqSf1NZyUeMN/FdafkowrtdYh6uQRQmUnIcIgF63OIjuumCneA== X-Received: by 2002:a17:902:b496:: with SMTP id y22-v6mr6831117plr.322.1538710984632; Thu, 04 Oct 2018 20:43:04 -0700 (PDT) Received: from rashmica.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id b62-v6sm9328180pfa.159.2018.10.04.20.43.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Oct 2018 20:43:04 -0700 (PDT) From: Rashmica Gupta To: pdbg@lists.ozlabs.org Date: Fri, 5 Oct 2018 13:42:50 +1000 Message-Id: <20181005034254.890-1-rashmica.g@gmail.com> X-Mailer: git-send-email 2.14.4 Subject: [Pdbg] [PATCH v3 0/4] Basic gdbserver for POWER8 X-BeenThere: pdbg@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "mailing list for https://github.com/open-power/pdbg development" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: npiggin@gmail.com MIME-Version: 1.0 Errors-To: pdbg-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Pdbg" v2->v3: use the ram_state_thread function, should build for x86 now, exit early if it looks like all threads on the core aren't quiesced, endianess check for the attn opcode. Alistair Popple (1): pdbg/gdbserver: Make ragel optional Rashmica Gupta (3): pdbg/gdbserver: Add in basic skeleton for a gdbserver on p8 pdbg/gdbserver: Make gdbserver optional README: Add some gdbserver info .gitignore | 1 + Makefile.am | 34 ++- README.md | 26 +++ configure.ac | 10 + libpdbg/libpdbg.h | 1 + libpdbg/operations.h | 3 - libpdbg/target.h | 1 + src/gdb_parser.rl | 146 ++++++++++++ src/gdb_parser_precompile.c | 410 ++++++++++++++++++++++++++++++++ src/main.c | 6 +- src/pdbgproxy.c | 556 ++++++++++++++++++++++++++++++++++++++++++++ src/pdbgproxy.h | 13 ++ 12 files changed, 1193 insertions(+), 14 deletions(-) create mode 100644 src/gdb_parser.rl create mode 100644 src/gdb_parser_precompile.c create mode 100644 src/pdbgproxy.c create mode 100644 src/pdbgproxy.h