From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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) From: Stafford Horne To: GDB patches Cc: Openrisc , Stafford Horne 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-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: , X-List-Received-Date: Mon, 13 Sep 2021 12:48:16 -0000 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