From 9958c449e347578f06c810d058539467b510f437 Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Sat, 5 Jun 2021 22:29:11 +0200 Subject: [PATCH] elf_mem_map: remove DWARF version except in help Fix version to DWARF3, which is what we actually support. --- tools/README.md | 2 +- tools/elf_mem_map | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/README.md b/tools/README.md index 2b4c7b82..02f4813f 100644 --- a/tools/README.md +++ b/tools/README.md @@ -14,7 +14,7 @@ Requires ``printcore`` from [Pronterface]. ### ``elf_mem_map`` -Generate a symbol table map starting directly from an ELF firmware with DWARF2 debugging information (which is the default using the stock board definition). +Generate a symbol table map starting directly from an ELF firmware with DWARF debugging information (which is the default using the stock board definition). When used along with a memory dump obtained from the D2 g-code, show the value of each symbol which is within the address range. diff --git a/tools/elf_mem_map b/tools/elf_mem_map index 079adf35..65a95732 100755 --- a/tools/elf_mem_map +++ b/tools/elf_mem_map @@ -377,11 +377,11 @@ def print_qdirstat(grefs): def main(): ap = argparse.ArgumentParser(description=""" Generate a symbol table map starting directly from an ELF - firmware with DWARF2 debugging information. + firmware with DWARF3 debugging information. When used along with a memory dump obtained from the D2 g-code, show the value of each symbol which is within the address range. """) - ap.add_argument('elf', help='ELF file containing DWARF2 debugging information') + ap.add_argument('elf', help='ELF file containing DWARF debugging information') ap.add_argument('--no-gaps', action='store_true', help='do not dump memory inbetween known symbols') ap.add_argument('--no-expand-structs', action='store_true',