From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oa1-x34.google.com with SMTP id 586e51a60fabf-1dcbd8a56d6so3037386fac.1 for ; Mon, 09 Oct 2023 03:46:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696848398; x=1697453198; darn=sourceware.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=53nLb/TyflIXnPHQgxjnyTO23vR9Dpw2i4O+vRrJuIY=; b=UcQz/A/Ei41jsCZqacYz+6clbOpcjgLuu2ALVu0nXtJHkc6j5pO+THDQWMmy/0r1lz ePWDSwRTi45thZpi/K37wkdPNz7TRPkk26xW2z7bJ2Lg/BXRVvY/BhpS9YSVru4H6RlF t6FjNOno9yWL4g/M9NE4fc+D31GZqmYlFGr2nLl2I+0T1+JEOzxLn2FLoCQ1d8oDH3EI BQhTtO7mGt7GL0ehCMeu5SsmEpPk1P7rd+FWt8/IZIzaGv86KohcLy0eTsW9GMuHefxf g65Lh7WRvanPBkrv0KeDAiPqPSb1qL9qZRVB+Zzbm+lckadxpAJuWTCHxFfcSLRh3U59 iW9w== 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: From: William Tambe 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 List-Id: 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