From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1pFMWv-0004lW-Bt for mharc-grub-devel@gnu.org; Tue, 10 Jan 2023 16:51:37 -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 1pFMWt-0004lD-Gw for grub-devel@gnu.org; Tue, 10 Jan 2023 16:51:35 -0500 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pFMWs-0002U7-2J for grub-devel@gnu.org; Tue, 10 Jan 2023 16:51:35 -0500 Received: by mail-pj1-x1032.google.com with SMTP id o1-20020a17090a678100b00219cf69e5f0so17945941pjj.2 for ; Tue, 10 Jan 2023 13:51:33 -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=IGfdbn2tk0MdL5/B7BvxXRCTTIywRQoonzydnApy6bU=; b=5OrBM4fGb4xwT9mvDoOwSqxrB2kmkyUvzRI0BLOt6xi4L9rXdqEn7uZRNKsfQLWfLM 7/eXnGFoMV58sW3Og8BZpd9fw9hZoAdOnD24so/0eObiamWzVVBFEvCEWvoGjWwbvotp 7pWVOJL3J42iJ57hmwrCbeG/i15/DbneONBtknViEsMnCFyetxcdg2FF4kcIXLUaEidj mOq2MwZqM0IzDzLfMIIVXbPXnahybuazMhgT8owRkGAX2QpdZVkePjBZXKz6N/lxAnmp UXWOrt180mHUODUfkN9knXqmBRkxURR7XFNMmQTDlS9G2uX9j8y/PyE+AuEGwd9OaX+R fhxQ== 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=IGfdbn2tk0MdL5/B7BvxXRCTTIywRQoonzydnApy6bU=; b=zEzqW9HpdAUZi6XOp7RcU3pcJ+5oghm4Cj8H8fMLDzBZHnEN74VXlNiA8nOz/w79aH jpSvd5vWkW4d6dw59aXegF1zq2FNOldW3NuJyvjK0zE1EmwqCZwa61PkK3ur1iJctDua B2u2/R50rqLshzLwlX+9a/FFiRxd8cnMLTRjk60/pougpPZsXcoZ5PsvxAWUOEo1koEH NtU+1ubSu9boD2ffx1T8MPcn+S4YqgKK6D5LgZuztUVrznTrRj3dmrwsfnDR0rlG/ih1 JUcbFUV2hWdnkAAiv8Kf53PRb2vdxywvHbeV3R6dGsjiYqhiTtrEnGO5tX/tk9XR51sg WyKA== X-Gm-Message-State: AFqh2ko9zQjiHPyMNKfaZpEkSzSHlfL5jJjQXt9tHN+TQphfGoRLBVyK mnZUHsEHo93wXckmZ74/kESdKfuL7iNF+5Uu X-Google-Smtp-Source: AMrXdXu7/7t/MG3ZJUiMTVvS5xzLRAsduo0TKBpej0DDtI6mp7rTE8/ISGUww1/5ity1QLdvr3BRYg== X-Received: by 2002:a17:903:3014:b0:191:1987:9f67 with SMTP id o20-20020a170903301400b0019119879f67mr60229923pla.34.1673387492347; Tue, 10 Jan 2023 13:51:32 -0800 (PST) Received: from crass-HP-ZBook-15-G2.lan ([199.254.238.56]) by smtp.gmail.com with ESMTPSA id u15-20020a1709026e0f00b00186c3af9644sm7760798plk.273.2023.01.10.13.51.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 13:51:31 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Robbie Harwood , Peter Jones , Glenn Washburn Subject: [PATCH v6 12/14] gdb: Add extra early initialization symbols for i386-pc Date: Tue, 10 Jan 2023 15:50:39 -0600 Message-Id: <20230110215041.1247699-13-development@efficientek.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230110215041.1247699-1-development@efficientek.com> References: <20230110215041.1247699-1-development@efficientek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::1032; envelope-from=development@efficientek.com; helo=mail-pj1-x1032.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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: Tue, 10 Jan 2023 21:51:35 -0000 Add symbols for boot.image, disk.image, and lzma_decompress.image if the target is i386-pc. This is only done for i386-pc because that is the only target that uses the images. By loading the symbols for these images, these images can be more easily debugged by allowing the setting of break- points in that code and to see easily get the value of data symbols. 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 8e89bbf368..f188a842ab 100644 --- a/grub-core/gdb_grub.in +++ b/grub-core/gdb_grub.in @@ -114,12 +114,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