summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtestcrashhandler_win.cpp
Commit message (Collapse)AuthorAgeFilesLines
* QTest::CrashHandler: prepare to disassemble the crashing instructionThiago Macieira2025-05-251-1/+2
| | | | | | | | This is the infrastructure code, without actually getting the instruction pointer from the machine context. Change-Id: Iadd2c78913b2d0177949fffdeafa12e9fc3daf87 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* QTest::CrashHandler: move the enum definition to the headerThiago Macieira2025-05-231-1/+0
| | | | | | | | | It's common between the two implementations, though currently completely unused on Windows because we don't start debuggers. Change-Id: I7a42db2db35cf6191693fffd3e4e46d482032630 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
* QTest::CrashHandler: move the Unix async-safe I/O code to the .cppThiago Macieira2025-05-231-3/+5
| | | | | | | | | | | | | | This declutters the header from code that doesn't need to be there and is only used in the .cpp anyway. This code used to be in qtestcase.cpp before commit c0014becca2cd376eadd5c8a0265e5cf47c9aa01, which we now amend. Additionally, since Windows code doesn't need to be async-safe anyway, we can simplify it. I'm also going to need the toHexString() lambda in another place. Change-Id: Ic9571bac864dfb31564cfffd785e8ab15cab3ae5 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
* QTest::CrashHandler: move windowsFaultHandler() out of the classThiago Macieira2025-05-231-1/+4
| | | | | | | | | It accesses no members (there are none!), which further simplifies the header. Change-Id: Ic1251d8b56dc6cfeb136fffd7baf4d8bc7143750 Reviewed-by: Ahmad Samir <a.samirh78@gmail.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* QTest::CrashHandler: move DebugSymbolResolver to the .cppThiago Macieira2025-05-231-0/+56
| | | | | | | | It doesn't need to be in the header. Change-Id: I2e80568174e6637c6be0fffde4837ac502f4641a Reviewed-by: Ahmad Samir <a.samirh78@gmail.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
* QTest::CrashHandler: split into Unix and Windows (2/2)Thiago Macieira2025-05-231-511/+5
| | | | | | | | | | | | | | This file is convoluted and hard to read due to #if all over the place. Let's split the two very different implementations. This is the conclusion, which removes the Unix code from the Windows file and the Windows code from the Unix file. Drive-by remove the unnecessary header #includes. Change-Id: Iec7bd36d0aeabdc3c445fffd17bad22050c6b208 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
* QTest::CrashHandler: split into Unix and Windows (1/2)Thiago Macieira2025-05-231-0/+676
This file is convoluted and hard to read due to #if all over the place. Let's split the two very different implementations. This is the first commit, which just copies the files around without any changes, to help with Git history. Change-Id: I758dad7a07d927ccb61dfffd0199fb5e1e544c98 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>