From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1p8w1L-0002sf-TC for mharc-grub-devel@gnu.org; Fri, 23 Dec 2022 23:20:27 -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 1p8w1K-0002rY-I7 for grub-devel@gnu.org; Fri, 23 Dec 2022 23:20:26 -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 1p8w1I-0000aV-Ky for grub-devel@gnu.org; Fri, 23 Dec 2022 23:20:26 -0500 Received: by mail-pj1-x1036.google.com with SMTP id o8-20020a17090a9f8800b00223de0364beso10349454pjp.4 for ; Fri, 23 Dec 2022 20:20:24 -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=qbzVeRG9ohLB3N6FRgQWiJRNbgykZ3+jdKM7dK5JLBeOJeqVJ7tM1bac6/7FrbDoRW VkFRpcYN37OSVox2G6d3MnP1OilVX6E7N/wmUdcnULOPAS6ADaf3rgqJngwsjw4TCh5V msAGFmYrPrYmLr1gFOoRx4q6xC5rt3+5s7OlkS3/w4UufzEk3ibSv9Xq7UY+X2mMjv6Z Emw774NgOUQvns4Ry83k8R/13Q8IF6Zmj9jnodB/9JWn75i1Fr9vx9Mvh/QvWVcq68d6 SPBIFjdUTrKuoLtQVM7BF3qsgN+BZ/fi9/2F9qYVouk3uYlbOYyYZebtWGies8TKYZUS cxxg== 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=4Lut5AQARE4nLrlrdewCGC43F4rrm1NOu2yoeSUgkQYIPMAW4bHdm+hARqQrMRNdy+ eR6x8RzAWI+AhmwH6YgWKqeLbsZc9q6GjzdpAlogqW6rqrlJmc9l6Sg2CNVW/qrlPf7A AIvqeEVpBdD+rXPsZO0lEowiYQLzChKqdzBJT+IZWMqqEaD6wVJbh+hJ4BHONtiKX6OS ZwzyVUJTPPrgXphyAl5gDysw7bKgkwp1G3RgHRgHV7/yvpTAEnlqdW6m0b9kuErmwD92 LOK4caLvYtmoQZ+YgUjjtDUCL+dSMTN57nevwhEjfc3d2teLXkhtlUS+dQsd2rWUL9dc BILA== X-Gm-Message-State: AFqh2kp9cdz1MmoAntvk5+++JbDdyxC9Ei5tzljZpCQH6+znqP4YuAV1 XoyaT8lqTNMdgIZKrNDj+EDp/MoBnhnhSwJd X-Google-Smtp-Source: AMrXdXsl1EikjUC0NgI3Olp7BJF7Fw3Iu63+G/1FvpBOZNVOT/5fpzy0QpAzgM2bs2HkR5clOzeNGQ== X-Received: by 2002:a05:6300:8181:b0:a5:6ed:669f with SMTP id bt1-20020a056300818100b000a506ed669fmr31338901pzc.2.1671855622768; Fri, 23 Dec 2022 20:20:22 -0800 (PST) Received: from localhost.localdomain ([204.13.164.84]) by smtp.gmail.com with ESMTPSA id x19-20020aa79413000000b005743b5ebd7csm3324185pfo.92.2022.12.23.20.20.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Dec 2022 20:20:21 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Robbie Harwood , Peter Jones , Glenn Washburn Subject: [PATCH v5 12/14] gdb: Add extra early initialization symbols for i386-pc Date: Fri, 23 Dec 2022 22:19:33 -0600 Message-Id: <20221224041935.787292-13-development@efficientek.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221224041935.787292-1-development@efficientek.com> References: <20221224041935.787292-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: -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: Sat, 24 Dec 2022 04:20:26 -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