From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id mp7YOrntI2UbRikAWB0awg (envelope-from ) for ; Mon, 09 Oct 2023 08:10:33 -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=qM3fKFIp; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id DDA801E0C1; Mon, 9 Oct 2023 08:10:33 -0400 (EDT) Received: from server2.sourceware.org (ip-8-43-85-97.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 CD70C1E047 for ; Mon, 9 Oct 2023 08:10:31 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5C4E8385828E for ; Mon, 9 Oct 2023 12:10:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C4E8385828E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1696853431; bh=V9h+teff6Dq7YwI3WpeDNewPXOxX0TdaKi83rLQw48c=; 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=qM3fKFIpuOy80XzjymTaQXUkGtywGsIRd3ZTX8WsYb4AW6WK3dPCF1pL7af8zUomG RSMTYJQ79u4lDOyoeispClkvgQ8ZFeM4L3A+c4lwVwBsJnQsp682CBFZ6katT7UEaN EB1h9ai7ZF1w+GP2LX1/EgBWUplBVhBS080epBag= Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com [IPv6:2607:f8b0:4864:20::329]) by sourceware.org (Postfix) with ESMTPS id DAF533858D35 for ; Mon, 9 Oct 2023 12:10:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DAF533858D35 Received: by mail-ot1-x329.google.com with SMTP id 46e09a7af769-6c4e30a3604so3033355a34.2 for ; Mon, 09 Oct 2023 05:10:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696853403; x=1697458203; 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=V9h+teff6Dq7YwI3WpeDNewPXOxX0TdaKi83rLQw48c=; b=X5Pc39Z6RBQqJQA8eP4r3uf31oV8IwgmhmzV1FE2ZcmtTCoHaNJjubvEOMbq4EeMa7 0/1evLvT/bwGwIHuZnVAwdF2YlmTjmwimV0vFhHbYARPEkQievPA9XFUM8TZ7XL057nG P3TAyE5e2sBTFDwHDmHO1GwMOYBlRPcVeoeK6kwnm4Nn51LgABFt3jDA5Lw9B7ELQTwP X99AuURpqQCa4F67NN0mrzGJAZzKhHSQ6qxsqzTADfzVNf9HU9vpz+/uC0cfTmJloErE Y9vCRXnylpk+pqRGMMs575xVgHdGTzogl7b+JQ7gbnb53nUbDzpaBqaA+o3CvI/QJl73 G00Q== X-Gm-Message-State: AOJu0Yz9mKLFCPEYAlH//4IvU+lDOx3/mSS5PF+YWAIxdFPCF71/5gqZ Z/ebbYkfj3B68u/ejd5YQWPFJHagr1aND7Ixfsw= X-Google-Smtp-Source: AGHT+IE0jkVZFJTk98ye7wxk3aRUWs5ylUNbw2e1ln5prSEyeFqTHCayCk/cxa4/SHT+Dmv6DOu3H50wzvugxoAmHMw= X-Received: by 2002:a05:6870:3328:b0:1d1:2605:bb0a with SMTP id x40-20020a056870332800b001d12605bb0amr18384663oae.26.1696853403016; Mon, 09 Oct 2023 05:10:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Mon, 9 Oct 2023 07:09:53 -0500 Message-ID: Subject: Re: warning: Target-supplied registers are not supported by the current architecture To: Luis Machado Cc: "Aktemur, Tankut Baris" , "gdb@sourceware.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.7 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 6:23=E2=80=AFAM Luis Machado = wrote: > > On 10/9/23 11:46, William Tambe via Gdb wrote: > > 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 a= rchitecture > >>> > >>> 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 wou= ld > >> be seen. I'd suggest starting with inspecting if the contents of that= XML > >> 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-pu3= 2-low.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 ? > > What architecture is this out of curiosity? Are you enabling a new archit= ecture called pu32? Correct, I am enabling a new architecture called pu32; more detail at https://github.com/fontamsoc . >