From 2dd3c7bae290aefe40240ef9ae7485e33f25d4d3 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Sun, 13 Feb 2022 17:17:05 +0100 Subject: [PATCH] scripts: gdb.py: fix error messages --- scripts/gdb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/gdb.py b/scripts/gdb.py index 7ef525f..30fa20f 100644 --- a/scripts/gdb.py +++ b/scripts/gdb.py @@ -188,11 +188,11 @@ class Target: self.putpacket(b"g") reply = self.getpacket() if (reply == b'') or (reply[:1] == b'E'): - raise Exception('Error reading memory at 0x%08X' % addr) + raise Exception('Error reading target core registers') try: data = unhexify(reply) except Exception: - raise Exception('Invalid response to memory read packet: %r' % reply) + raise Exception('Invalid response to registers read packet: %r' % reply) ret = array.array('I',data) return ret