Commit graph

25 commits

Author SHA1 Message Date
Tim Clem
b2a099b3ce server: Avoid a mach port leak on Apple Silicon.
Check for Rosetta before extracting the port right, since we won't need
it in that case anyway.
2023-08-10 10:02:35 +09:00
Brendan Shanks
93fde56b49 server: On macOS, fake debug registers when running under Rosetta.
Based on a patch by Tim Clem <tclem@codeweavers.com>.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54367
2023-02-17 11:18:52 +01:00
Brendan Shanks
5cf574998e server: Use correct context struct and thread flavor when setting debug registers on macOS. 2022-09-15 13:47:45 +02:00
Brendan Shanks
774769671c server: Write to correct context struct when getting debug registers on macOS. 2022-09-15 13:47:45 +02:00
Brendan Shanks
2075a78ed3 server: Report errors on macOS when getting/setting debug registers. 2022-09-15 13:47:45 +02:00
Brendan Shanks
28ec3090fa server: Remove 32-bit-specific macOS #ifdefs. 2022-09-15 13:47:45 +02:00
Brendan Shanks
f6cefaa9e0 server: Remove workarounds for Mac OS X 10.4.
Signed-off-by: Brendan Shanks <bshanks@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-02 09:50:46 +01:00
Alexandre Julliard
c954e5b9e6 server: Avoid using wine/port.h.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-07 18:03:11 +02:00
Alexandre Julliard
339ed57643 server: Get rid of the CPU type and functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-27 10:42:04 +02:00
Jacek Caban
80ceafc2a1 server: Don't change cached thread context in set_thread_context.
Let the caller take care of that.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-22 16:47:41 +02:00
Alexandre Julliard
fc17535eb9 server: No longer depend on libwine.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-05 23:36:23 +01:00
Alexandre Julliard
fe13f7a3b0 server: Determine the server directory in the server itself.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-05 23:36:23 +01:00
Alexandre Julliard
9a07d210f1 server: Add a platform-specific entry point to initialize registers of a new thread.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-27 17:04:04 +02:00
Charles Davis
b2aa984743 server: Get debug registers on 64-bit Mac OS. 2015-06-05 19:49:37 +09:00
Charles Davis
4fe1977743 server: Use mach_vm_* functions instead of the old vm_* functions. 2015-01-23 11:15:20 +01:00
Charles Davis
a51aaf898c server: Use syscall(2) instead of inline assembly on Mac OS, too. 2011-10-10 13:29:59 +02:00
Alexandre Julliard
e7a032c131 server: Work around Mac OS not being able to set global breakpoint flags. 2011-02-26 12:41:36 +01:00
Alexandre Julliard
5316dd011f server: Define a generic context structure instead of using the platform-specific version. 2009-04-08 19:59:23 +02:00
Alexandre Julliard
2cf868c0be server: Move ldt_copy to the init_process_done request and make it a client_ptr_t. 2008-12-31 15:09:59 +01:00
Alexandre Julliard
8e9c156e14 server: Make the address argument for read/write_process_memory a client_ptr_t. 2008-12-30 14:11:58 +01:00
Steven Edwards
77aa978d9e server: Remove unneeded semicolon. 2008-04-09 19:58:12 +02:00
Alexandre Julliard
0d16a7bbe4 Fixed some compilation issues on Mac OS X Leopard. 2007-03-12 16:14:18 +01:00
Alexandre Julliard
b3fb3a6739 server: Replace use of internal __pthread_kill() function by a system call. 2007-03-05 17:09:54 +01:00
Alexandre Julliard
ae4ecb6c64 server: Print a trace when sending a signal to a thread. 2007-01-18 12:23:29 +01:00
Alexandre Julliard
c273498ef4 server: Implement process control using Mach primitives for Mac OS.
With help from Ken Thomases.
2006-12-29 20:38:49 +01:00