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
721a3c91
Commit
721a3c91
authored
May 08, 2012
by
Eric Pouech
Committed by
Alexandre Julliard
May 09, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Fix printing of fp registers for x86_64 CPU.
parent
1f3d99a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
be_x86_64.c
programs/winedbg/be_x86_64.c
+10
-6
No files found.
programs/winedbg/be_x86_64.c
View file @
721a3c91
...
...
@@ -70,6 +70,14 @@ static void be_x86_64_single_step(CONTEXT* ctx, unsigned enable)
else
ctx
->
EFlags
&=
~
STEP_FLAG
;
}
static
inline
long
double
m128a_to_longdouble
(
const
M128A
m
)
{
/* gcc uses the same IEEE-754 representation as M128A for long double
* but 16 byte aligned (hence only the first 10 bytes out of the 16 are used)
*/
return
*
(
long
double
*
)
&
m
;
}
static
void
be_x86_64_print_context
(
HANDLE
hThread
,
const
CONTEXT
*
ctx
,
int
all_regs
)
{
...
...
@@ -144,16 +152,12 @@ static void be_x86_64_print_context(HANDLE hThread, const CONTEXT* ctx,
for
(
i
=
0
;
i
<
4
;
i
++
)
{
long
double
st
;
memcpy
(
&
st
,
&
ctx
->
u
.
FltSave
.
FloatRegisters
[
i
*
10
],
10
);
dbg_printf
(
" st%u:%-16Lg "
,
i
,
st
);
dbg_printf
(
" st%u:%-16Lg "
,
i
,
m128a_to_longdouble
(
ctx
->
u
.
FltSave
.
FloatRegisters
[
i
]));
}
dbg_printf
(
"
\n
"
);
for
(
i
=
4
;
i
<
8
;
i
++
)
{
long
double
st
;
memcpy
(
&
st
,
&
ctx
->
u
.
FltSave
.
FloatRegisters
[
i
*
10
],
10
);
dbg_printf
(
" st%u:%-16Lg "
,
i
,
st
);
dbg_printf
(
" st%u:%-16Lg "
,
i
,
m128a_to_longdouble
(
ctx
->
u
.
FltSave
.
FloatRegisters
[
i
]));
}
dbg_printf
(
"
\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