From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mrpoQ-0006wc-JQ for mharc-grub-devel@gnu.org; Mon, 29 Nov 2021 18:11:54 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34382) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrpoP-0006wT-ST for grub-devel@gnu.org; Mon, 29 Nov 2021 18:11:53 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:55347) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mrpoN-0001t5-6f for grub-devel@gnu.org; Mon, 29 Nov 2021 18:11:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1638227505; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7WLcO8W+kXaKknGnefji489IbNHB5mzHNXrYoNBPTZs=; b=MactKPPPJUgRZy5SDst0Mm/a3JzU5cNnQ1h7GStNrh23miPS1I4KBhpwY+q26f5TKEc0+n RDYXK03MR93+Cb44qPL6VkrJD7O1lhLGUXoL9uL3K/s54NnSX/JNgA7QeZq+R8zHFqcsYd VZZJdsHSzSQZdrawXjmUDUTInDatzCw= Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-41--yP8TRu2OP2soqTYFW9ecQ-1; Mon, 29 Nov 2021 18:11:42 -0500 X-MC-Unique: -yP8TRu2OP2soqTYFW9ecQ-1 Received: by mail-qv1-f69.google.com with SMTP id jn10-20020ad45dea000000b003bd74c93df4so26906505qvb.15 for ; Mon, 29 Nov 2021 15:11:42 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=7WLcO8W+kXaKknGnefji489IbNHB5mzHNXrYoNBPTZs=; b=aDN3ZDw2XWJTv+26DePAjFPqnHx6+NlbE8bOQ8qvn++mUkp1UJALGYLZfxMo9RVyhr WfrHtx/MKvcXqbQf+mb0HBesbSHT7sJy6WJrugwa4oKzAnlOnF8am4Ha9kOJ7FLN748p vsn4QtPp0aeurxedS1fY9NLmizW0/LKE4A3rBup2QJCmfHGIMyRf8TSevuPt7zWBMu4T heXSc0cccZTDdOkijqTF43tTp3Eo+NdzT6ks8HELKdRZ1RMz25XwnSAyBfi8+rTmNpa/ FZP92zl7HVkak4VSxxyY64V8yn0aTzMd6WXWjCcb38w5INkmzrCrc1mDmjeiyiU/3o1a c5tg== X-Gm-Message-State: AOAM532v2leS6wDqGEWF0xZNL5pGmcy+hvIp1SG0v93/VmRm9888bl1f kWYahACWBU170sc8VInAhfviCMvIJJFjNTWvFgoDmZ88IAzFOMeYbZCF5Oxqr0wZDercF1wkYoh aR9ydltZAsYo= X-Received: by 2002:a05:6214:528c:: with SMTP id kj12mr45752051qvb.4.1638227501221; Mon, 29 Nov 2021 15:11:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXjQElhoLTirKVtEuoGFKtoPpZZQZ9XsSxb8K/cylmPEGBnqJVmv5W+xRHmL75kFc1/NJ1nQ== X-Received: by 2002:a05:6214:528c:: with SMTP id kj12mr45751981qvb.4.1638227500357; Mon, 29 Nov 2021 15:11:40 -0800 (PST) Received: from localhost ([2601:184:4181:74c0:862e:5809:ed9e:e10e]) by smtp.gmail.com with ESMTPSA id v2sm9704137qkp.72.2021.11.29.15.11.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Nov 2021 15:11:39 -0800 (PST) From: Robbie Harwood To: Daniel Kiper Cc: grub-devel@gnu.org, Peter Jones Subject: Re: [PATCH v2 2/2] Make a "gdb" dprintf that tells us load addresses In-Reply-To: <20211125171902.r7ihwloarofnw2yz@tomti.i.net-space.pl> References: <20211103182207.118313-1-rharwood@redhat.com> <20211103182207.118313-3-rharwood@redhat.com> <20211125171902.r7ihwloarofnw2yz@tomti.i.net-space.pl> Date: Mon, 29 Nov 2021 18:11:36 -0500 Message-ID: MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=rharwood@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=170.10.129.124; envelope-from=rharwood@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.717, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Nov 2021 23:11:54 -0000 --=-=-= Content-Type: text/plain Daniel Kiper writes: > On Wed, Nov 03, 2021 at 02:22:07PM -0400, Robbie Harwood wrote: >> From: Peter Jones >> >> Add a grub_dprintf() call during platform init and during module loading >> that tells us the virtual addresses of the .text and .data sections of >> grub-core/kernel.exec and any modules it loads. >> >> Specifically, it displays them in the gdb "add-symbol-file" syntax, with >> the presumption that there's a variable $grubdir that reflects the path >> to any such binaries. > > Could you tell us why this thing has to be displayed as a part of debug > messages? Could you create a separate command which would do the same? I don't follow what you're suggesting. It's debug output and gdb is a debugger. What would you have it do instead? Be well, --Robbie --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJIBAEBCgAyFiEEA5qc6hnelQjDaHWqJTL5F2qVpEIFAmGlXigUHHJoYXJ3b29k QHJlZGhhdC5jb20ACgkQJTL5F2qVpELm8BAAmtvpsiWoGJBzQdaLFvcK5G42Em5/ cIIO/gTqd4EkxHFup1Ka+I5zlksIgr0+1BGCWup9/Fkpll587ZGkm1tFarn7YG/I alblxV9fjvBYrlrVSY9whetLYal92tT/1BqIiYSx1EV6ZCFudsMrx4xP/Ia8pDHu t0yU0ht+ic1HxezjCC3NzhtyzuYAuAxNlMdQRbJ92VFXL8O42R77nPsnPAM634BW nnFlYNrx22v7a0NHOPh6Y0K21ZN8LXlU7l9s83kUyEqtteH+6Z5CDIUFgRZYVu/2 IT9Z24RltINoatnO9Nej6uBmJ9+u+i4d3cDc3sl5da78vi5+T9d0v6bnmp4Mn+f0 V0zJ7elYV8uiGYnlo1vuTOk5RvKUlE/7sN31ewZlu09ePK4GQ+vZs0AapFtmyObp ayFmX2s3CwZs/hSeQazbmrP6DLqz8Vk1Cly48k+5KNs/8aQUu3TAD0s+WzhMXylj rC6WHd244ME4yOigBHGjIa7j8aUqIH3IccrfsALa2p4NO+gYwhVazi1KzTU3yT2U yxcC+GjSblrXPFXL5dTjcby4EU4hPP6kAIgAr+zFQHbHw3y7DKd3c40ytMsfwJOI RIeYuRgkIGiYMkjPCLj0CacvVNTOpO08taqBgo34wMRPNT1FnhAFsOxrd/co0U+E B/Hmz5nLAopE4Ho= =t16+ -----END PGP SIGNATURE----- --=-=-=--