From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1npeT9-0006Wm-9m for mharc-grub-devel@gnu.org; Fri, 13 May 2022 19:13:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1npeT7-0006WV-Dt for grub-devel@gnu.org; Fri, 13 May 2022 19:13:09 -0400 Received: from mail-ua1-x934.google.com ([2607:f8b0:4864:20::934]:40634) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1npeT5-0007Ov-Dq for grub-devel@gnu.org; Fri, 13 May 2022 19:13:09 -0400 Received: by mail-ua1-x934.google.com with SMTP id z15so3724514uad.7 for ; Fri, 13 May 2022 16:13:06 -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:mime-version :content-transfer-encoding; bh=edrMCu+5tlQTMgdnihoE3SOX9NGh0AWJoz1jyGVEbN8=; b=131mPKCuT32FDxCIRMy9y5I0T+O82YYIPPqdaJXCNxp0tIzdlN5hLjvL7xnNQxrECt zA679IZR89IaD8pELdGE3iH2+GFWdVBjZTb3Vq5j/2E7wBYazdJE42FtRXpCZw17Qpr+ dieOm3Vq2MCpZKr7BM/bTetVVxjPQwy9AiT0mHe1FCQiw5aru4nqyaZ4rsxhv5hBTet7 +kvkqyUwpjnhtNT9RFa25Ilu5AzQQe4hdEU00qyMGvjucpgnMmPsK55ZULHSJ7/up0km 9bxk68Kvxz047Pd/Svcu5AyaLLp7s3vGbFIbnCiuEpq3e4qONAjBHPnY4Q7YeB7jnv0B Ee5g== 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:mime-version :content-transfer-encoding; bh=edrMCu+5tlQTMgdnihoE3SOX9NGh0AWJoz1jyGVEbN8=; b=hbsoXK/4JAOK+llGyuxJdOio8HMWWM0F6gYQU7C+cDRj4KaNB+2qKN794t5Ldp0mYB hH/0apWWZclwo4QiqRqtAUEY3ReuNTmkDortfhIw8eTdn7RO/hah5d6fLGNWDh99d0kG Lu0NZB5G/8MfOY9SIWPyKL2lzTk5q8dGoSfRzOHpB7R+9iH2PPDdTavWGo4v3vDwnWFA eh/WfTR/P5WsbRck4RpfUmV8pjO1Tm2sBfe5e1Gu7a8v9TPy5y/c+E4XNGpUFBah//QH mhhl0srfltIX2nEKBslyglolg89hWtoTsjBQoKQTfanEQ1I7xINdpmvnM+D2XZP4S46o X6/Q== X-Gm-Message-State: AOAM533+iec+x3pAI+xaDBinUGn14pDj76eLc/j8MJqsMvELf55i2C38 sLWbn2bB1aRDCju+F2ll5UOF1EjXLyt6xB9p X-Google-Smtp-Source: ABdhPJxdHb2yjCKehURVHi/gufF0Ho9vbeAv716p4Wz2HM+Y75AhjFkDwmGRYEjvlNnMl5e7Mqcz9w== X-Received: by 2002:ab0:3c93:0:b0:365:a273:95d9 with SMTP id a19-20020ab03c93000000b00365a27395d9mr3592872uax.43.1652483586048; Fri, 13 May 2022 16:13:06 -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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 16:13:05 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Peter Jones , Robbie Harwood , Glenn Washburn Subject: [PATCH v2 00/15] GDB script fixes and improvements Date: Fri, 13 May 2022 18:12:33 -0500 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::934; envelope-from=development@efficientek.com; helo=mail-ua1-x934.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:09 -0000 There's been a lot of changes since v1. There are more fixes and more features. The majority of the shell code has been moved to an external file named gdb_helper.sh, instead of being inline in the GDB script. The one (direct) PERL dependency in GRUB has been removed and converted to shell script. Also a section on debugging is added to the developer docs. Glenn Glenn Washburn (15): gdb: Fix redirection issue in dump_module_sections gdb: Prevent wrapping when writing to .segments.tmp gdb: If no modules have been loaded, do not try to load module symbols gdb: Move runtime module loading into runtime_load_module gdb: Get correct mod variable value gdb: Do not run load_module if module has already been loaded gdb: Add functions to make loading from dynamically positioned targets easier gdb: Remove Perl dependency for GRUB GDB script gdb: If enabled, print line used to load EFI kernel symbols when using gdb_grub script gdb: Conditionally run GDB script logic for dynamically or statically positioned GRUB gdb: Only connect to remote target once when first sourced gdb: Allow user defined "onload_" command to be run when module is loaded gdb: Allow running user-defined commands at GRUB start gdb: Add ability to turn on shell tracing for gdb helper script docs: Add debugging chapter to development documentation config.h.in | 3 + docs/grub-dev.texi | 191 ++++++++++++++++++++++++++++++++++ grub-core/Makefile.core.def | 4 +- grub-core/gdb_grub.in | 198 ++++++++++++++++++++++++++++++++---- grub-core/gdb_helper.sh.in | 108 ++++++++++++++++++++ grub-core/gmodule.pl.in | 30 ------ grub-core/kern/efi/efi.c | 4 +- grub-core/kern/efi/init.c | 19 +++- include/grub/efi/efi.h | 2 +- 9 files changed, 501 insertions(+), 58 deletions(-) create mode 100644 grub-core/gdb_helper.sh.in delete mode 100644 grub-core/gmodule.pl.in -- 2.34.1