Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
8163465a
Commit
8163465a
authored
Oct 21, 1998
by
Ove Kaaven
Committed by
Alexandre Julliard
Oct 21, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added indirection for ctx_debug to the DOS loader, so Winelib works
again.
parent
af026d7c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
dosexe.h
include/dosexe.h
+2
-0
dosvm.c
loader/dos/dosvm.c
+4
-2
main.c
miscemu/main.c
+1
-0
No files found.
include/dosexe.h
View file @
8163465a
...
...
@@ -38,6 +38,8 @@ extern void MZ_KillModule( LPDOSTASK lpDosTask );
#endif
/* linux */
extern
void
(
*
ctx_debug_call
)(
int
sig
,
CONTEXT
*
);
extern
HINSTANCE16
MZ_CreateProcess
(
LPCSTR
name
,
LPCSTR
cmdline
,
LPCSTR
env
,
LPSTARTUPINFO32A
startup
,
LPPROCESS_INFORMATION
info
);
extern
int
DOSVM_Enter
(
PCONTEXT
context
);
...
...
loader/dos/dosvm.c
View file @
8163465a
...
...
@@ -27,6 +27,8 @@
#include "ldt.h"
#include "dosexe.h"
void
(
*
ctx_debug_call
)(
int
sig
,
CONTEXT
*
ctx
)
=
NULL
;
#ifdef MZ_SUPPORTED
#include <sys/mman.h>
...
...
@@ -99,7 +101,7 @@ static int DOSVM_Process( LPDOSTASK lpDosTask, int fn,
ret
=-
1
;
break
;
case
VM86_UNKNOWN
:
/* unhandled GPF */
DOSVM_Dump
(
lpDosTask
,
fn
,
VM86
);
ctx_debug
(
SIGSEGV
,
&
context
)
;
if
(
ctx_debug_call
)
ctx_debug_call
(
SIGSEGV
,
&
context
);
else
ret
=-
1
;
break
;
case
VM86_INTx
:
TRACE
(
int
,
"DOS EXE calls INT %02x with AX=%04lx
\n
"
,
VM86_ARG
(
fn
),
context
.
Eax
);
...
...
@@ -109,7 +111,7 @@ static int DOSVM_Process( LPDOSTASK lpDosTask, int fn,
case
VM86_PICRETURN
:
printf
(
"Trapped due to pending PIC request
\n
"
);
break
;
case
VM86_TRAP
:
ctx_debug
(
SIGTRAP
,
&
context
);
if
(
ctx_debug_call
)
ctx_debug_call
(
SIGTRAP
,
&
context
);
break
;
default:
DOSVM_Dump
(
lpDosTask
,
fn
,
VM86
);
...
...
miscemu/main.c
View file @
8163465a
...
...
@@ -130,6 +130,7 @@ int main( int argc, char *argv[] )
if
(
Options
.
debug
)
DEBUG_AddModuleBreakpoints
();
ctx_debug_call
=
ctx_debug
;
IF1632_CallLargeStack
=
(
int
(
*
)(
int
(
*
func
)(),
void
*
arg
))
CALL32_Init
();
Yield16
();
/* Start the first task */
MSG
(
"WinMain: Should never happen: returned from Yield16()
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment