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
36358806
Commit
36358806
authored
Feb 14, 1999
by
Juergen Schmied
Committed by
Alexandre Julliard
Feb 14, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented better output for indirect calls.
parent
b8f6ea52
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
7 deletions
+22
-7
db_disasm.c
debugger/db_disasm.c
+22
-7
No files found.
debugger/db_disasm.c
View file @
36358806
...
...
@@ -1011,10 +1011,11 @@ static void db_task_printsym(unsigned int addr, int size)
}
void
db_print_address
(
seg
,
size
,
addrp
)
db_print_address
(
seg
,
size
,
addrp
,
byref
)
char
*
seg
;
int
size
;
struct
i_addr
*
addrp
;
int
byref
;
{
if
(
addrp
->
is_reg
)
{
fprintf
(
stderr
,
"%s"
,
db_reg
[
size
][
addrp
->
disp
]);
...
...
@@ -1033,8 +1034,22 @@ db_print_address(seg, size, addrp)
if
(
addrp
->
index
)
fprintf
(
stderr
,
",%s,%d"
,
addrp
->
index
,
1
<<
addrp
->
ss
);
fprintf
(
stderr
,
")"
);
}
else
}
else
{
/* try to get destination of indirect call)
works not for segmented adresses */
if
(
!
seg
&&
byref
)
{
DBG_ADDR
dbg_addr
=
{
0
,
0
,
*
(
LPDWORD
)(
addrp
->
disp
)};
fprintf
(
stderr
,
"0x%x -> "
,
addrp
->
disp
);
if
(
DEBUG_IsBadReadPtr
(
&
dbg_addr
,
sizeof
(
DWORD
)))
fprintf
(
stderr
,
"(invalid destination)"
);
else
db_task_printsym
(
dbg_addr
.
off
,
0
);
}
else
db_task_printsym
(
addrp
->
disp
,
size
);
}
}
/*
...
...
@@ -1087,7 +1102,7 @@ void db_disasm_esc( DBG_ADDR *addr, int inst, int short_addr,
break
;
}
fprintf
(
stderr
,
"
\t
"
);
db_print_address
(
seg
,
BYTE
,
&
address
);
db_print_address
(
seg
,
BYTE
,
&
address
,
0
);
}
else
{
/*
...
...
@@ -1328,7 +1343,7 @@ void DEBUG_Disasm( DBG_ADDR *addr, int display )
case
E
:
if
(
db_display
)
{
db_print_address
(
seg
,
size
,
&
address
);
db_print_address
(
seg
,
size
,
&
address
,
0
);
}
break
;
...
...
@@ -1336,21 +1351,21 @@ void DEBUG_Disasm( DBG_ADDR *addr, int display )
if
(
db_display
)
{
fprintf
(
stderr
,
"*"
);
db_print_address
(
seg
,
size
,
&
address
);
db_print_address
(
seg
,
size
,
&
address
,
1
);
}
break
;
case
Ew
:
if
(
db_display
)
{
db_print_address
(
seg
,
WORD
,
&
address
);
db_print_address
(
seg
,
WORD
,
&
address
,
0
);
}
break
;
case
Eb
:
if
(
db_display
)
{
db_print_address
(
seg
,
BYTE
,
&
address
);
db_print_address
(
seg
,
BYTE
,
&
address
,
0
);
}
break
;
...
...
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