Alexandre Julliard
2bb668b1da
ntdll: Get some values from the parent stackframe in RtlCaptureContext.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 18:58:30 +02:00
Alexandre Julliard
1c49905182
ntdll: Add an assembly wrapper to return correct values for the current thread in NtGetContextThread.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 18:58:29 +02:00
Christian Inci
8335d9152f
ntdll/tests: Check debug registers of a newly created thread.
...
Signed-off-by: Christian Inci <chris.wine@broke-the-inter.net>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-10 21:51:40 +02:00
Huw Davies
8d8507808e
ntdll/tests: The fpu exception offset is broken on 32-bit Windows 8 too.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-25 19:49:50 +01:00
Daniel Lehman
594ddb6140
ntdll: Set Rip in for longjmp in RtlRestoreContext.
...
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-26 23:23:39 +09:00
Piotr Caban
b23de3cd4a
ntdll: Add support for exceptions inside termination handlers in __C_specific_handler.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-18 11:56:29 +09:00
Sebastian Lackner
8e8e03de63
ntdll/tests: Use inline implementation of NtCurrentTeb for exception tests.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-15 11:13:24 +09:00
Sebastian Lackner
123185c3a2
ntdll: Set correct number of arguments for breakpoint exceptions.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 11:20:12 +09:00
Sebastian Lackner
d0cc0dd69f
ntdll: Fix up instruction pointer in context for EXCEPTION_BREAKPOINT on x86_64.
...
Similar to eab168cf9e
for x86.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 11:20:08 +09:00
Sebastian Lackner
109e847f2a
ntdll/tests: Add separate tests for exception handling of int $0x3.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 11:20:06 +09:00
Sebastian Lackner
4e878e9114
ntdll/tests: Add additional tests for instruction pointer in debug service tests.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 11:20:03 +09:00
Sebastian Lackner
d0b88e7454
ntdll/tests: Add more tests for calling int $0x2d on x86 and x86_64.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 00:49:12 +09:00
Henri Verbeet
e65c89f1c5
ntdll: Add special handling for int $0x2d exceptions.
...
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 12:09:37 +09:00
Sebastian Lackner
446067b34d
ntdll/tests: Fix flags passed to VirtualFree in exception tests.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-14 12:39:03 +09:00
Sebastian Lackner
5b478f7c7e
ntdll/tests: Simplify exception tests by using todo_wine_if.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-10 21:50:19 +09:00
Sebastian Lackner
6483c07b4e
ntdll/tests: Add tests for setting debug registers with NtSetContextThread.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 15:50:54 +01:00
Qian Hong
b4172c08dd
ntdll/tests: Restore old value in a more context independent way.
...
Signed-off-by: Qian Hong <qhong@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-03 16:23:34 +09:00
Qian Hong
6a03e618df
ntdll/tests: Add SIMD exception test for floating point invalid operation fault.
...
Signed-off-by: Qian Hong <qhong@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-03 16:23:24 +09:00
Andrey Gusev
5cdcd4493f
Assorted spelling and typos fixes.
2015-08-18 15:00:13 +09:00
Francois Gouget
872e96fc4e
ntdll/tests: Remove an unneeded NONAMELESSSTRUCT directive.
2015-03-16 15:04:52 +09:00
Sebastian Lackner
275ee4b376
ntdll: Implement Rtl[Add|Remove]VectoredContinueHandler semi-stubs.
2014-11-14 14:16:30 +09:00
Sebastian Lackner
009b6a25bb
ntdll/tests: Add basic tests for Rtl[Add|Remove]VectoredContinueHandler.
2014-11-14 14:16:27 +09:00
André Hentschel
8fd7c73a2b
ntdll/tests: Get rid of "defined but not used" warnings on non-x86(_64) platforms.
2014-11-13 18:46:38 +09:00
Sebastian Lackner
9d82ee5cac
ntdll/tests: Add tests for DBG_RIPEXCEPTION debugger events.
2014-06-23 11:06:00 +02:00
Sebastian Lackner
99ac786c69
ntdll/tests: Add more tests for debug string events.
...
This patch adds additional tests, to check how debuggers handle
OUTPUT_DEBUG_STRING_EVENT events.
2014-06-20 16:30:57 +02:00
Sebastian Lackner
457f6af057
ntdll/tests: Run crashing i386 exception tests as the last step.
2014-06-20 12:20:25 +02:00
Sebastian Lackner
3aa62498da
ntdll/tests: Use an EXCEPTION_REGISTRATION_RECORD array to prevent compiler from reordering variables.
2014-06-20 12:19:53 +02:00
Sebastian Lackner
0828715179
ntdll/tests: Add exception tests for RtlUnwind on i386.
2014-06-19 19:44:34 +02:00
Sebastian Lackner
1b3d67aace
kernel32: Raise DBG_PRINTEXCEPTION_C exception in OutputDebugStringA.
2014-06-17 10:58:28 +02:00
Sebastian Lackner
dd0e9fe91e
ntdll/tests: Fix exception test failures on x86_64.
2014-06-11 19:15:01 +02:00
Sebastian Lackner
7821be356d
ntdll/tests: Add tests for dynamic unwind table.
2014-04-08 19:23:19 +02:00
André Hentschel
87c7c961f2
Assorted spelling fixes.
2014-01-06 17:33:24 +01:00
Frédéric Delanoy
1181c850dd
ntdll/tests: Constify a character string.
2013-12-27 14:31:53 +01:00
Frédéric Delanoy
5ba7f79bad
Assorted spelling fixes.
2013-12-03 19:41:53 +01:00
André Hentschel
a160a65317
ntdll: Enable compilation with -D__WINESRC__.
2013-11-06 12:01:53 +01:00
Frédéric Delanoy
760faf01a9
tests: Assorted spelling fixes.
2011-08-04 18:27:37 +02:00
Grazvydas Ignotas
2cc56f379c
server: Set debug enable bits briefly to commit the addresses to kernel.
2011-07-18 16:23:30 +02:00
Grazvydas Ignotas
fa179b1c26
server: Set RW and LEN bits of DR7 before setting DR0-DR3.
2011-07-18 16:23:30 +02:00
Grazvydas Ignotas
382d953872
ntdll/tests: Add more debug register tests.
2011-07-18 16:23:30 +02:00
André Hentschel
ba1f962d10
ntdll/tests: Don't test function directly when reporting GetLastError().
2010-12-29 11:59:33 +01:00
Greg Geldorp
3e6d91280d
ntdll/tests: Add alternative results for overlong instructions.
2010-12-22 14:30:37 +01:00
Alexandre Julliard
f712af41f5
ntdll/tests: Add a test for the exception resulting from an icebp instruction.
2010-06-30 11:55:32 +02:00
Alexandre Julliard
0fdcab06ac
ntdll/tests: Fix some exception tests for Wow64.
2010-06-22 13:51:18 +02:00
Alexandre Julliard
29937272cb
ntdll/tests: Skip a couple of exception tests that crash on Wow64.
2010-04-02 15:22:50 +02:00
Huw Davies
95c525e21b
ntdll/tests: Fix spelling of succeeded.
2009-11-04 16:45:18 +01:00
Ge van Geldorp
bc6f37ac00
ntdll/tests: Fix exception test failure on Win7.
2009-10-07 15:20:10 +02:00
Michael Karcher
ca4c571818
ntdll: Add handing of MEM_EXECUTE_OPTION_PERMANENT.
2009-08-18 11:19:55 +02:00
Michael Karcher
9476071fd2
ntdll: Don't send EXCEPTION_EXECUTE_FAULT to Windows programs that didn't enable DEP.
2009-08-18 11:19:46 +02:00
Michael Karcher
7aa1f6c346
ntdll: Add ProcessExecuteFlags handling to NtQueryInformationProcess.
2009-08-18 11:17:44 +02:00
Michael Karcher
c3c712c17f
ntdll/tests: Implement tests for data execution prevention.
2009-08-14 11:27:23 +02:00
Francois Gouget
ac831d5ab5
ntdll/tests: Fix the trailing '\n' of a skip() call.
2009-06-03 11:25:58 +02:00
Alexandre Julliard
6c35e3f47c
ntdll: Add test cases for the returned frame value in RtlVirtualUnwind.
2009-05-20 13:33:32 +02:00
Alexandre Julliard
1d4747c35f
ntdll: Add support for some function epilogs in RtlVirtualUnwind.
2009-05-20 13:32:47 +02:00
Alexandre Julliard
fb819d6491
ntdll/tests: Add more tests for RtlVirtualUnwind.
2009-05-20 12:21:07 +02:00
Alexandre Julliard
8c017aafbd
ntdll/tests: Added some test cases for RtlVirtualUnwind.
2009-05-18 12:11:53 +02:00
Alexandre Julliard
7f9750550a
ntdll: Set the exception address to the program counter in RtlRaiseException.
2009-04-10 13:17:12 +02:00
Alexandre Julliard
c709adcf16
ntdll: Update the context on send_debug_event for any successful status.
2009-04-10 12:37:22 +02:00
Henri Verbeet
0b511b9ad8
ntdll: Add a small test for FPU exceptions.
2009-01-05 12:34:46 +01:00
Francois Gouget
e9e8fbd0ef
ntdll/tests: Make rtlraiseexception_vectored_handler() static.
2008-12-12 11:42:23 +01:00
Alexandre Julliard
c190bdde50
ntdll/tests: Clear the direction flag in the handler since Windows may not do it.
...
Add some comments to make it easier to identify failing tests.
2008-09-16 22:35:48 +02:00
Peter Oberndorfer
9cd60e2024
ntdll: Add broken() to two test cases.
2008-07-02 11:49:52 +02:00
Alexandre Julliard
bb4119e1fd
ntdll/tests: Make sure to clear the DF flag on return from the exception.
2008-05-19 23:19:24 +02:00
James Hawkins
2470b0b316
ntdll: Fix a test that fails in win2k3.
2008-05-14 22:04:12 +02:00
Maarten Lankhorst
9c509234bc
ntdll: Fix some exception tests to pass on Windows.
2008-05-07 20:23:09 +02:00
Alexandre Julliard
902aef85c0
ntdll: Add test cases for the direction flag.
2008-03-20 14:27:35 +01:00
Alexandre Julliard
05c7174909
tests: Add a helper routine to wait for a child process and propagate its result correctly.
2008-02-07 12:56:00 +01:00
Peter Beutner
db28edc790
ntdll: Better trap exception handling.
2007-11-12 14:14:28 +01:00
Alexandre Julliard
088e27c849
ntdll/tests: Skip the debugger test if the child process is not loaded at the right address.
2007-09-20 17:01:31 +02:00
Paul Vriens
9783ce360e
ntdll/tests: Do GetModuleHandle only once and add a few skip's.
2007-08-21 13:00:50 +02:00
Francois Gouget
e4a98928ab
ntdll/tests: Remove an inappropriate const qualifier.
2007-05-29 13:46:27 +02:00
Peter Oberndorfer
eab168cf9e
ntdll: Fix up instruction pointer in context inside raise_exception.
2007-05-23 12:50:57 +02:00
Peter Beutner
86cbbaf930
ntdll: Remove one exception test.
2007-04-05 10:53:36 +02:00
Alexandre Julliard
cdb833bf33
ntdll: Fixed some exception codes and parameters.
2007-03-14 12:02:43 +01:00
Alexandre Julliard
0963b84603
ntdll/tests: Mask reserved bits before testing dr7.
...
Also some spelling fixes.
2007-03-14 12:01:12 +01:00
Peter Beutner
f09f9ef5e1
ntdll: Testcase for handling SIMD exceptions.
2007-03-09 11:53:16 +01:00
Peter Oberndorfer
1bfbcefb60
ntdll: Make exception test not hang when creating process fails.
2007-03-05 12:06:56 +01:00
Peter Oberndorfer
ce6f221db8
ntdll: Extend debugger tests.
...
Shows that second chance handler gets the same modified context as the exception handlers.
2007-02-27 13:15:09 +01:00
Peter Oberndorfer
647d0d9b88
ntdll/tests: Add a debugger around the exceptions.
...
Shows that the first chance handler gets a unmodified context.
Shows that changing the context has no effect when exception is not handled by debugger.
2007-02-27 13:14:39 +01:00
Peter Oberndorfer
a30bc5808e
ntdll: Add a vectored exception handling test to the existing RtlRaiseException test.
...
Show that context changes in vectored handler also affect stack handlers.
Show that vectored handlers also get the changed context.Eip value.
2007-02-16 12:30:54 +01:00
Peter Oberndorfer
b54cecab40
ntdll: Test that shows RtlRaiseException with EXCEPTION_BREAKPOINT mangles Eip of context.
2007-02-13 12:19:32 +01:00
Alexandre Julliard
e4bd0d889e
ntdll/tests: Fix exception test for CPUs that do segment limit checks differently.
2007-01-10 11:58:16 +01:00
Peter Beutner
6f88a7b7d4
ntdll: Fix single stepping over popf instruction.
2006-12-04 12:23:20 +01:00
Peter Beutner
6c9af2bdcb
ntdll: Add more exception tests.
2006-12-01 12:28:24 +01:00
Peter Beutner
b7393f29a4
ntdll: Run exception tests from executable memory.
2006-12-01 12:28:05 +01:00
Peter Beutner
94b548fd62
ntdll: Simplify exception tests.
...
- create helper function to setup exception frame and run the test
- lookup function ptr only once
- make "code data" const
- reuse global exception counter
- change alignment test to use stack address to generate an alignment exception. This avoids
the need to pass an argument, so it can use the created helper function.
(as the stack is (at least) 4 byte aligned, this works equally well)
2006-12-01 12:27:25 +01:00
Michael Stefaniuc
8ddaf6cc21
ntdll/tests: Win64 printf format warning fixes.
2006-10-14 20:17:34 +02:00
Marcus Meissner
ef5f360163
ntdll: More tests for exception handling.
...
- Check if we really set the debug register.
- Added unaligned access exception check.
- Added single step exception check.
2006-10-03 20:20:40 +02:00
Dmitry Timoshkov
66da242bfe
ntdll: Make test_debug_regs() print the actual Dr7 value it got.
2006-10-03 15:56:07 +02:00
Marcus Meissner
3a6d53e5d0
ntdll: Added debug registers test case.
2006-10-02 14:25:17 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Detlef Riekenberg
1be185f76e
ntdll/tests: Skip tests if NtCurrentTeb doesn't exist.
2006-01-12 13:29:49 +01:00
Alexandre Julliard
f54a59c072
ntdll/tests: Try to fail more gracefully on win9x.
...
Link to NtCurrentTeb dynamically.
2005-12-31 13:24:02 +01:00
Alexandre Julliard
07f84d0458
ntdll: More compatible exception information for protection faults.
...
Added a bunch of test cases.
2005-12-16 16:27:39 +01:00