summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Hesling <hesling@chromium.org>2021-02-17 17:35:39 -0800
committerCommit Bot <commit-bot@chromium.org>2021-02-18 18:07:05 +0000
commit61546caa4f43b8a278112b345845d34acbc2f447 (patch)
tree76e3f403fac9e209ab9babfd0e8ad8587af0d28a
parent5e607d6c41e92b2b15ee7c1310394ceaac1c49c7 (diff)
downloadchrome-ec-61546caa4f43b8a278112b345845d34acbc2f447.tar.gz
gdbinit: Fix ec-connnect cmd
When running this command, you would receive a python indention error and it would fail. BRANCH=none BUG=none TEST=BOARD=nucleo-h743zi GDBPORT=2331 GDBSERVER=segger gdb-multiarch > ec-connect Change-Id: I0b0800949d24ad1603a97ee436a6b8a3bec967f7 Signed-off-by: Craig Hesling <hesling@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2703452 Commit-Queue: Tom Hughes <tomhughes@chromium.org> Reviewed-by: Tom Hughes <tomhughes@chromium.org>
-rw-r--r--util/gdbinit4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/gdbinit b/util/gdbinit
index ca2318be04..0101d6b549 100644
--- a/util/gdbinit
+++ b/util/gdbinit
@@ -143,8 +143,8 @@ end
# specified gdb server port.
define ec-connect
python
- # May want to only use "target remote".
- gdb.execute('target extended-remote :%d'%GDBPORT)
+# May want to only use "target remote".
+gdb.execute(f'target extended-remote :{GDBPORT}')
end
end
alias connect = ec-connect