From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x642.google.com (mail-ej1-x642.google.com [IPv6:2a00:1450:4864:20::642]) by sourceware.org (Postfix) with ESMTPS id 8C8D33851C0E for ; Mon, 13 Jul 2020 15:45:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8C8D33851C0E Received: by mail-ej1-x642.google.com with SMTP id dp18so17730749ejc.8 for ; Mon, 13 Jul 2020 08:45:56 -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:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZXBjsAREy5pDYTQq4Z2oIP/HS0T48BcoFMQdlnv9E5Y=; b=AcyXgzxp/F41hxNMoa7zKQgxEP2PDT/wEbsZwqBybNj6aUVtf4OYRBGKv10Be0VkCd zoSOAPL6vCW303WWr/O4cTw2esiXM9+l2tMKCDS8LWxCFt1lSosiYQEke/mi5gPXebn9 N4xkFW7gPCJTgipI5mWVs9azyXkAEnv+t6HoJfZjbMHJmQs5iuwudR8lSIFvZRrMFkYd yKOEEY+3gVbe7LlDIlk1cW8AfLvsPcyzD6V8mmXKfd7tLj5TJhbbg4eeP6GiEgNtCw81 87Kdw3kmhR8Qx0kD+p9Tp2C2O3cxQ2LnUjq3VFlox6g8BTbE+8UrvG4Vp9dpCvceM9XB 6mpw== X-Gm-Message-State: AOAM532Qy8XAZBfmOxzftUCjqvIXFKvR/A/amRr3s+pw/SlLU8grxi5O C1G9yfneYTnYIv4VJENI6H97SRMi/8Lgtg== X-Google-Smtp-Source: ABdhPJyXO9x1MoZyzMFY+oo3hxzoCR2Nl2e/rIBtpRDFnOOOebDgKcJiupbfdyOALqZmzEVzAKaHmQ== X-Received: by 2002:a17:906:824c:: with SMTP id f12mr315020ejx.443.1594655155160; Mon, 13 Jul 2020 08:45:55 -0700 (PDT) Received: from atlantis.home ([2a03:1b20:3:f011::6d]) by smtp.gmail.com with ESMTPSA id n5sm10108604eja.70.2020.07.13.08.45.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Jul 2020 08:45:53 -0700 (PDT) From: Shahab Vahedi To: gdb-patches@sourceware.org Cc: Shahab Vahedi , Shahab Vahedi , Simon Marchi , Tom Tromey , Anton Kolesov , Francois Bedard Subject: [PATCH v3 0/3] arc: Add GNU/Linux support Date: Mon, 13 Jul 2020 17:45:24 +0200 Message-Id: <20200713154527.13430-1-shahab.vahedi@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200428160437.1585-1-shahab.vahedi@gmail.com> References: <20200428160437.1585-1-shahab.vahedi@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 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.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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 Jul 2020 15:45:58 -0000 From: Shahab Vahedi This is a series of changes to enable debugging ARC targets that are running on a native ARC GNU/Linux system. Since this heavily relies on XML target descriptions provided for different targets, that piece of code has been refactored to accomadate flexible register support. After this series, there will come patches that add support for native ARC gdb/gdbserver. v3: Changes after Simon's remarks: The XML files have reduced to minimal comprehensible set. The code is adjusted to work with new reg sets and be platform agnostic. v2: Changes after Tom's remarks: arc-tdep.c - arc_tdesc_init(): Use "ARC_{R58,R59}_REGNUM" to index "core_regs[]". - arc_gdbarch_init(): Use "xfree ()" instead of "XDELETE ()" - arc_gdbarch_init(): return "nullptr" instead of "NULL". - Use explicit number evaluation, e.g: if (a & b) -> if ((a & b) != 0) arc-linux-tdep.c - Use true/false instead of TRUE/FALSE. - arc_linux_sw_breakpoint_from_kind (): Break long lines into two. - arc_linux_sw_breakpoint_from_kind (): Remove starting blank line. - Use explicit number evaluation, e.g: if (a & b) -> if ((a & b) != 0) gdb/configure.tgt - arc*-*-linux*): Remove "build_gdbserver=yes". Anton Kolesov (1): arc: Add GNU/Linux support for ARC Shahab Vahedi (2): arc: Add ARCv2 XML target along with refactoring arc: Add hardware loop detection gdb/Makefile.in | 1 + gdb/arc-linux-tdep.c | 283 ++++++++ gdb/arc-tdep.c | 657 +++++++++++------- gdb/arc-tdep.h | 30 +- gdb/arch/arc.c | 106 ++- gdb/arch/arc.h | 76 +- gdb/configure.tgt | 5 + gdb/doc/gdb.texinfo | 3 +- gdb/features/Makefile | 8 +- .../arc/{aux-arcompact.c => v1-aux.c} | 9 +- .../arc/{aux-arcompact.xml => v1-aux.xml} | 7 +- .../arc/{core-arcompact.c => v1-core.c} | 8 +- .../arc/{core-arcompact.xml => v1-core.xml} | 4 +- gdb/features/arc/{aux-v2.c => v2-aux.c} | 9 +- gdb/features/arc/{aux-v2.xml => v2-aux.xml} | 5 +- gdb/features/arc/{core-v2.c => v2-core.c} | 7 +- gdb/features/arc/{core-v2.xml => v2-core.xml} | 7 +- 17 files changed, 907 insertions(+), 318 deletions(-) create mode 100644 gdb/arc-linux-tdep.c rename gdb/features/arc/{aux-arcompact.c => v1-aux.c} (73%) rename gdb/features/arc/{aux-arcompact.xml => v1-aux.xml} (80%) rename gdb/features/arc/{core-arcompact.c => v1-core.c} (87%) rename gdb/features/arc/{core-arcompact.xml => v1-core.xml} (92%) rename gdb/features/arc/{aux-v2.c => v2-aux.c} (76%) rename gdb/features/arc/{aux-v2.xml => v2-aux.xml} (86%) rename gdb/features/arc/{core-v2.c => v2-core.c} (91%) rename gdb/features/arc/{core-v2.xml => v2-core.xml} (90%) -- 2.27.0