Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1npeTI-0006oQ-Fg for mharc-grub-devel@gnu.org; Fri, 13 May 2022 19:13:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56082) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npeTF-0006h9-P8 for grub-devel@gnu.org; Fri, 13 May 2022 19:13:17 -0400 Received: from mail-vs1-xe32.google.com ([2607:f8b0:4864:20::e32]:38476) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npeTE-0007Pj-8X for grub-devel@gnu.org; Fri, 13 May 2022 19:13:17 -0400 Received: by mail-vs1-xe32.google.com with SMTP id q2so9903614vsr.5 for ; Fri, 13 May 2022 16:13:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YQ55fNOhqgShTl6rFhl16hMqzuuTx0pfr82qdTcIg3s=; b=g+45368BqHMmGvMpR8IUh3GBpcxDbLeXllT/n+eSBDdtArNaZr2fbRlTAbcIiMik2N zZsdFdwPJ3HhBBo46NiVNXNzSWvkDLjMjYv2mf8bNU9H3mwYhKdOOAdGi3XX+S7aOYSC FCDbbWWU+iWmAYBjfrJnWwjFlzFzRJIZvvmj3sGIVzBd6m4n/NlF3eHZ/CSgBE8UQg8W 7NFSW7azL9L0HFJuS3x4LzfLSCFnCjwBAUuNOOtCDA/LpsR25EMfLZdsidtFbuVaoM+7 fTlbouMbxU2TYBreCnrhj9J4Erjt1u7Se781JGAyqUKDY4f9yYtlubfj2tCgbGKbL2gI 6oUQ== 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:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YQ55fNOhqgShTl6rFhl16hMqzuuTx0pfr82qdTcIg3s=; b=RfjL4Es0sk8d4mJdZJowWf0KWjCJWkt6Pk2U3jhcYqYp9kRKydC29LHUaH/meYAMBB 1/ULT2V5Mil5DIQunv83oaqaWMt4UnaWNsXkwjnxPxv5G+KVo33qoayRoyZdJB45nXbv XsaIuuvUJvGjU8tfD4czpMO7y1mtE6Xy2OLfOpeP+GeqNOUxAfs4zfbA01ue5EISGkXo MObAEB0AxqL6CwQeQztxYJNy4CVREtphbh1OzNyHLv5yRf4vd4dBhuw5YtLlo9KX8O8m YJSNqnf2s4WihUobvSax2uOQb6jI/cnwGXL5nxRwPXnyMTpC8gpejK/G/Et31seuWbRv 4EiQ== X-Gm-Message-State: AOAM531h+zmxq0wUNLinm3fB7c33Fqi4jTq88BCACG6h0ft+uJJNC9Co sOmRSKhtSzp2oFSSfb0cc6N+yOE8ndGwVSY5 X-Google-Smtp-Source: ABdhPJwAdUVbCKTm1QO17PikEd/UmwY2e5pZYKGjmW+QfQaBBuZNxS31SODwpT+bQlrEM10N7Gc1pQ== X-Received: by 2002:a67:6202:0:b0:32c:b39e:2bb1 with SMTP id w2-20020a676202000000b0032cb39e2bb1mr3317845vsb.48.1652483595263; Fri, 13 May 2022 16:13:15 -0700 (PDT) Received: from localhost.localdomain ([37.218.244.249]) by smtp.gmail.com with ESMTPSA id 129-20020a1f1387000000b0034e6f1fd067sm423865vkt.49.2022.05.13.16.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 16:13:14 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Peter Jones , Robbie Harwood , Glenn Washburn Subject: [PATCH v2 04/15] gdb: Move runtime module loading into runtime_load_module Date: Fri, 13 May 2022 18:12:37 -0500 Message-Id: <98f623bc324efed1259b4a25c534fcc64a00d776.1652482822.git.development@efficientek.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::e32; envelope-from=development@efficientek.com; helo=mail-vs1-xe32.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, T_SCC_BODY_TEXT_LINE=-0.01 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: Fri, 13 May 2022 23:13:18 -0000 Signed-off-by: Glenn Washburn --- grub-core/gdb_grub.in | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/grub-core/gdb_grub.in b/grub-core/gdb_grub.in index 77491816f..61dc4644f 100644 --- a/grub-core/gdb_grub.in +++ b/grub-core/gdb_grub.in @@ -70,16 +70,22 @@ document load_all_modules Load debugging information for all loaded modules. end +define runtime_load_module + break grub_dl_add + commands + silent + load_module mod + cont + end +end +document runtime_load_module + Load module symbols at runtime as they are loaded. +end + ### set confirm off file kernel.exec target remote :1234 -# inform when module is loaded -break grub_dl_add -commands - silent - load_module mod - cont -end +runtime_load_module -- 2.34.1