mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 18:15:43 +00:00
a69b88b2f2
Sun Mar 15 03:46:50 1998 Dimitrie O. Paun <dimi@mail.cs.toronto.edu> * [*/*] Fixed some dprintf_ such that there is one and only one new line for each dprintf and that new line occurs at the end. Transformed some fprintfs into proper debug statements. Removed much redundancy from most of the debug statements. The redundancy appeared because now the component and function name is output automatically. Most debug statements also used to output the name of the function. All these changes prepared the source to switch completely to the new debugging interface. For more info, refer to ./documentation/debug-msg Sat Mar 14 19:45:23 1997 Andreas Mohr <100.30936@germany.net> * [misc/shell.c] [if1632/kernel.spec] Changed parameters of FUNC004() to fix a crash. Not sure if this fix is correct (doc wanted). * [windows/user.c] [if1632/user.spec] [include/user.h] Implemented UserSeeUserDo. * [msdos/int21.c] [include/msdos.h] Added "GET LIST OF LISTS" (INT 21/52h). Sat Mar 14 15:48:02 1998 Douglas Ridgway <ridgway@gmcl.com> * [include/windows.h] [relay32/gdi32.spec] [objects/enhmetafile.c] Beginnings of enhanced metafile support. Fri Mar 13 20:53:09 1998 John Richardson <jrichard@zko.dec.com> * [win32/console.c] Restart interrupted console writes. Fri Mar 13 18:59:24 1998 Matthew Becker <mbecker@glasscity.net> * [*/*.c] Updated documentation for API manpages. * [windows/dce.c] ReleaseDC16: Fixed cast. * [include/windows.h] [memory/virtual.c] VirtualQuery{Ex} should return DWORD instead of BOOL32. Fri Mar 13 13:03:06 1998 Marcus Meissner <msmeissn@cip.informatik.uni-erlangen.de> * [README][documentation/status/] README updated, added lzexpand,version and multimedia status notes to new documentation/status directory. * [ole/*.c][if1632/typelib.spec] Added typelib stubs, several small additions and fixes. * [loader/pe_image.c] Fixed a small bug (fixup_imports got passed the wrong hModule in a remapcase). * [loader/signal.c][if1632/signal.c][misc/winsock_dns.c] [loader/module.c] Fixed some recursive debugger crashes (caused by invalid FS). * [misc/registry.c] Two bugs fixed. Fri Mar 13 04:55:01 1998 David Lee Lambert <lamber45@egr.msu.edu> * [include/winnt.h] [include/winnls.h] Moved LANG_xxx flags to winnls.h * [include/winnls.h] Added flags for GetDateFormat(); fixed validity of LOCALE_SYSTEM_DEFAULT. * [include/windows.h] Added GetTimeFormat() prototypes. * [ole/ole2nls.c] Implemented ASCII date- and time-functions, using an optimized common core; added stubs for Unicode versions; started work on a Unicode core. * [AUTHORS] Added my name. Mon Mar 9 20:10:15 1998 Eric Kohl <ekohl@abo.rhein-zeitung.de> * [relay32/comctl32.spec] [include/imagelist.h] [include/commctrl.h] [misc/imagelist.c] [misc/Makefile.in] First attempt at implementing ImageLists. Sun Mar 8 20:19:49 1998 Uwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de> * [files/dos_fs.c] [configure.in] Try to get FileTimeToLocalFileTime,FileTimeToSystemTime and SystemTimeToFileTime right. Use timegm() where available. * [misc/lstr.c] Fix an off by one error in FormatMessage and handle the case when args = NULL (used by programs to get the length of the string). * [win32/console.c] Actual display a per-process Title string, better working attempt for WriteConsole32W and ReadConsole32W. Fri Mar 6 20:33:45 1998 Slaven Rezic <eserte@cs.tu-berlin.de> * [include/config.h.in][configure.in][multimedia/audio.c] [multimedia/dsound.c] Added check for FreeBSD sound system. Sun Mar 1 17:40:10 1998 Jason Schonberg <schon@mti.sgi.com> * [controls/edit.c] [include/ole.h] [include/shlobj.h] Removed final commas in enum types. Mon Feb 23 07:52:18 1998 Luiz Otavio L. Zorzella <zorzella@nr.conexware.com> * [multimedia/time.c] Workaround to avoid infinite recursion inside timeGetTime. * [multimedia/audio.c] WODM_GETNUMDEVS and WIDM_GETNUMDEVS only return 1 now if the SOUND_DEV can be opened, or if it's busy.
231 lines
7 KiB
C
231 lines
7 KiB
C
/*
|
|
* Signal context definitions
|
|
*
|
|
* Copyright 1995 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef __WINE_SIG_CONTEXT_H
|
|
#define __WINE_SIG_CONTEXT_H
|
|
|
|
#ifdef __i386__
|
|
|
|
#ifdef linux
|
|
typedef struct
|
|
{
|
|
unsigned short sc_gs, __gsh;
|
|
unsigned short sc_fs, __fsh;
|
|
unsigned short sc_es, __esh;
|
|
unsigned short sc_ds, __dsh;
|
|
unsigned long sc_edi;
|
|
unsigned long sc_esi;
|
|
unsigned long sc_ebp;
|
|
unsigned long sc_esp;
|
|
unsigned long sc_ebx;
|
|
unsigned long sc_edx;
|
|
unsigned long sc_ecx;
|
|
unsigned long sc_eax;
|
|
unsigned long sc_trapno;
|
|
unsigned long sc_err;
|
|
unsigned long sc_eip;
|
|
unsigned short sc_cs, __csh;
|
|
unsigned long sc_eflags;
|
|
unsigned long esp_at_signal;
|
|
unsigned short sc_ss, __ssh;
|
|
unsigned long i387;
|
|
unsigned long oldmask;
|
|
unsigned long cr2;
|
|
} SIGCONTEXT;
|
|
|
|
#define HANDLER_DEF(name) void name (int signal, SIGCONTEXT context)
|
|
#define HANDLER_CONTEXT (&context)
|
|
|
|
#endif /* linux */
|
|
|
|
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)
|
|
|
|
#include <signal.h>
|
|
typedef struct sigcontext SIGCONTEXT;
|
|
|
|
#define HANDLER_DEF(name) void name(int signal, int code, SIGCONTEXT *context)
|
|
#define HANDLER_CONTEXT context
|
|
|
|
#endif /* FreeBSD */
|
|
|
|
#if defined(__svr4__) || defined(_SCO_DS)
|
|
|
|
#include <signal.h>
|
|
#ifdef _SCO_DS
|
|
#include <sys/regset.h>
|
|
#endif
|
|
#include <sys/ucontext.h>
|
|
typedef struct ucontext SIGCONTEXT;
|
|
|
|
#define HANDLER_DEF(name) void name(int signal, void *siginfo, SIGCONTEXT *context)
|
|
#define HANDLER_CONTEXT context
|
|
|
|
#endif /* svr4 || SCO_DS */
|
|
|
|
#ifdef __EMX__
|
|
typedef unsigned long ULONG;
|
|
typedef unsigned short USHORT;
|
|
typedef struct _fpreg /* Note 1 */
|
|
{
|
|
ULONG losig;
|
|
ULONG hisig;
|
|
USHORT signexp;
|
|
} FPREG;
|
|
typedef FPREG *PFPREG;
|
|
|
|
typedef struct _CONTEXT /* Note 1 */
|
|
{
|
|
ULONG ContextFlags;
|
|
ULONG ctx_env[7];
|
|
FPREG ctx_stack[8];
|
|
ULONG ctx_SegGs;
|
|
ULONG ctx_SegFs;
|
|
ULONG ctx_SegEs;
|
|
ULONG ctx_SegDs;
|
|
ULONG ctx_RegEdi;
|
|
ULONG ctx_RegEsi;
|
|
ULONG ctx_RegEax;
|
|
ULONG ctx_RegEbx;
|
|
ULONG ctx_RegEcx;
|
|
ULONG ctx_RegEdx;
|
|
ULONG ctx_RegEbp;
|
|
ULONG ctx_RegEip;
|
|
ULONG ctx_SegCs;
|
|
ULONG ctx_EFlags;
|
|
ULONG ctx_RegEsp;
|
|
ULONG ctx_SegSs;
|
|
} SIGCONTEXT;
|
|
/*typedef CONTEXTRECORD *PCONTEXTRECORD;*/
|
|
|
|
#endif /* __EMX__ */
|
|
|
|
|
|
#if defined(linux) || defined(__NetBSD__) || defined(__FreeBSD__) \
|
|
|| defined(__OpenBSD__)
|
|
|
|
#define EAX_sig(context) ((context)->sc_eax)
|
|
#define EBX_sig(context) ((context)->sc_ebx)
|
|
#define ECX_sig(context) ((context)->sc_ecx)
|
|
#define EDX_sig(context) ((context)->sc_edx)
|
|
#define ESI_sig(context) ((context)->sc_esi)
|
|
#define EDI_sig(context) ((context)->sc_edi)
|
|
#define EBP_sig(context) ((context)->sc_ebp)
|
|
|
|
#define CS_sig(context) ((context)->sc_cs)
|
|
#define DS_sig(context) ((context)->sc_ds)
|
|
#define ES_sig(context) ((context)->sc_es)
|
|
#define SS_sig(context) ((context)->sc_ss)
|
|
|
|
#ifdef linux
|
|
/* fs and gs are not supported on *BSD. Hopefully we won't need them. */
|
|
#define FS_sig(context) ((context)->sc_fs)
|
|
#define GS_sig(context) ((context)->sc_gs)
|
|
#endif
|
|
|
|
#ifndef __FreeBSD__
|
|
#define EFL_sig(context) ((context)->sc_eflags)
|
|
#else
|
|
#define EFL_sig(context) ((context)->sc_efl)
|
|
#endif
|
|
|
|
#define EIP_sig(context) (*((unsigned long*)&(context)->sc_eip))
|
|
#define ESP_sig(context) (*((unsigned long*)&(context)->sc_esp))
|
|
|
|
#endif /* linux || __NetBSD__ || __FreeBSD__ || __OpenBSD__ */
|
|
|
|
#if defined(__svr4__) || defined(_SCO_DS)
|
|
|
|
#ifdef _SCO_DS
|
|
#define gregs regs
|
|
#endif
|
|
|
|
#define EAX_sig(context) ((context)->uc_mcontext.gregs[EAX])
|
|
#define EBX_sig(context) ((context)->uc_mcontext.gregs[EBX])
|
|
#define ECX_sig(context) ((context)->uc_mcontext.gregs[ECX])
|
|
#define EDX_sig(context) ((context)->uc_mcontext.gregs[EDX])
|
|
#define ESI_sig(context) ((context)->uc_mcontext.gregs[ESI])
|
|
#define EDI_sig(context) ((context)->uc_mcontext.gregs[EDI])
|
|
#define EBP_sig(context) ((context)->uc_mcontext.gregs[EBP])
|
|
|
|
#define CS_sig(context) ((context)->uc_mcontext.gregs[CS])
|
|
#define DS_sig(context) ((context)->uc_mcontext.gregs[DS])
|
|
#define ES_sig(context) ((context)->uc_mcontext.gregs[ES])
|
|
#define SS_sig(context) ((context)->uc_mcontext.gregs[SS])
|
|
|
|
#define FS_sig(context) ((context)->uc_mcontext.gregs[FS])
|
|
#define GS_sig(context) ((context)->uc_mcontext.gregs[GS])
|
|
|
|
#define EFL_sig(context) ((context)->uc_mcontext.gregs[EFL])
|
|
|
|
#define EIP_sig(context) ((context)->uc_mcontext.gregs[EIP])
|
|
#ifdef R_ESP
|
|
#define ESP_sig(context) ((context)->uc_mcontext.gregs[R_ESP])
|
|
#else
|
|
#define ESP_sig(context) ((context)->uc_mcontext.gregs[ESP])
|
|
#endif
|
|
|
|
#endif /* svr4 || SCO_DS */
|
|
|
|
#ifdef __EMX__
|
|
|
|
#define EAX_sig(context) ((context)->ctx_RegEax)
|
|
#define EBX_sig(context) ((context)->ctx_RegEbx)
|
|
#define ECX_sig(context) ((context)->ctx_RegEcx)
|
|
#define EDX_sig(context) ((context)->ctx_RegEdx)
|
|
#define ESI_sig(context) ((context)->ctx_RegEsi)
|
|
#define EDI_sig(context) ((context)->ctx_RegEdi)
|
|
#define EBP_sig(context) ((context)->ctx_RegEbp)
|
|
#define ESP_sig(context) ((context)->ctx_RegEsp)
|
|
#define CS_sig(context) ((context)->ctx_SegCs)
|
|
#define DS_sig(context) ((context)->ctx_SegDs)
|
|
#define ES_sig(context) ((context)->ctx_SegEs)
|
|
#define SS_sig(context) ((context)->ctx_SegSs)
|
|
#define FS_sig(context) ((context)->ctx_SegFs)
|
|
#define GS_sig(context) ((context)->ctx_SegGs)
|
|
#define EFL_sig(context) ((context)->ctx_EFlags)
|
|
#define EIP_sig(context) ((context)->ctx_RegEip)
|
|
|
|
#endif /* __EMX__ */
|
|
|
|
/* Generic definitions */
|
|
|
|
#define AX_sig(context) (*(WORD*)&EAX_sig(context))
|
|
#define BX_sig(context) (*(WORD*)&EBX_sig(context))
|
|
#define CX_sig(context) (*(WORD*)&ECX_sig(context))
|
|
#define DX_sig(context) (*(WORD*)&EDX_sig(context))
|
|
#define SI_sig(context) (*(WORD*)&ESI_sig(context))
|
|
#define DI_sig(context) (*(WORD*)&EDI_sig(context))
|
|
#define BP_sig(context) (*(WORD*)&EBP_sig(context))
|
|
|
|
#define AL_sig(context) (*(BYTE*)&EAX_sig(context))
|
|
#define AH_sig(context) (*((BYTE*)&EAX_sig(context)+1))
|
|
#define BL_sig(context) (*(BYTE*)&EBX_sig(context))
|
|
#define BH_sig(context) (*((BYTE*)&EBX_sig(context)+1))
|
|
#define CL_sig(context) (*(BYTE*)&ECX_sig(context))
|
|
#define CH_sig(context) (*((BYTE*)&ECX_sig(context)+1))
|
|
#define DL_sig(context) (*(BYTE*)&EDX_sig(context))
|
|
#define DH_sig(context) (*((BYTE*)&EDX_sig(context)+1))
|
|
|
|
#define IP_sig(context) (*(WORD*)&EIP_sig(context))
|
|
#define SP_sig(context) (*(WORD*)&ESP_sig(context))
|
|
|
|
#define FL_sig(context) (*(WORD*)&EFL_sig(context))
|
|
|
|
#ifdef FS_sig
|
|
#define HANDLER_INIT() SET_FS(FS_sig(HANDLER_CONTEXT))
|
|
#else FS_sig
|
|
#define HANDLER_INIT() /* nothing */
|
|
#endif
|
|
|
|
#else /* __i386__ */
|
|
|
|
#define HANDLER_DEF(name) void name (int signal)
|
|
#define HANDLER_INIT() /* nothing */
|
|
|
|
#endif /* __i386__ */
|
|
|
|
#endif /* __WINE_SIG_CONTEXT_H */
|