From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1p63Ju-0004JM-2K for mharc-grub-devel@gnu.org; Fri, 16 Dec 2022 00:31:43 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p63JS-00047q-EL for grub-devel@gnu.org; Fri, 16 Dec 2022 00:31:25 -0500 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p63JO-0004Af-Ff for grub-devel@gnu.org; Fri, 16 Dec 2022 00:31:11 -0500 Received: by mail-pj1-x1036.google.com with SMTP id t11-20020a17090a024b00b0021932afece4so4935375pje.5 for ; Thu, 15 Dec 2022 21:31:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+5e7KtISbVDITu1gSU2JbFSxwLKIL19ZavuD/Lt9azM=; b=SA7aATsadgl3Vda9LWTg1jtfyoSWcGMhA/xRNxsNZWzlkjX81u2475DVg4NIdO8rGE BqE4dv17/1ggdnrDc1z76/3zT+9cYEDPAr2OI0wr3VBdLUElx574yNIeJbQFO2tR84dv szPoJ4ypbixYTXF8WeggqECFKArIxHYjuWW25OpuMhBjOv4q7l3Y7UibtsWk0rjdyOk0 8H5cGJstLuRrRqww96mnfUk832LHubnFwjVFkixKh8Z+rYY70lzzMrkjjpw5sSrU1hX2 UBH9l9KRwOE2JfeiPcOKaxrkTmMoAJ5qLDNCGsAf/GXhcHUv+iQp87sd/UtGEJdFdY74 3o6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+5e7KtISbVDITu1gSU2JbFSxwLKIL19ZavuD/Lt9azM=; b=NaiDencQFSWOV7/yJd77Pgdtpzds1+jgOC6DbYNXfMOinZEP63hSEXdSnzZKIKJRmw nc3aUcKgWx807h9BVI6GRDZkQBHsRLMUMxmui4SzfTmUthudSgwZ1uuhGVnLBZXkfl37 kJ2jTJs7f8VqfpiWDHqjj927kndThFY7fE8d4bvAhsJ2bZ8RpVzfmcVvjA9Ws6554Jx7 ienI/vcXh3Qt34m9vxwDq3plVdc5DcKyHSqTj0Ib0Kx4nrNzWO6iLDxWS1GTwpEQ3W4m ZM3VLIusdpkiGH6rRKQagrgVBntJEnB7/OLNTSdk6qAJgo3BWrQOwTlVoRj6im2IGoaL FWXw== X-Gm-Message-State: ANoB5pnYeY/8P+vGImuoNvE+AICMI8baawXv5pZ1FnQGQLpelJIPA1Ax 3dYGpsBC5U8SWCc7s7g5rs7KRFswr9ehCDX3 X-Google-Smtp-Source: AA0mqf5c02FkM1ymZrDgqlnDLWWoOkUgcLD+WfqEhuj84XTTQOevJXSpj0WhgLrhYGW+N1oJd3mhXA== X-Received: by 2002:a17:902:e845:b0:189:f8d0:7b8f with SMTP id t5-20020a170902e84500b00189f8d07b8fmr36981817plg.63.1671168667759; Thu, 15 Dec 2022 21:31:07 -0800 (PST) Received: from crass-HP-ZBook-15-G2.lan ([37.218.244.251]) by smtp.gmail.com with ESMTPSA id u4-20020a17090341c400b00187033cac81sm577714ple.145.2022.12.15.21.31.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Dec 2022 21:31:06 -0800 (PST) From: Glenn Washburn To: "grub-devel @ gnu . org" , Daniel Kiper Cc: Glenn Washburn Subject: [PATCH v4 13/15] gdb: Add extra early initialization symbols for i386-pc Date: Thu, 15 Dec 2022 23:29:36 -0600 Message-Id: <20221216052938.224564-14-development@efficientek.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221216052938.224564-1-development@efficientek.com> References: <20221216052938.224564-1-development@efficientek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1036; envelope-from=development@efficientek.com; helo=mail-pj1-x1036.google.com X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: Fri, 16 Dec 2022 05:31:30 -0000 Add symbols for boot.image, disk.image, and lzma_decompress.image if the target is i386-pc. Signed-off-by: Glenn Washburn --- grub-core/gdb_grub.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/grub-core/gdb_grub.in b/grub-core/gdb_grub.in index 3b3cea1a4d..a9c9d00430 100644 --- a/grub-core/gdb_grub.in +++ b/grub-core/gdb_grub.in @@ -181,12 +181,18 @@ set confirm off # fail. set $platform_efi = $_streq("@platform@", "efi") +set $target = "@target_cpu@-@platform@" if ! $runonce if $platform_efi # Only load the executable file, not the symbols exec-file kernel.exec else + if $_streq($target, "i386-pc") + add-symbol-file boot.image + add-symbol-file diskboot.image + add-symbol-file lzma_decompress.image + end file kernel.exec run_on_start runtime_load_module -- 2.34.1