From 7fe938a4bc7c218ee0adad47f1918784a0d38b17 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 3 Nov 2022 14:24:10 +0200 Subject: [PATCH] allow multiple spaces in svd command between arguments Before this patch: (gdb) svd AON_PMCTL PWRCTL Cluster in peripheral AON_PMCTL does not exist! but "svd AON_PMCTL PWRCTL" works as intended Note the difference is two spaces ("does not exist" output) versus a single space. --- cmdebug/svd_gdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdebug/svd_gdb.py b/cmdebug/svd_gdb.py index 4fb993b..6252729 100644 --- a/cmdebug/svd_gdb.py +++ b/cmdebug/svd_gdb.py @@ -179,7 +179,7 @@ def _print_register_fields(self, container_name, form, register): gdb.write("\n") def invoke(self, args, from_tty): - s = str(args).split(" ") + s = str(args).split() form = "" if s[0] and s[0][0] == '/': if len(s[0]) == 1: