summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Hesling <hesling@chromium.org>2021-02-17 17:38:34 -0800
committerCommit Bot <commit-bot@chromium.org>2021-02-18 18:07:06 +0000
commit04f636f613c895b6e69fa39ab9a6adf4876ffd23 (patch)
treeae331b8463e829a96079b6f8ef66c8e84d1f0b72
parent61546caa4f43b8a278112b345845d34acbc2f447 (diff)
downloadchrome-ec-04f636f613c895b6e69fa39ab9a6adf4876ffd23.tar.gz
gdbinit: Change reg32 to ec-reg32
This makes it easier to find ec-* commands using tab complete. BRANCH=none BUG=none TEST=BOARD=nucleo-h743zi GDBPORT=2331 GDBSERVER=segger gdb-multiarch > ec-reg32 0x08000b6c 4 Change-Id: Id61d130f2350b4830df4f1db552aba072d00c06e Signed-off-by: Craig Hesling <hesling@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2703453 Commit-Queue: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
-rw-r--r--util/gdbinit5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/gdbinit b/util/gdbinit
index 0101d6b549..e1c9183f17 100644
--- a/util/gdbinit
+++ b/util/gdbinit
@@ -125,9 +125,9 @@ end
# Helper Functions #
#####################################################################
-# Usage: reg32 <address> [offset]
+# Usage: ec-reg32 <address> [offset]
# Read a 32 bit register
-define reg32
+define ec-reg32
set $a = $arg0
if $argc > 1
set $a += $arg1
@@ -137,6 +137,7 @@ define reg32
print /x $v
print /t $v
end
+alias reg32 = ec-reg32
# Usage: ec-connect
# Issue the overly long target connect command using the