From patchwork Fri Nov 2 00:46:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rashmica Gupta X-Patchwork-Id: 992156 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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42mNhM2vSfz9sMQ for ; Fri, 2 Nov 2018 11:47:31 +1100 (AEDT) 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="dv7aSoFN"; 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 42mNhL1YrszF31F for ; Fri, 2 Nov 2018 11:47:30 +1100 (AEDT) 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="dv7aSoFN"; 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::642; helo=mail-pl1-x642.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="dv7aSoFN"; dkim-atps=neutral Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) (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 42mNgl24DpzF31w for ; Fri, 2 Nov 2018 11:46:59 +1100 (AEDT) Received: by mail-pl1-x642.google.com with SMTP id o19-v6so147907pll.12 for ; Thu, 01 Nov 2018 17:46:58 -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=9saufh0M7ctoTyZo18oKyzggrnffJVEwnB3og8iAiCo=; b=dv7aSoFNd0Lfa1qAT10VND/eZ/qRsELE8VnZDronF62b0Sh6i1rflKT/RHyeIQj3bG G/+//y0R1XV2OJcsCpRNX3/+A2R8BknRA6Bgm6qHbtSnaHL3vppXQDy/03dy1gW+QLxT LyIl//AAevCbkfynWXgNILBRBoCv/GsTv+ME3qh7mDV5ff4hOzbis9tk7bpJkaP5usyT Ij5lT7X5Xwy5gCdATEE/gXZbqV1dBVToMyu1O8UtXP70gZEx6aWIIJbh+YqIR0itbGqo 2Lva0LgWw4D1a457GPhhDVQtHpnONHSPpRF9ot8KrLR1YSKJgroGj9MtrgiXd+h1xh1C S7lQ== 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=9saufh0M7ctoTyZo18oKyzggrnffJVEwnB3og8iAiCo=; b=LG/CWG8JyaBKY/c/maGGiksdjV0U3VHrkIC+9dcuE2/C5nhuNDtoL7q3ND/HCNh5mL aUk8LihSTmBm4FrBKwR7bAm7N7il/5OAuSHMWoI6ZxUtlUnBUL+ieQDOjVCS0BQwwCjV 7odBeHOdb+ZyP9WPI2h9p95Gt8aI5q7T+4HBLKHUvyKwgksn/o9Ayr+CJhUIMpcmB4gJ HtVo3uDoU7avKXJ12B/ojDJUWUgUTEHny0W0SPCmgqEvRA6S86l84WvIo+DD4K9WEUPD 4hTuf3xewitwbb/sqBrl4ngD5zmYcONyt+/GdED1qS9b3ULZPqVDuBt1UUo4GCchBJQ9 EmNg== X-Gm-Message-State: AGRZ1gI1oafz7ODKJEwCHg0eIStynxcsdvdkPefl1C6jbg5Ej20XL347 rG/c9kVEX2BBhvREC5z3Snu7VhM4 X-Google-Smtp-Source: AJdET5fNo/PJFgey5IF7H1xRFxOCkf2wkKewRpCR5fZWsWf6+dqyl7HO21F23+CzySg92p4TL4vkvA== X-Received: by 2002:a17:902:108a:: with SMTP id c10-v6mr9946336pla.49.1541119616957; Thu, 01 Nov 2018 17:46:56 -0700 (PDT) Received: from rashmica.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id d29-v6sm53736243pgm.56.2018.11.01.17.46.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Nov 2018 17:46:56 -0700 (PDT) From: Rashmica Gupta To: pdbg@lists.ozlabs.org Date: Fri, 2 Nov 2018 11:46:40 +1100 Message-Id: <20181102004644.23047-1-rashmica.g@gmail.com> X-Mailer: git-send-email 2.17.2 Subject: [Pdbg] [v4 PATCH 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" v3->v4: fix getmem to use the right address 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