From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id sSRxFi7aI2VyNikAWB0awg (envelope-from ) for ; Mon, 09 Oct 2023 06:47:10 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=wfOIByqb; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 5022A1E0C1; Mon, 9 Oct 2023 06:47:10 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 345DF1E047 for ; Mon, 9 Oct 2023 06:47:08 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8FF36385734F for ; Mon, 9 Oct 2023 10:47:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8FF36385734F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1696848427; bh=53nLb/TyflIXnPHQgxjnyTO23vR9Dpw2i4O+vRrJuIY=; h=References:In-Reply-To:Date:Subject:To:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=wfOIByqbiz99gUhpahJ2YZocSQPFinsZf5DDRK3uYhh6cEjYVHgg/qD/4wpDTh2OB dhn/FbA81L7XQkbT3bfFqrqaJofcg2HkrJLgKeB5HDZk0n96FwId93LLZJOS4PSRtL D70C5U0uUATNRZm6q1Jl4pwd3Kz2NLCGc+XTH0R0= Received: from mail-oa1-x34.google.com (mail-oa1-x34.google.com [IPv6:2001:4860:4864:20::34]) by sourceware.org (Postfix) with ESMTPS id D23083858C78 for ; Mon, 9 Oct 2023 10:46:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org D23083858C78 Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-1dcbd8a56d6so3037386fac.1 for ; Mon, 09 Oct 2023 03:46:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696848398; x=1697453198; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=53nLb/TyflIXnPHQgxjnyTO23vR9Dpw2i4O+vRrJuIY=; b=wqjjr8jFWpSNyvSKrJ5vVxmTl2ZI1NlSAnkJKtUTRkV/7FReBPSS13fM5hjkscNQTG L1jKcxrNS94UvYuYlhJt6UkXzMlNiRK4FwFkJ8oMG9fVMscmaWO7X0DCN01eKdbqaB6l E2f9PBlGb0qZ0vKy3PKTNHxwyum3ovHvhVTmWrbRmT2k155z0s1cHDsv/gGD68jRNSVx r6xR+y0PUYxARVnOizytpvNE9PXyOFyLbiqiFerB2Bh1JF2VsbysNEpPcQD16HaNJDu0 sDj42cHd6FRk/4MtHaPRfym1EKt0saodBxeCX5Fie2pMf6HLCfNrzLIlY1ClH3vHRrcn ceLA== X-Gm-Message-State: AOJu0YwgC3oe9PdiEHz2PpmZcnOD7ZFdqa8gu4+b/7nI5OGL0+bEc62I V/tGSC5Ofn1Wy3UjqWueSKLHq6uRtbDPvCYI/Xc= X-Google-Smtp-Source: AGHT+IGpK6ogLRHCovXO6gFEsjH9WQ4aSLmr4N/9D9al0fz6XMh4BBuwzR1TXFl5U85mglA0X/Oa7i4y5h90PZgvpjA= X-Received: by 2002:a05:6870:32cf:b0:1d5:bda7:130c with SMTP id r15-20020a05687032cf00b001d5bda7130cmr17794762oac.22.1696848398066; Mon, 09 Oct 2023 03:46:38 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 9 Oct 2023 05:46:28 -0500 Message-ID: Subject: Re: warning: Target-supplied registers are not supported by the current architecture To: "Aktemur, Tankut Baris" Cc: "gdb@sourceware.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.4 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.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: William Tambe via Gdb Reply-To: William Tambe Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" On Mon, Oct 9, 2023 at 1:45=E2=80=AFAM Aktemur, Tankut Baris wrote: > > On Monday, October 9, 2023 1:14 AM, William Tambe wrote: > > I am working on gdbserver support. > > > > I am able to remotely execute the executable and set breakpoints, > > however right after issuing the `target remote` command, I am getting > > following warning: > > > > (gdb) target remote 192.168.1.164:2000 > > Remote debugging using 192.168.1.164:2000 > > warning: Target-supplied registers are not supported by the current arc= hitecture > > > > Error message is coming from gdb/target-descriptions.c at line 576, > > due to data->arch_regs.empty () return true. > > > > Any idea what I might have missed causing data->arch_regs.empty () to > > return true ? > > When gdbserver is started with the --remote-debug flag, it prints the > received and sent RSP packages. There, the target description XML would > be seen. I'd suggest starting with inspecting if the contents of that XM= L > look right. Below snippet of the prints when using --remote-debug shows the target description XML. I see a star in front of blocks; any idea whether that could be the issue ? In the source code, I am not using an actual XML file, instead, I am manually building the target description XML through calls to tdesc_create_reg: https://github.com/fontamsoc/binutils-gdb/blob/main/gdbserver/linux-pu32-lo= w.cc#L63 [remote] getpkt: getpkt ("qXfer:features:read:target.xml:0,1000"); [no ack sent] [remote] putpkt_binary_1: putpkt ("$l pu32 GNU/Linux * * * * * * * * * * * * * * * * * #ae"); [noack mode] [remote] getpkt: getpkt ("qXfer:auxv:read::0,1000"); [no ack sent] Any ideas on what I am doing wrong ? > > Regards > -Baris > Intel Deutschland GmbH > Registered Address: Am Campeon 10, 85579 Neubiberg, Germany > Tel: +49 89 99 8853-0, www.intel.de > Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva > Chairperson of the Supervisory Board: Nicole Lau > Registered Office: Munich > Commercial Register: Amtsgericht Muenchen HRB 186928