From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120236 invoked by alias); 24 Apr 2017 12:53:17 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 120133 invoked by uid 89); 24 Apr 2017 12:53:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-8.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=spr, Bennett, bennett, horne X-HELO: mail-pf0-f193.google.com Received: from mail-pf0-f193.google.com (HELO mail-pf0-f193.google.com) (209.85.192.193) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Apr 2017 12:53:09 +0000 Received: by mail-pf0-f193.google.com with SMTP id v14so2588470pfd.3 for ; Mon, 24 Apr 2017 05:53:10 -0700 (PDT) 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=e9tOOejdMxoZt3D0dPDg9Z1t/fGuwZEbCw0jAoiUBmk=; b=D65o8udCLAGn0p4qHJeAAg6ITjwY44hjyJB1ru+bMT5Qju/uwbio6ncDqIcrwIL1Aa UEWhwn1XKCVS6mOiNAHFsMU8ds3rNBUq7n998ddvpsJPNMtdI2vTv/ONQB9B+a7WueBg 2AupLImAOTetpUDSGOJ78imy2MrYioEJ5J/HLYHG3+5d1elkndQDoOeaKO2xRAOE+9XP SFuamOtYppv7gALmYMVve5nzpRuepiSrogjGgwy+/aSUj83bVgRRzIjiXdJn1TI+YuM2 4UsbS0gYI06PC9DvgFo/C0EKvhdtWn+tP24DoeVn9HjqrhTJ6L9wV1CruHCgR+GgRqVW 4I0Q== X-Gm-Message-State: AN3rC/7yhsSpKfbWD+gf6y4fR1pzzjsUI9nmuSJr6B2Az39kY2NklmRq +1plMuaDIX+zGU4V X-Received: by 10.84.196.164 with SMTP id l33mr33366553pld.0.1493038389279; Mon, 24 Apr 2017 05:53:09 -0700 (PDT) Received: from localhost (z64.124-44-184.ppp.wakwak.ne.jp. [124.44.184.64]) by smtp.gmail.com with ESMTPSA id m187sm30931038pfm.122.2017.04.24.05.53.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Apr 2017 05:53:08 -0700 (PDT) From: Stafford Horne To: GDB patches Cc: Openrisc , Stafford Horne Subject: [PATCH v6 0/5] OpenRISC gdb port Date: Mon, 24 Apr 2017 12:53:00 -0000 Message-Id: X-IsSubscribed: yes X-SW-Source: 2017-04/txt/msg00649.txt.bz2 Hello Again, This is the openrisc port of GDB that has been in openrisc repositories for a very long time. The main original author was Jeremy Bennett as can be seen in file copyrights. Others should also have copyright assignment in place. This along with the sim patches are the last of what has not made its way upstream. The patches are based on current gdb git master branch. I have run the testsuite and results are as follows: === gdb Summary === # of expected passes 19558 # of unexpected failures 395 # of expected failures 29 # of unknown successes 2 # of known failures 56 # of unresolved testcases 2 # of untested testcases 189 # of unsupported tests 290 -Stafford -- Changes since v5 * Change from using frame_debug to or1k_debug * Change to use TYPE_*() macros rather than direct access to arg_type fields * Fixes to docs suggested by Eli * Fixes suggested by Yao Qi - Use target_read_code() vs target_read_memory() - use bool where possible instead of int - User error over throw_quit - Fix line widths to 80 characters for comments - Add some better comments on the analyse functions - Dynamically allocate arg buffers rather than hard coding size to 4, to allow for dynamic sizes. - Remote or1k_register_*() functions, handled all in tdesc now - Change way to define inline or1k_frame_unwind struct * Add test for gdb.xml/tdesc-regs.exp Changes since v4 * Fixed issue with gdb_assert causing prologue sniffer to abort gdb on kernel debugs * Fixed issue with step through delay slot possible SEGV * Cleaned up a few more comments to be GNU style Changes since v3 * Updates as per Luis's comments - comment formatting issues (period then 2 spaces) - remove spurious newlines - merged configure.tgt clasues to single - Fixed typos and grammar in gdb.texinfo - Removed copyright names from source files (in docs) - Remove curly braces around single statement if's - (fyi) I left the casts as I think it keeps code readable - used XCNEW for tdep init - Added an example XML target descriptor * Removed newlines Changes from v2 * Updates as per Yao's comments - Fix copyrights, jullien embecosm, remove embecosm - indentation to use gnu style (i.e. && and || on left) - Fix comments to use gnu style - Move some includes around - Remove constant variables, replace with constants - Remove doxygen on a few calls - Have only 1 space between type and var name - remove todo about 4 const - do fix *buf checks (use buf != NULL) - BP_MANIPULATION - Use the builtin types for reg register functions - or1k_iterate_over_regset_sections - remove no linux, no cores yet * Remove unimplements pseudo register functions * Remove spr commands as we can now get those via `info reg` Changes from v1 * Merged or1k-tdep.[ch] changes into a single commit * Futher fixes to change log bringing in history back to 2008 * Fix doc issue on sw_breakpoint_from_kind Franck Jullien (2): tdesc: handle arbitrary strings in tdesc_register_in_reggroup_p gdb: Add OpenRISC or1k and or1knd target support Stafford Horne (3): gdb: testsuite: Add or1k l.nop instruction gdb: testsuite: Add or1k tdesc-regs.exp test support Add gdb for or1k build configure | 7 - configure.ac | 7 - gdb/configure.tgt | 6 + gdb/doc/gdb.texinfo | 70 ++ gdb/features/Makefile | 2 + gdb/features/or1k-core.xml | 65 ++ gdb/features/or1k.c | 77 ++ gdb/features/or1k.xml | 12 + gdb/or1k-tdep.c | 1307 +++++++++++++++++++++++++++++++++ gdb/or1k-tdep.h | 56 ++ gdb/target-descriptions.c | 12 +- gdb/testsuite/gdb.base/bp-permanent.c | 2 + gdb/testsuite/gdb.xml/tdesc-regs.exp | 3 + 13 files changed, 1606 insertions(+), 20 deletions(-) create mode 100644 gdb/features/or1k-core.xml create mode 100644 gdb/features/or1k.c create mode 100644 gdb/features/or1k.xml create mode 100644 gdb/or1k-tdep.c create mode 100644 gdb/or1k-tdep.h -- 2.9.3