Skip to content

Commit bcc42db

Browse files
authored
rtos: fix _lookup_symbols to return None if no symbols are found (#1773)
1 parent 4fa1123 commit bcc42db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyocd/rtos/provider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# pyOCD debugger
2-
# Copyright (c) 2016 Arm Limited
2+
# Copyright (c) 2016,2025 Arm Limited
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -62,7 +62,7 @@ def _lookup_symbols(self, symbolList, symbolProvider, allowPartial = False):
6262
syms[name] = addr
6363
elif not allowPartial:
6464
return None
65-
return syms
65+
return syms if syms else None
6666

6767
def init(self, symbolProvider):
6868
"""@retval True The provider was successfully initialzed.

0 commit comments

Comments
 (0)