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
15ca6c43
Commit
15ca6c43
authored
Apr 03, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Apr 03, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent crash in debugger.
parent
f585c61d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
db_disasm.c
debugger/db_disasm.c
+15
-8
No files found.
debugger/db_disasm.c
View file @
15ca6c43
...
@@ -1036,15 +1036,22 @@ db_print_address(seg, size, addrp, byref)
...
@@ -1036,15 +1036,22 @@ db_print_address(seg, size, addrp, byref)
}
}
else
{
else
{
/* try to get destination of indirect call
)
/* try to get destination of indirect call
works not
for segmented adresses */
does not work
for segmented adresses */
if
(
!
seg
&&
byref
)
{
if
(
!
seg
&&
byref
)
{
DBG_ADDR
dbg_addr
=
{
0
,
0
,
*
(
LPDWORD
)(
addrp
->
disp
)};
DBG_ADDR
dbg_addr
=
{
NULL
,
0
,
0
};
fprintf
(
stderr
,
"0x%x -> "
,
addrp
->
disp
);
if
(
DEBUG_IsBadReadPtr
(
&
dbg_addr
,
sizeof
(
DWORD
)))
dbg_addr
.
off
=
addrp
->
disp
;
fprintf
(
stderr
,
"(invalid destination)"
);
fprintf
(
stderr
,
"0x%x -> "
,
addrp
->
disp
);
else
if
(
DEBUG_IsBadReadPtr
(
&
dbg_addr
,
sizeof
(
LPDWORD
)))
{
db_task_printsym
(
dbg_addr
.
off
,
0
);
fprintf
(
stderr
,
"(invalid source)"
);
}
else
{
dbg_addr
.
off
=
*
(
LPDWORD
)(
addrp
->
disp
);
if
(
DEBUG_IsBadReadPtr
(
&
dbg_addr
,
sizeof
(
DWORD
)))
fprintf
(
stderr
,
"(invalid destination)"
);
else
db_task_printsym
(
dbg_addr
.
off
,
0
);
}
}
}
else
else
db_task_printsym
(
addrp
->
disp
,
size
);
db_task_printsym
(
addrp
->
disp
,
size
);
...
...
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