[Lldb-commits] [PATCH] D154201: [lldb][AArch64] Fix tagged watch test on Graviton 3

David Spickett via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 4 03:16:19 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG8e76093ae8fe: [lldb][AArch64] Fix tagged watch test on Graviton 3 (authored by DavidSpickett).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154201/new/

https://reviews.llvm.org/D154201

Files:
  lldb/test/API/commands/watchpoints/watch_tagged_addr/TestWatchTaggedAddress.py


Index: lldb/test/API/commands/watchpoints/watch_tagged_addr/TestWatchTaggedAddress.py
===================================================================
--- lldb/test/API/commands/watchpoints/watch_tagged_addr/TestWatchTaggedAddress.py
+++ lldb/test/API/commands/watchpoints/watch_tagged_addr/TestWatchTaggedAddress.py
@@ -129,12 +129,15 @@
             substrs=["stop reason = watchpoint"],
         )
 
+        # Use the '-v' option to do verbose listing of the watchpoint.
+        # The hit count should now be 2.
+        self.expect("watchpoint list -v", substrs=["hit_count = 2"])
+
+        # On some hardware, during __do_global_dtors_aux a flag is set near
+        # the global which can trigger the watchpoint. So we must remove it.
+        self.runCmd("watchpoint delete 1")
         self.runCmd("process continue")
 
         # There should be no more watchpoint hit and the process status should
         # be 'exited'.
         self.expect("process status", substrs=["exited"])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should now be 2.
-        self.expect("watchpoint list -v", substrs=["hit_count = 2"])


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154201.537025.patch
Type: text/x-patch
Size: 1183 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230704/9024685b/attachment.bin>


More information about the lldb-commits mailing list