Skip to content

Commit

Permalink
GDBServer: don't send response to kill command.
Browse files Browse the repository at this point in the history
  • Loading branch information
flit committed Oct 11, 2020
1 parent 725ec62 commit 6f4bbf8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyocd/gdbserver/gdbserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def handle_message(self, msg):
reply = handler(msg[msgStart:])
self.lock.release()

detach = 1 if msg[1:2] in self.DETACH_COMMANDS else 0
detach = msg[1:2] in self.DETACH_COMMANDS
return reply, detach

except Exception as e:
Expand All @@ -441,7 +441,6 @@ def kill(self):
if not self.persist:
self.board.target.set_vector_catch(Target.VectorCatch.NONE)
self.board.target.resume()
return self.create_rsp_packet(b"")

def restart(self, data):
self.target.reset_and_halt()
Expand Down

0 comments on commit 6f4bbf8

Please sign in to comment.