Browse Source

scripts: gdb.py: fix error messages

pull/986/head
Nicolas Schodet 3 years ago
committed by Piotr Esden-Tempski
parent
commit
2dd3c7bae2
  1. 4
      scripts/gdb.py

4
scripts/gdb.py

@ -188,11 +188,11 @@ class Target:
self.putpacket(b"g") self.putpacket(b"g")
reply = self.getpacket() reply = self.getpacket()
if (reply == b'') or (reply[:1] == b'E'): 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: try:
data = unhexify(reply) data = unhexify(reply)
except Exception: 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) ret = array.array('I',data)
return ret return ret

Loading…
Cancel
Save