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
7d3a9c6f
Commit
7d3a9c6f
authored
Feb 03, 2010
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 04, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedbg: Implement float fetching for x86-64 debugger.
parent
7c9cd449
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
be_i386.c
programs/winedbg/be_i386.c
+1
-1
be_x86_64.c
programs/winedbg/be_x86_64.c
+17
-3
No files found.
programs/winedbg/be_i386.c
View file @
7d3a9c6f
...
@@ -726,7 +726,7 @@ static int be_i386_fetch_integer(const struct dbg_lvalue* lvalue, unsigned size,
...
@@ -726,7 +726,7 @@ static int be_i386_fetch_integer(const struct dbg_lvalue* lvalue, unsigned size,
static
int
be_i386_fetch_float
(
const
struct
dbg_lvalue
*
lvalue
,
unsigned
size
,
static
int
be_i386_fetch_float
(
const
struct
dbg_lvalue
*
lvalue
,
unsigned
size
,
long
double
*
ret
)
long
double
*
ret
)
{
{
char
tmp
[
12
];
char
tmp
[
sizeof
(
long
double
)
];
/* FIXME: this assumes that debuggee and debugger use the same
/* FIXME: this assumes that debuggee and debugger use the same
* representation for reals
* representation for reals
...
...
programs/winedbg/be_x86_64.c
View file @
7d3a9c6f
...
@@ -364,11 +364,25 @@ static int be_x86_64_fetch_integer(const struct dbg_lvalue* lvalue, unsigned siz
...
@@ -364,11 +364,25 @@ static int be_x86_64_fetch_integer(const struct dbg_lvalue* lvalue, unsigned siz
return
TRUE
;
return
TRUE
;
}
}
static
int
be_x86_64_fetch_float
(
const
struct
dbg_lvalue
*
lvalue
,
unsigned
size
,
static
int
be_x86_64_fetch_float
(
const
struct
dbg_lvalue
*
lvalue
,
unsigned
size
,
long
double
*
ret
)
long
double
*
ret
)
{
{
dbg_printf
(
"not done fetch_float
\n
"
);
char
tmp
[
sizeof
(
long
double
)];
return
FALSE
;
/* FIXME: this assumes that debuggee and debugger use the same
* representation for reals
*/
if
(
!
memory_read_value
(
lvalue
,
size
,
tmp
))
return
FALSE
;
/* float & double types have to be promoted to a long double */
switch
(
size
)
{
case
sizeof
(
float
):
*
ret
=
*
(
float
*
)
tmp
;
break
;
case
sizeof
(
double
):
*
ret
=
*
(
double
*
)
tmp
;
break
;
case
sizeof
(
long
double
):
*
ret
=
*
(
long
double
*
)
tmp
;
break
;
default:
return
FALSE
;
}
return
TRUE
;
}
}
struct
backend_cpu
be_x86_64
=
struct
backend_cpu
be_x86_64
=
...
...
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