[Lldb-commits] [lldb] Fix a bug with cancelling "attach -w" after you have run a process previously (PR #65822)

2023-09-20 Thread David Spickett via lldb-commits
DavidSpickett wrote: This is failing on AArch64 Linux and Windows, it finds some async error in the output but the bots don't say what. I'll find what it is. https://github.com/llvm/llvm-project/pull/65822 ___ lldb-commits mailing list lldb-commits@li

[Lldb-commits] [lldb] Fix a bug with cancelling "attach -w" after you have run a process previously (PR #65822)

2023-09-20 Thread David Spickett via lldb-commits
@@ -127,3 +128,65 @@ def tearDown(self): # Call super's tearDown(). TestBase.tearDown(self) + +def test_run_then_attach_wait_interrupt(self): +# Test that having run one process doesn't cause us to be unable +# to interrupt a

[Lldb-commits] [lldb] d7fab66 - [lldb][AArch64] Add SME's streaming vector control register

2023-09-20 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2023-09-20T10:20:45+01:00 New Revision: d7fab666955e9ef0d456b6dfb737f5a18241c97c URL: https://github.com/llvm/llvm-project/commit/d7fab666955e9ef0d456b6dfb737f5a18241c97c DIFF: https://github.com/llvm/llvm-project/commit/d7fab666955e9ef0d456b6dfb737f5a18241c97c.diff

[Lldb-commits] [lldb] Fix a bug with cancelling "attach -w" after you have run a process previously (PR #65822)

2023-09-20 Thread David Spickett via lldb-commits
@@ -127,3 +128,65 @@ def tearDown(self): # Call super's tearDown(). TestBase.tearDown(self) + +def test_run_then_attach_wait_interrupt(self): +# Test that having run one process doesn't cause us to be unable +# to interrupt a

[Lldb-commits] [lldb] 3d422c4 - [lldb][API] Remove debug print in TestRunLocker.py

2023-09-20 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2023-09-20T10:01:32Z New Revision: 3d422c46828387770be07547d335a71719901979 URL: https://github.com/llvm/llvm-project/commit/3d422c46828387770be07547d335a71719901979 DIFF: https://github.com/llvm/llvm-project/commit/3d422c46828387770be07547d335a71719901979.diff LOG

[Lldb-commits] [lldb] fdc265b - [lldb][AArch64] Invalidate cached VG value before reconfiguring SVE registers

2023-09-20 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2023-09-20T16:05:34+01:00 New Revision: fdc265be26483be1e081ea3f1e11d78b8cc488af URL: https://github.com/llvm/llvm-project/commit/fdc265be26483be1e081ea3f1e11d78b8cc488af DIFF: https://github.com/llvm/llvm-project/commit/fdc265be26483be1e081ea3f1e11d78b8cc488af.diff

[Lldb-commits] [lldb] [lldb][AArch64] Invalidate SVG prior to reconfiguring ZA regdef (PR #66768)

2023-09-20 Thread David Spickett via lldb-commits
DavidSpickett wrote: I've just pushed a similar fix for SVE's VG (https://github.com/llvm/llvm-project/commit/fdc265be26483be1e081ea3f1e11d78b8cc488af). Fixes some test flakiness so I've pushed it directly. https://github.com/llvm/llvm-project/pull/66768 ___

[Lldb-commits] [lldb] [lldb][AArch64] Invalidate SVG prior to reconfiguring ZA regdef (PR #66768)

2023-09-20 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett updated https://github.com/llvm/llvm-project/pull/66768 >From 3d4834fd5ab994dd312b28b874e73f0807b117dc Mon Sep 17 00:00:00 2001 From: David Spickett Date: Tue, 22 Aug 2023 14:42:35 +0100 Subject: [PATCH] [lldb][AArch64] Invalidate SVG prior to reconfiguring ZA

[Lldb-commits] [lldb] [lldb][AArch64] Invalidate SVG prior to reconfiguring ZA regdef (PR #66768)

2023-09-20 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/66768 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][AArch64] Add release notes and documentation for SME (PR #66767)

2023-09-20 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/66767 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][AArch64] Add release notes and documentation for SME (PR #66767)

2023-09-20 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett updated https://github.com/llvm/llvm-project/pull/66767 >From 705251d8ecbed546f46a5929a298ad88c70cc330 Mon Sep 17 00:00:00 2001 From: David Spickett Date: Tue, 22 Aug 2023 11:12:23 +0100 Subject: [PATCH] [lldb][AArch64] Add release notes and documentation for SM

[Lldb-commits] [lldb] Fix a bug with cancelling "attach -w" after you have run a process previously (PR #65822)

2023-09-21 Thread David Spickett via lldb-commits
DavidSpickett wrote: Thanks for looking into this. Well for now at least we know that users on Linux will only see the bug 1 in N times :) (the bots are still red but for unrelated reasons) https://github.com/llvm/llvm-project/pull/65822 ___ lldb-com

[Lldb-commits] [lldb] a7b78ca - Revert "[lldb] Add 'modify' type watchpoints, make it default (#66308)"

2023-09-21 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2023-09-21T09:30:07Z New Revision: a7b78cac9a77e3ef6bbbd8ab1a559891dc693401 URL: https://github.com/llvm/llvm-project/commit/a7b78cac9a77e3ef6bbbd8ab1a559891dc693401 DIFF: https://github.com/llvm/llvm-project/commit/a7b78cac9a77e3ef6bbbd8ab1a559891dc693401.diff LOG

[Lldb-commits] [lldb] [lldb] Add 'modify' type watchpoints, make it default (PR #66308)

2023-09-21 Thread David Spickett via lldb-commits
DavidSpickett wrote: I've reverted this due to failures on Arm/AArch64 Linux, well, one test failing, one passing unexpectedly. Likely they are expecting the watchpoint to go off even when not modified. If I can fix them I'll do that and reland this. https://github.com/llvm/llvm-project/pull/6

[Lldb-commits] [lldb] 75e8620 - Reland "[lldb] Add 'modify' type watchpoints, make it default (#66308)"

2023-09-21 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2023-09-21T10:35:15Z New Revision: 75e862077834c06e574d34e8958dd2ee7cc1d334 URL: https://github.com/llvm/llvm-project/commit/75e862077834c06e574d34e8958dd2ee7cc1d334 DIFF: https://github.com/llvm/llvm-project/commit/75e862077834c06e574d34e8958dd2ee7cc1d334.diff LOG

[Lldb-commits] [lldb] [lldb] Add 'modify' type watchpoints, make it default (PR #66308)

2023-09-21 Thread David Spickett via lldb-commits
DavidSpickett wrote: I've updated the tests and relanded but there is still some stuff to check. The tagged address test is working fine but the default watchpoint type is different between the 2 commands, which seems wrong at first glance. For the other one see https://github.com/llvm/llvm-pr

[Lldb-commits] [lldb] [lldb] Add 'modify' type watchpoints, make it default (PR #66308)

2023-09-21 Thread David Spickett via lldb-commits
DavidSpickett wrote: Where the "commands" are: ``` watchpoint set expression -s 4 -- tagged_ptr watchpoint set variable global_var ``` They default to different types. https://github.com/llvm/llvm-project/pull/66308 ___ lldb-commits mailing list lldb-c

[Lldb-commits] [lldb] 43812c8 - [lldb][AArch64] Linux corefile support for SME

2023-09-21 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2023-09-21T13:24:34+01:00 New Revision: 43812c8c87b1c14bbcd160d613b7d8a60c21f260 URL: https://github.com/llvm/llvm-project/commit/43812c8c87b1c14bbcd160d613b7d8a60c21f260 DIFF: https://github.com/llvm/llvm-project/commit/43812c8c87b1c14bbcd160d613b7d8a60c21f260.diff

[Lldb-commits] [lldb] 3fa5035 - Revert "[lldb][AArch64] Linux corefile support for SME"

2023-09-21 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2023-09-21T12:53:18Z New Revision: 3fa503582315f23f187a019f026c5fce59b3f3d8 URL: https://github.com/llvm/llvm-project/commit/3fa503582315f23f187a019f026c5fce59b3f3d8 DIFF: https://github.com/llvm/llvm-project/commit/3fa503582315f23f187a019f026c5fce59b3f3d8.diff LOG

[Lldb-commits] [lldb] 7e74446 - Reland "[lldb][AArch64] Linux corefile support for SME"

2023-09-21 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2023-09-21T14:54:51+01:00 New Revision: 7e744460e7ef0c3c54191b4cd0d7e9749d6fc16c URL: https://github.com/llvm/llvm-project/commit/7e744460e7ef0c3c54191b4cd0d7e9749d6fc16c DIFF: https://github.com/llvm/llvm-project/commit/7e744460e7ef0c3c54191b4cd0d7e9749d6fc16c.diff

[Lldb-commits] [lldb] 2d69bb7 - [lldb][AArch64] Initialise m_sve_state in NativeRegisterContextLinux

2023-09-21 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2023-09-21T15:04:15+01:00 New Revision: 2d69bb721386af419824c93fbeb92f79861f1add URL: https://github.com/llvm/llvm-project/commit/2d69bb721386af419824c93fbeb92f79861f1add DIFF: https://github.com/llvm/llvm-project/commit/2d69bb721386af419824c93fbeb92f79861f1add.diff

[Lldb-commits] [lldb] [lldb] Require paused process and frame for "register info" command (PR #67124)

2023-09-22 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/67124 Prior to this the command would simply crash when run on a running process. Of the three register commands, "info" was the only one missing these requirements. On some level it makes sense because you're n

[Lldb-commits] [lldb] [lldb] Require paused process and frame for "register info" command (PR #67124)

2023-09-22 Thread David Spickett via lldb-commits
@@ -659,3 +659,16 @@ def test_fs_gs_base(self): pthread_self_val.GetValueAsUnsigned(0), "fs_base does not equal to pthread_self() value.", ) + +def test_process_must_be_stopped(self): +"""Check that all register commands error when th

[Lldb-commits] [lldb] [lldb] Require paused process and frame for "register info" command (PR #67124)

2023-09-22 Thread David Spickett via lldb-commits
@@ -659,3 +659,16 @@ def test_fs_gs_base(self): pthread_self_val.GetValueAsUnsigned(0), "fs_base does not equal to pthread_self() value.", ) + +def test_process_must_be_stopped(self): +"""Check that all register commands error when th

[Lldb-commits] [lldb] [lldb] Require paused process and frame for "register info" command (PR #67124)

2023-09-22 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/67124 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Require paused process and frame for "register info" command (PR #67124)

2023-09-22 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/67124 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Require paused process and frame for "register info" command (PR #67124)

2023-09-22 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett updated https://github.com/llvm/llvm-project/pull/67124 >From 90d4354a0305b9a88fee8e25292ecc3dcec5723d Mon Sep 17 00:00:00 2001 From: David Spickett Date: Fri, 22 Sep 2023 12:26:24 + Subject: [PATCH 1/2] [lldb] Require paused process and frame for "register

[Lldb-commits] [lldb] [lldb] Require paused process and frame for "register info" command (PR #67124)

2023-09-22 Thread David Spickett via lldb-commits
@@ -659,3 +659,16 @@ def test_fs_gs_base(self): pthread_self_val.GetValueAsUnsigned(0), "fs_base does not equal to pthread_self() value.", ) + +def test_process_must_be_stopped(self): +"""Check that all register commands error when th

[Lldb-commits] [lldb] [lldb] Require paused process and frame for "register info" command (PR #67124)

2023-09-22 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett resolved https://github.com/llvm/llvm-project/pull/67124 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Require paused process and frame for "register info" command (PR #67124)

2023-09-22 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett closed https://github.com/llvm/llvm-project/pull/67124 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Require paused process and frame for "register info" command (PR #67124)

2023-09-22 Thread David Spickett via lldb-commits
DavidSpickett wrote: Thanks for the explanation. Now I understand what I'm seeing is the expected behaviour, and async mode is the expected way to achieve what the test needs. https://github.com/llvm/llvm-project/pull/67124 ___ lldb-commits mailing li

[Lldb-commits] [lldb] [lldb] Don't rely on ScriptInterpreterPythonImpl::Initialize in the unit tests (PR #82096)

2024-02-21 Thread David Spickett via lldb-commits
DavidSpickett wrote: This change has caused a failing test on Linux: https://lab.llvm.org/buildbot/#/builders/68/builds/69157 That's not the first build, because the bot was red for ages beforehand and I'm not going to check them all. I've bisected it on arm64 instead to confirm it and get a

[Lldb-commits] [lldb] [lldb] Don't rely on ScriptInterpreterPythonImpl::Initialize in the unit tests (PR #82096)

2024-02-21 Thread David Spickett via lldb-commits
@@ -9,43 +9,27 @@ #include "gtest/gtest.h" #include "Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h" -#include "Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h" -#include "Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h" #include "Plugins/Script

[Lldb-commits] [lldb] [lldb] [debugserver] fix qLaunchSuccess error, add QErrorStringInPacketSupported (PR #82593)

2024-02-22 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/82593 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] [debugserver] fix qLaunchSuccess error, add QErrorStringInPacketSupported (PR #82593)

2024-02-22 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/82593 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Don't rely on ScriptInterpreterPythonImpl::Initialize in the unit tests (PR #82096)

2024-02-22 Thread David Spickett via lldb-commits
DavidSpickett wrote: Thanks! Fixed the x86 bot and I confirmed it locally. https://github.com/llvm/llvm-project/pull/82096 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb] Fix nullptr dereference on running x86 binary with x86-disabled llvm (PR #82603)

2024-02-22 Thread David Spickett via lldb-commits
DavidSpickett wrote: Can this code be hit when using an x86 core file? Then you could write a shell test thatis `UNSUPPORTED: x86-registered-target` (whatever the proper syntax is) and assert that it does not crash. It won't get run on the build bots, they enable all targets, but it's nice to

[Lldb-commits] [lldb] [lldb][test] Remove vendored packages `unittest2` and `progress` (PR #82670)

2024-02-23 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett approved this pull request. https://github.com/llvm/llvm-project/pull/82670 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] 73f11f9 - [lldb][test] Correct results regex for Windows

2024-02-26 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-02-26T10:55:31Z New Revision: 73f11f9579a3206608ad9a07b5793ba451676087 URL: https://github.com/llvm/llvm-project/commit/73f11f9579a3206608ad9a07b5793ba451676087 DIFF: https://github.com/llvm/llvm-project/commit/73f11f9579a3206608ad9a07b5793ba451676087.diff LOG

[Lldb-commits] [lldb] d0b1fec - [lldb][test][Windows] Remove expected fail for a thread state test

2024-02-26 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-02-26T11:17:04Z New Revision: d0b1fec9e1510d01dad2c9c429573eaa75f0963c URL: https://github.com/llvm/llvm-project/commit/d0b1fec9e1510d01dad2c9c429573eaa75f0963c DIFF: https://github.com/llvm/llvm-project/commit/d0b1fec9e1510d01dad2c9c429573eaa75f0963c.diff LOG

[Lldb-commits] [lldb] 285bff3 - [lldb][test][Windows] Skip thread state test on Windows

2024-02-26 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-02-26T13:54:05Z New Revision: 285bff39fd283b3a9a27c06525111d8d4f474e6e URL: https://github.com/llvm/llvm-project/commit/285bff39fd283b3a9a27c06525111d8d4f474e6e DIFF: https://github.com/llvm/llvm-project/commit/285bff39fd283b3a9a27c06525111d8d4f474e6e.diff LOG

[Lldb-commits] [lldb] 8ce81e5 - [lldb][test][Windows] Don't assert that module cache is empty

2024-02-26 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-02-26T14:01:54Z New Revision: 8ce81e5924935436d49e0b4e835fa107531505b5 URL: https://github.com/llvm/llvm-project/commit/8ce81e5924935436d49e0b4e835fa107531505b5 DIFF: https://github.com/llvm/llvm-project/commit/8ce81e5924935436d49e0b4e835fa107531505b5.diff LOG

[Lldb-commits] [lldb] a1bbba0 - [lldb][test][Windows] Fix NonStop tests on case insensitive file systems

2024-02-27 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-02-27T09:34:42Z New Revision: a1bbba06eabc5ddf533e611d15fddcfd0a8e79db URL: https://github.com/llvm/llvm-project/commit/a1bbba06eabc5ddf533e611d15fddcfd0a8e79db DIFF: https://github.com/llvm/llvm-project/commit/a1bbba06eabc5ddf533e611d15fddcfd0a8e79db.diff LOG

[Lldb-commits] [lldb] [lldb] Add SBProcess methods for get/set/use address masks (PR #83095)

2024-02-27 Thread David Spickett via lldb-commits
@@ -407,6 +407,129 @@ class LLDB_API SBProcess { /// the process isn't loaded from a core file. lldb::SBFileSpec GetCoreFile(); + /// Get the current address mask that can be applied to addresses + /// before reading from memory. + /// + /// \param[in] type + ///

[Lldb-commits] [lldb] [lldb] Add SBProcess methods for get/set/use address masks (PR #83095)

2024-02-27 Thread David Spickett via lldb-commits
@@ -407,6 +407,129 @@ class LLDB_API SBProcess { /// the process isn't loaded from a core file. lldb::SBFileSpec GetCoreFile(); + /// Get the current address mask that can be applied to addresses + /// before reading from memory. + /// + /// \param[in] type + ///

[Lldb-commits] [lldb] [lldb] Add SBProcess methods for get/set/use address masks (PR #83095)

2024-02-27 Thread David Spickett via lldb-commits
@@ -407,6 +407,129 @@ class LLDB_API SBProcess { /// the process isn't loaded from a core file. lldb::SBFileSpec GetCoreFile(); + /// Get the current address mask that can be applied to addresses + /// before reading from memory. + /// + /// \param[in] type + ///

[Lldb-commits] [lldb] [lldb] Add SBProcess methods for get/set/use address masks (PR #83095)

2024-02-27 Thread David Spickett via lldb-commits
@@ -407,6 +407,129 @@ class LLDB_API SBProcess { /// the process isn't loaded from a core file. lldb::SBFileSpec GetCoreFile(); + /// Get the current address mask that can be applied to addresses + /// before reading from memory. + /// + /// \param[in] type + ///

[Lldb-commits] [lldb] [LLDB] Fix completion of space-only lines in the REPL on Linux (PR #83203)

2024-02-28 Thread David Spickett via lldb-commits
DavidSpickett wrote: Test? I remember a file dedicated to completion tests somewhere. https://github.com/llvm/llvm-project/pull/83203 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][test] Exclude third_party packages by default (PR #83191)

2024-02-28 Thread David Spickett via lldb-commits
DavidSpickett wrote: > This introduces a LLDB_TEST_USE_VENDOR_PACKAGES cmake param that can be > enabled, and the tests will continue loading that tree. I get the intent but doing it this way is actually going to be more of an issue. As changes to our bot config have to go through zorg, a mas

[Lldb-commits] [lldb] [lldb][test] Exclude third_party packages by default (PR #83191)

2024-02-28 Thread David Spickett via lldb-commits
DavidSpickett wrote: Though maybe you intend this to break builds, that way obscure builders that we don't know about will still hear about this? I can understand that angle, in which case do we want to make sure all known builders have pexpect installed before this commit goes in? I will sort

[Lldb-commits] [lldb] [lldb][test] Exclude third_party packages by default (PR #83191)

2024-02-28 Thread David Spickett via lldb-commits
DavidSpickett wrote: Also are there known compatible/incompatible versions of pexpect? Is `pip install pexpect` going to install something with significant API differences to the vendored copy? https://github.com/llvm/llvm-project/pull/83191 ___ lldb

[Lldb-commits] [lldb] [lldb][test][NFC] Add option to exclude third_party packages (PR #83191)

2024-02-28 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett approved this pull request. You need to update the PR description but otherwise LGTM. https://github.com/llvm/llvm-project/pull/83191 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-

[Lldb-commits] [lldb] [LLDB] Fix completion of space-only lines in the REPL on Linux (PR #83203)

2024-02-28 Thread David Spickett via lldb-commits
@@ -54,3 +55,16 @@ def test_basic_completion(self): self.expect_repl("$persistent + 10", substrs=["(long) $2 = 17"]) self.quit() + +# PExpect uses many timeouts internally and doesn't play well +# under ASAN on a loaded machine.. +@skipIfAsan +@

[Lldb-commits] [lldb] [LLDB] Fix completion of space-only lines in the REPL on Linux (PR #83203)

2024-02-28 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett approved this pull request. I'd like to know if there's a good reason for the skip beyond machine load, but this is fine as is. LGTM. https://github.com/llvm/llvm-project/pull/83203 ___ lldb-commits mailing list lldb-c

[Lldb-commits] [lldb] [LLDB] Fix completion of space-only lines in the REPL on Linux (PR #83203)

2024-02-28 Thread David Spickett via lldb-commits
@@ -54,3 +55,16 @@ def test_basic_completion(self): self.expect_repl("$persistent + 10", substrs=["(long) $2 = 17"]) self.quit() + +# PExpect uses many timeouts internally and doesn't play well +# under ASAN on a loaded machine.. +@skipIfAsan +@

[Lldb-commits] [lldb] [lldb] Ignore swig warnings about shadowed overloads (PR #83317)

2024-02-29 Thread David Spickett via lldb-commits
DavidSpickett wrote: I admit I was too scared of SWIG to look into these myself, but it always annoyed me that we were only 2 warnings away from a clean build. Thanks for fixing this! https://github.com/llvm/llvm-project/pull/83317 ___ lldb-commits m

[Lldb-commits] [lldb] [lldb] Add SBProcess methods for get/set/use address masks (PR #83095)

2024-02-29 Thread David Spickett via lldb-commits
@@ -407,6 +407,118 @@ class LLDB_API SBProcess { /// the process isn't loaded from a core file. lldb::SBFileSpec GetCoreFile(); + /// \{ + /// \group Mask Address Methods + /// + /// \a type + /// All of the methods in this group take \a type argument + /// which

[Lldb-commits] [lldb] [lldb] Add SBProcess methods for get/set/use address masks (PR #83095)

2024-02-29 Thread David Spickett via lldb-commits
@@ -1255,6 +1255,95 @@ lldb::SBFileSpec SBProcess::GetCoreFile() { return SBFileSpec(core_file); } +addr_t SBProcess::GetAddressMask(AddressMaskType type, + AddressMaskRange addr_range) { + LLDB_INSTRUMENT_VA(this, type, addr_range); + addr_

[Lldb-commits] [lldb] [lldb] Add SBProcess methods for get/set/use address masks (PR #83095)

2024-02-29 Thread David Spickett via lldb-commits
@@ -33,18 +33,26 @@ void AddressableBits::SetHighmemAddressableBits( m_high_memory_addr_bits = highmem_addressing_bits; } +addr_t AddressableBits::AddressableBitToMask(uint32_t addressable_bits) { + assert(addressable_bits <= sizeof(addr_t) * 8); DavidSpick

[Lldb-commits] [lldb] [lldb] Add SBProcess methods for get/set/use address masks (PR #83095)

2024-02-29 Thread David Spickett via lldb-commits
@@ -407,6 +407,118 @@ class LLDB_API SBProcess { /// the process isn't loaded from a core file. lldb::SBFileSpec GetCoreFile(); + /// \{ + /// \group Mask Address Methods + /// + /// \a type + /// All of the methods in this group take \a type argument + /// which

[Lldb-commits] [lldb] [lldb][test][NFC] Add option to exclude third_party packages (PR #83191)

2024-02-29 Thread David Spickett via lldb-commits
DavidSpickett wrote: The way the cmake is written it seems that Py_pexpect_FOUND is set to false the first time you run cmake. Then you install pexpect and lldb_find_python_module bails early because Py_pexpect_FOUND is *still* set to false. If you remove the CMake cache it'll then find pexpec

[Lldb-commits] [lldb] [lldb][test][NFC] Add option to exclude third_party packages (PR #83191)

2024-02-29 Thread David Spickett via lldb-commits
DavidSpickett wrote: And a data point, AArch64 and Arm Linux are fine with pexpect-4.9.0. Still working on getting it installed on the bot containers. https://github.com/llvm/llvm-project/pull/83191 ___ lldb-commits mailing list lldb-commits@lists.llv

[Lldb-commits] [lldb] [lldb][test][NFC] Add option to exclude third_party packages (PR #83191)

2024-02-29 Thread David Spickett via lldb-commits
DavidSpickett wrote: FYI @labath as the x86 bot owner. https://github.com/llvm/llvm-project/pull/83191 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] ec95379 - [lldb][test] Clear pexpect found var before checking again

2024-02-29 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-02-29T14:22:23Z New Revision: ec95379df363253ffcbbda21297417e703d5ccca URL: https://github.com/llvm/llvm-project/commit/ec95379df363253ffcbbda21297417e703d5ccca DIFF: https://github.com/llvm/llvm-project/commit/ec95379df363253ffcbbda21297417e703d5ccca.diff LOG

[Lldb-commits] [lldb] [lldb][test][NFC] Add option to exclude third_party packages (PR #83191)

2024-02-29 Thread David Spickett via lldb-commits
DavidSpickett wrote: > It should perhaps unset the variable first, I'll see if I can implement that. https://github.com/llvm/llvm-project/commit/ec95379df363253ffcbbda21297417e703d5ccca https://github.com/llvm/llvm-project/pull/83191 ___ lldb-commits

[Lldb-commits] [lldb] 99824cf - [lldb][test] Use pexpect spawn instead of spawnu

2024-02-29 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-02-29T14:59:51Z New Revision: 99824cf7967922bdd9ac895c949f330bb8d6b85a URL: https://github.com/llvm/llvm-project/commit/99824cf7967922bdd9ac895c949f330bb8d6b85a DIFF: https://github.com/llvm/llvm-project/commit/99824cf7967922bdd9ac895c949f330bb8d6b85a.diff LOG

[Lldb-commits] [lldb] [lldb][test][NFC] Add option to exclude third_party packages (PR #83191)

2024-02-29 Thread David Spickett via lldb-commits
DavidSpickett wrote: Arm and AArch64 bots now have pexpect 4.9.0 installed. For Linaro's bots at least, we would be ok with you flipping `LLDB_TEST_USE_VENDOR_PACKAGES` to `OFF` as the next step. This saves us getting a change through zorg and should "just work" now. https://github.com/llvm/l

[Lldb-commits] [lldb] ec8df55 - [lldb][test][Windows] Don't check for pexpect with LLDB_ENFORCE_STRICT_TEST_REQUIREMENTS

2024-03-01 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-03-01T09:47:17Z New Revision: ec8df555702d85511290742388d28016b69468de URL: https://github.com/llvm/llvm-project/commit/ec8df555702d85511290742388d28016b69468de DIFF: https://github.com/llvm/llvm-project/commit/ec8df555702d85511290742388d28016b69468de.diff LOG

[Lldb-commits] [lldb] [lldb][test][NFC] Add option to exclude third_party packages (PR #83191)

2024-03-01 Thread David Spickett via lldb-commits
DavidSpickett wrote: Done: https://github.com/llvm/llvm-project/commit/ec8df555702d85511290742388d28016b69468de / https://github.com/llvm/llvm-zorg/commit/e08c692f75a922ee820ac8722f5033255913c195 https://github.com/llvm/llvm-project/pull/83191 ___ l

[Lldb-commits] [lldb] Address mask sbprocess apis and new mask invalid const (PR #83663)

2024-03-04 Thread David Spickett via lldb-commits
DavidSpickett wrote: > is about how TestAddressMasks.py assumes all Fix*Address implementations > will handle a low and high memory address mask. The test currently assumes > they do I'm not sure it makes much difference unless handling low/high produces a large amount of boilerplate in ever

[Lldb-commits] [lldb] Address mask sbprocess apis and new mask invalid const (PR #83663)

2024-03-05 Thread David Spickett via lldb-commits
@@ -0,0 +1,130 @@ +"""Test Python APIs for setting, getting, and using address masks.""" + +import os +import lldb +from lldbsuite.test.decorators import * +from lldbsuite.test.lldbtest import * +from lldbsuite.test import lldbutil + + +class AddressMasksTestCase(TestBase): +N

[Lldb-commits] [lldb] [lldb][FreeBSD] Remove corefile test xfails (PR #84022)

2024-03-05 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/84022 Fixes #48759 As stated on the issue this was fixed by a change in FreeBSD 13, and I've confirmed that it passes on 14 as well. >From e07cfd18f760b08fb049d556f5115480fb25322d Mon Sep 17 00:00:00 2001 From:

[Lldb-commits] [lldb] [lldb][test][FreeBSD] Narrow vectorcall xfail to x86 platforms (PR #84024)

2024-03-05 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/84024 vectorcall only works on x86 https://clang.llvm.org/docs/AttributeReference.html#vectorcall so elsewhere it fails to compile. Which is expected on AArch64 for example so is treated as a pass. >From d86d1

[Lldb-commits] [lldb] [lldb][test][FreeBSD] Narrow vectorcall xfail to x86 platforms (PR #84024)

2024-03-05 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/84024 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][test][FreeBSD] Remove xfails from TestGDBRemoteLoad (PR #84026)

2024-03-05 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/84026 Fixes #48758 These are now passing on AArch64 FreeBSD 14. >From 746413849693e1e4e6d667fc136d90bc97486d82 Mon Sep 17 00:00:00 2001 From: David Spickett Date: Tue, 5 Mar 2024 15:06:49 + Subject: [PATCH]

[Lldb-commits] [lldb] [lldb][test][FreeBSD] Account for spsr being 8 bytes (PR #84032)

2024-03-05 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/84032 Since https://reviews.freebsd.org/D38983, spsr (aka cpsr) is stored as an 8 byte value. However in lldb's structures it is a 32 bit value still. The version number comes from https://cgit.freebsd.org/src/c

[Lldb-commits] [lldb] [lldb][test][FreeBSD] Account for spsr being 8 bytes in newer versions (PR #84032)

2024-03-05 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/84032 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][test][FreeBSD] Account for spsr being 8 bytes in newer versions (PR #84032)

2024-03-05 Thread David Spickett via lldb-commits
DavidSpickett wrote: This may also imply there is work to be done to make lldb show the upper 32 bits, but I'll leave that to the FreeBSD experts to decide. https://github.com/llvm/llvm-project/pull/84032 ___ lldb-commits mailing list lldb-commits@lis

[Lldb-commits] [lldb] Address mask sbprocess apis and new mask invalid const (PR #83663)

2024-03-06 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett approved this pull request. Still not sure this is the ideal API but we can't know that until someone (aka you :) ) has used it for a bit, so let's get this in. https://github.com/llvm/llvm-project/pull/83663 ___ lldb

[Lldb-commits] [lldb] [lldb] Address mask sbprocess apis and new mask invalid const (PR #83663)

2024-03-06 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/83663 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][FreeBSD] Add FreeBSD specific AT_HWCAP2 value (PR #84147)

2024-03-06 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett created https://github.com/llvm/llvm-project/pull/84147 While adding register fields I realised that the AUXV values for Linux and FreeBSD disagree here. So I've added a FreeBSD specific HWCAP2 value that I can use from FreeBSD specific code. The alternative

[Lldb-commits] [lldb] [lldb][FreeBSD] Add FreeBSD specific AT_HWCAP2 value (PR #84147)

2024-03-06 Thread David Spickett via lldb-commits
DavidSpickett wrote: Some notes: 1. This looks odd in isolation but I need to correct this to enable register fields on FreeBSD, which will be the next PR. 2. clang-format is going to complain about the enum, I will fix push a commit to fix that after this one, so that this commit stays readabl

[Lldb-commits] [lldb] [lldb][FreeBSD] Add FreeBSD specific AT_HWCAP value (PR #84147)

2024-03-06 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/84147 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][FreeBSD] Add FreeBSD specific AT_HWCAP value (PR #84147)

2024-03-06 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett edited https://github.com/llvm/llvm-project/pull/84147 ___ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] [lldb][FreeBSD] Add FreeBSD specific AT_HWCAP value (PR #84147)

2024-03-06 Thread David Spickett via lldb-commits
@@ -39,6 +43,11 @@ class AuxVector { AUXV_AT_EUID = 12, ///< Effective UID. AUXV_AT_GID = 13, ///< GID. AUXV_AT_EGID = 14, ///< Effective GID. + +// At this point Linux and FreeBSD diverge and many of the following values +// are Linux specific.

[Lldb-commits] [lldb] [lldb][FreeBSD] Add FreeBSD specific AT_HWCAP value (PR #84147)

2024-03-06 Thread David Spickett via lldb-commits
https://github.com/DavidSpickett updated https://github.com/llvm/llvm-project/pull/84147 >From a251b494614a0700f424c2bedebcabd2e053a653 Mon Sep 17 00:00:00 2001 From: David Spickett Date: Wed, 6 Mar 2024 09:08:25 + Subject: [PATCH 1/2] [lldb][FreeBSD] Add FreeBSD specific AT_HWCAP2 value W

[Lldb-commits] [lldb] [lldb] Address mask sbprocess apis and new mask invalid const (PR #83663)

2024-03-07 Thread David Spickett via lldb-commits
DavidSpickett wrote: We could have ABI plugins limit the mask to the known maximum address size, or set all the upper bits to 1. Though I think `0...0` is less confusing. But it's only fixing what you might call a visual issue, the mask will have upper 32 bits preserved, but at runtime no addr

[Lldb-commits] [lldb] 03588a2 - [lldb][test][FreeBSD] xfail TestPlatformConnect on AArch64

2024-03-07 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-03-07T14:54:30Z New Revision: 03588a27261f7ebea15af49268d2ec901fe1979e URL: https://github.com/llvm/llvm-project/commit/03588a27261f7ebea15af49268d2ec901fe1979e DIFF: https://github.com/llvm/llvm-project/commit/03588a27261f7ebea15af49268d2ec901fe1979e.diff LOG

[Lldb-commits] [lldb] 0f8cb68 - [lldb][Docs] Update the build guide

2024-03-08 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-03-08T10:43:17Z New Revision: 0f8cb6818d788c34d70d586f701469a5adabfce1 URL: https://github.com/llvm/llvm-project/commit/0f8cb6818d788c34d70d586f701469a5adabfce1 DIFF: https://github.com/llvm/llvm-project/commit/0f8cb6818d788c34d70d586f701469a5adabfce1.diff LOG

[Lldb-commits] [lldb] 2353321 - [lldb][Docs] Add Curses version note to build page

2024-03-08 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-03-08T11:33:17Z New Revision: 235332150d52d11b340a10be1bb88432d2cf4179 URL: https://github.com/llvm/llvm-project/commit/235332150d52d11b340a10be1bb88432d2cf4179 DIFF: https://github.com/llvm/llvm-project/commit/235332150d52d11b340a10be1bb88432d2cf4179.diff LOG

[Lldb-commits] [lldb] 73b2d67 - [lldb][FreeBSD] Fix crash when execve fails with asserts enabled

2024-03-08 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-03-08T17:15:11Z New Revision: 73b2d672c1c8318cd16a02812c39ae3997b9dbcd URL: https://github.com/llvm/llvm-project/commit/73b2d672c1c8318cd16a02812c39ae3997b9dbcd DIFF: https://github.com/llvm/llvm-project/commit/73b2d672c1c8318cd16a02812c39ae3997b9dbcd.diff LOG

[Lldb-commits] [lldb] [lldb] checks beforehand if lldb can trace/attach a process on FreeBSD. (PR #79662)

2024-03-08 Thread David Spickett via lldb-commits
@@ -48,20 +48,38 @@ static Status EnsureFDFlags(int fd, int flags) { return error; } +static Status CanTrace() { + int proc_debug, ret; + size_t len = sizeof(proc_debug); + ret = ::sysctlbyname("security.bsd.unprivileged_proc_debug", &proc_debug, + &

[Lldb-commits] [lldb] e77f5fe - [lldb][Docs] Add libxml2 to apt install command

2024-03-11 Thread David Spickett via lldb-commits
Author: David Spickett Date: 2024-03-11T11:41:56Z New Revision: e77f5fe889909df3508fd929f2636a0ac211877a URL: https://github.com/llvm/llvm-project/commit/e77f5fe889909df3508fd929f2636a0ac211877a DIFF: https://github.com/llvm/llvm-project/commit/e77f5fe889909df3508fd929f2636a0ac211877a.diff LOG

[Lldb-commits] [lldb] [lldb] Fix nullptr dereference on running x86 binary with x86-disabled llvm (PR #82603)

2024-03-11 Thread David Spickett via lldb-commits
DavidSpickett wrote: The spirit of the test is fine but I think we can avoid adding another core file. As this plugin seems related to backtrace perhaps the test should at least run `bt` and check for the first line of the output. Which means we can justify putting the test in `lldb/test/Shel

[Lldb-commits] [lldb] [lldb] Fix nullptr dereference on running x86 binary with x86-disabled llvm (PR #82603)

2024-03-11 Thread David Spickett via lldb-commits
@@ -0,0 +1,10 @@ +# UNSUPPORTED: x86 DavidSpickett wrote: This should be: ``` UNSUPPORTED: target-x86_64 ``` Which I'm pretty sure is lldb's equivalent of `x86-registered-target`. Which is whether the lldb has that target built into it, vs. whether it's running

[Lldb-commits] [lldb] [lldb] Fix nullptr dereference on running x86 binary with x86-disabled llvm (PR #82603)

2024-03-11 Thread David Spickett via lldb-commits
@@ -0,0 +1,10 @@ +# UNSUPPORTED: x86 DavidSpickett wrote: Actually, I'm wrong. We get the configured targets from llvm-config and I think that adds "X86" as a feature, target- is about what the default triple of llvm is. https://github.com/llvm/llvm-project/pu

[Lldb-commits] [lldb] [lldb] Save the edited line before clearing it in Editline::PrintAsync (PR #84154)

2024-03-12 Thread David Spickett via lldb-commits
DavidSpickett wrote: This failed on our AArch64 bot but due to zombie processes hanging about from other runs, not anything to do with this change specifically. https://github.com/llvm/llvm-project/pull/84154 ___ lldb-commits mailing list lldb-commits

[Lldb-commits] [lldb] [lldb][test] Add `pexpect` category for tests that `import pexpect` (PR #84860)

2024-03-12 Thread David Spickett via lldb-commits
@@ -914,6 +914,25 @@ def checkForkVForkSupport(): configuration.skip_categories.append("fork") +def checkPexpectSupport(): +from lldbsuite.test import lldbplatformutil + +platform = lldbplatformutil.getPlatform() + +# llvm.org/pr22274: need a pexpect repla

[Lldb-commits] [lldb] [lldb][test] Add `pexpect` category for tests that `import pexpect` (PR #84860)

2024-03-12 Thread David Spickett via lldb-commits
@@ -914,6 +914,25 @@ def checkForkVForkSupport(): configuration.skip_categories.append("fork") +def checkPexpectSupport(): +from lldbsuite.test import lldbplatformutil + +platform = lldbplatformutil.getPlatform() + +# llvm.org/pr22274: need a pexpect repla

[Lldb-commits] [lldb] [lldb] [Mach-O] ProcessMachCore needs to strip TBI data from addrs (PR #84998)

2024-03-13 Thread David Spickett via lldb-commits
@@ -0,0 +1,49 @@ +"""Test that lldb on Darwin ignores metadata in the top byte of addresses.""" DavidSpickett wrote: addresses in core files. Also the filename should have core somewhere in it. https://github.com/llvm/llvm-project/pull/84998 ___

<    5   6   7   8   9   10   11   12   13   14   >