You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by je...@apache.org on 2020/10/23 09:53:16 UTC

[mynewt-core] branch master updated: flash_loader: Fix awk script

This is an automated email from the ASF dual-hosted git repository.

jerzy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git


The following commit(s) were added to refs/heads/master by this push:
     new bcd3787  flash_loader: Fix awk script
     new 8db3ac4  Merge pull request #2399 from kasjer/kasjer/fix-flash-loader-script
bcd3787 is described below

commit bcd37875d0ca64e96b35be1c811f4edbe4429bfb
Author: Jerzy Kasenberg <je...@codecoup.pl>
AuthorDate: Fri Oct 23 09:40:58 2020 +0200

    flash_loader: Fix awk script
    
    flash_loader.gdb generated script that was later sourced back
    into gdb with file_sz variable computed in shell.
    
    This script had extra backslash that was not really needed.
    awk complained about this extra \
---
 compiler/gdbmacros/flash_loader.gdb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler/gdbmacros/flash_loader.gdb b/compiler/gdbmacros/flash_loader.gdb
index 8860cc3..0c4a5b5 100644
--- a/compiler/gdbmacros/flash_loader.gdb
+++ b/compiler/gdbmacros/flash_loader.gdb
@@ -85,7 +85,7 @@ end
 # Load a file to a specific flash location
 #
 define fl_file_sz
-       shell wc -c $arg0 | awk '{print "set \$file_sz="$1}' > foo.gdb
+       shell wc -c $arg0 | awk '{print "set $file_sz="$1}' > foo.gdb
        source foo.gdb
        shell rm foo.gdb
 end