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
c047d6dd
Commit
c047d6dd
authored
Jan 02, 2012
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: In x86_64 backend, now recognize 'rep ret' as a valid function return instruction.
parent
4d4955f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
be_x86_64.c
programs/winedbg/be_x86_64.c
+9
-1
No files found.
programs/winedbg/be_x86_64.c
View file @
c047d6dd
...
...
@@ -300,7 +300,15 @@ static unsigned be_x86_64_is_step_over_insn(const void* insn)
static
unsigned
be_x86_64_is_function_return
(
const
void
*
insn
)
{
BYTE
c
;
return
dbg_read_memory
(
insn
,
&
c
,
sizeof
(
c
))
&&
((
c
==
0xC2
)
||
(
c
==
0xC3
));
/* sigh... amd64 for prefetch optimization requires 'rep ret' in some cases */
if
(
!
dbg_read_memory
(
insn
,
&
c
,
sizeof
(
c
)))
return
FALSE
;
if
(
c
==
0xF3
)
/* REP */
{
insn
=
(
const
char
*
)
insn
+
1
;
if
(
!
dbg_read_memory
(
insn
,
&
c
,
sizeof
(
c
)))
return
FALSE
;
}
return
c
==
0xC2
/* ret */
||
c
==
0xC3
/* ret NN */
;
}
static
unsigned
be_x86_64_is_break_insn
(
const
void
*
insn
)
...
...
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