From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Xu4MDadIP2E9JAAAWB0awg (envelope-from ) for ; Mon, 13 Sep 2021 08:48:39 -0400 Received: by simark.ca (Postfix, from userid 112) id 24AA61EE25; Mon, 13 Sep 2021 08:48:39 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id F03C71EDF0 for ; Mon, 13 Sep 2021 08:48:35 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7A005385782A for ; Mon, 13 Sep 2021 12:48:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7A005385782A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1631537313; bh=KrMZ+lrJmms04U/k7RZG/Pqqs7T5wRbWh+zDFFhZAI0=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=w+Gv1KlztNtrjy3duzxmUbbtC9Ec75ayAhke7l8fsqHEcFJ29keRwfG6NxGL5Dsxe Xjf7xfSd5u+ALY/goxyOf54Fe/8vVhyAkah+2AP47nZ8GMgDh1moqWnjAphBsdF5Nk eE4U0GmUsVHee0mh9zTUwDwYDDK2lgxPF0e/g18k= Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by sourceware.org (Postfix) with ESMTPS id B2826385782E for ; Mon, 13 Sep 2021 12:48:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B2826385782E Received: by mail-pj1-x1036.google.com with SMTP id f11-20020a17090aa78b00b0018e98a7cddaso6388926pjq.4 for ; Mon, 13 Sep 2021 05:48:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KrMZ+lrJmms04U/k7RZG/Pqqs7T5wRbWh+zDFFhZAI0=; b=ldShruyOpBu98gO1BsD1ILuVh17LEZ3TZlTDPYR8lzjRduDTJtGEHQmW0dbgzJZBTF rSH3q2OamA52Zwriy+t4/gA8OTAc/NoE+kyNQ4BCEmZ+tJHgAOjKV5HeF+JoBHY9jCeE 2s1qDHLLNffEY6hGOV17dath9NwJo8aT9eItZ8fBxjDTqbFM8GNwgQHvBGjfByvURDze g2y8Ndq4LN9p1vuVqYfYw/qjomxeFlxGZoIDfWOvkhTCnuCmYvGdhJEG8NgBWLv1KfgH 2sjWoArTLcKb+WaK6cp/4ZY8NdAhpKCIPYoz0V6rgDv1pgD2kU6t7GMWE4X5oiCPBXfV CMpA== X-Gm-Message-State: AOAM532p02F5YluRmitN3Q8ROc3u+7XgaPFSzXWt5yEe69BIsGyTL7nS zGil+sbx0Of15yQNXsV6mBSjuUFMkM0= X-Google-Smtp-Source: ABdhPJz+QzyzNFd2N8a+N36uUQ41K9GokTYainuNt95ZuiKNDB8kSGaIwIg63KrD7ss8i/54tKBQkw== X-Received: by 2002:a17:90a:1915:: with SMTP id 21mr13141187pjg.24.1631537293497; Mon, 13 Sep 2021 05:48:13 -0700 (PDT) Received: from localhost (g245.61-45-50.ppp.wakwak.ne.jp. [61.45.50.245]) by smtp.gmail.com with ESMTPSA id h5sm7105767pfr.134.2021.09.13.05.48.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 05:48:12 -0700 (PDT) To: GDB patches Subject: [PATCH 0/5] OpenRISC Linux Native and GDBServer Support Date: Mon, 13 Sep 2021 21:47:55 +0900 Message-Id: <20210913124800.471680-1-shorne@gmail.com> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Stafford Horne via Gdb-patches Reply-To: Stafford Horne Cc: Openrisc Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Hello, As I have been working on the OpenRISC glibc port over the last few years now I have had the need to have Linux native debugging. At first I started with the gdbserver, but quickly grew out of that and just settled on running gdb native on the platform. These are the patches I have been using. Stafford Horne (5): gdb: or1k: implement gdb server gdb: or1k: fixup linux regcache comment gdb: or1k: add generated linux descriptor file gdb: or1k: add native linux support gdb: or1k: add single step for linux native debugging gdb/Makefile.in | 2 + gdb/configure.host | 2 + gdb/configure.nat | 4 + gdb/features/Makefile | 1 + gdb/features/or1k-linux.c | 78 ++++++++++ gdb/features/or1k-linux.xml | 13 ++ gdb/or1k-linux-nat.c | 210 +++++++++++++++++++++++++++ gdb/or1k-linux-tdep.c | 14 +- gdb/or1k-linux-tdep.h | 26 ++++ gdb/or1k-tdep.c | 66 ++++++--- gdb/or1k-tdep.h | 5 + gdb/regformats/or1k-linux.dat | 40 +++++ gdbserver/Makefile.in | 1 + gdbserver/configure.srv | 8 + gdbserver/linux-or1k-low.cc | 266 ++++++++++++++++++++++++++++++++++ 15 files changed, 714 insertions(+), 22 deletions(-) create mode 100644 gdb/features/or1k-linux.c create mode 100644 gdb/features/or1k-linux.xml create mode 100644 gdb/or1k-linux-nat.c create mode 100644 gdb/or1k-linux-tdep.h create mode 100644 gdb/regformats/or1k-linux.dat create mode 100644 gdbserver/linux-or1k-low.cc -- 2.31.1