winedbg: Use copy of be_i386_fetch_float for be_arm_fetch_float (except of long double).
This commit is contained in:
parent
84a036a435
commit
a948c20151
|
@ -237,8 +237,20 @@ static int be_arm_fetch_integer(const struct dbg_lvalue* lvalue, unsigned size,
|
||||||
static int be_arm_fetch_float(const struct dbg_lvalue* lvalue, unsigned size,
|
static int be_arm_fetch_float(const struct dbg_lvalue* lvalue, unsigned size,
|
||||||
long double* ret)
|
long double* ret)
|
||||||
{
|
{
|
||||||
dbg_printf("be_arm_fetch_float: not done\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;
|
||||||
|
|
||||||
|
switch (size)
|
||||||
|
{
|
||||||
|
case sizeof(float): *ret = *(float*)tmp; break;
|
||||||
|
case sizeof(double): *ret = *(double*)tmp; break;
|
||||||
|
default: return FALSE;
|
||||||
|
}
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct backend_cpu be_arm =
|
struct backend_cpu be_arm =
|
||||||
|
|
Loading…
Reference in New Issue