summaryrefslogtreecommitdiff
path: root/cross-project-tests
diff options
context:
space:
mode:
Diffstat (limited to 'cross-project-tests')
-rw-r--r--cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexDeclareAddress.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexDeclareAddress.py b/cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexDeclareAddress.py
index cf547601754f..708fc2760e03 100644
--- a/cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexDeclareAddress.py
+++ b/cross-project-tests/debuginfo-tests/dexter/dex/command/commands/DexDeclareAddress.py
@@ -51,8 +51,10 @@ class DexDeclareAddress(CommandBase):
try:
watch = step.program_state.frames[0].watches[self.expression]
except KeyError:
- pass
- else:
+ continue
+ try:
hex_val = int(watch.value, 16)
- self.address_resolutions[self.get_address_name()] = hex_val
- break
+ except ValueError:
+ hex_val = None
+ self.address_resolutions[self.get_address_name()] = hex_val
+ break