Menu

#110 solve a bug when using remote-gdb in skyeye-1.3.5-rc

HEAD
open
nobody
None
5
2013-05-15
2013-05-15
zymingfit
No

Problem: when using remote-gdb in skyeye-1.3.5, run any problem, the gdb is always thinking the register CPSR's value is 0
Solution: modify the file in code source :skyeye-1.3.5_rc1/utils/debugger/arm_regdefs.c
in line 71, change the parameter of fucntion get_regval_by_id(rn) into 16,
as below:

===========================before modify=============================
69 else if (rn == CPSR_REGNUM) / FIXME: use PS_REGNUM from gdb/config/arm/tm-arm.h /
70 //regval = ARMul_GetCPSR (state);
71 regval = arch_instance->get_regval_by_id(rn);
====================================================================
===========================after modify=============================
69 else if (rn == CPSR_REGNUM) / FIXME: use PS_REGNUM from gdb/config/arm/tm-arm.h /
70 //regval = ARMul_GetCPSR (state);
71 regval = arch_instance->get_regval_by_id(16);
====================================================================

we will fix the bug perfectly in next version.

Discussion


Log in to post a comment.