Check func against 0 rather than NULL
Variable 'func''s type is CORE_ADDR, so it should be compared with 0 rather than NULL. This causes a build error. This patch fixes this. gdb: 2016-03-30 Yao Qi <yao.qi@linaro.org> * arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against 0 rather than NULL.
This commit is contained in:
parent
779aa56f2c
commit
fb3f3d25c3
|
@ -1,3 +1,8 @@
|
|||
2016-03-30 Yao Qi <yao.qi@linaro.org>
|
||||
|
||||
* arm-tdep.c (arm_epilogue_frame_this_id): Check 'func' against
|
||||
0 rather than NULL.
|
||||
|
||||
2016-03-30 Yao Qi <yao.qi@linaro.org>
|
||||
|
||||
* arm-tdep.c: (arm_make_epilogue_frame_cache): New function.
|
||||
|
|
|
@ -2714,7 +2714,7 @@ arm_epilogue_frame_this_id (struct frame_info *this_frame,
|
|||
fall back to just using the current PC. */
|
||||
pc = get_frame_pc (this_frame);
|
||||
func = get_frame_func (this_frame);
|
||||
if (func == NULL)
|
||||
if (func == 0)
|
||||
func = pc;
|
||||
|
||||
(*this_id) = frame_id_build (cache->prev_sp, pc);
|
||||
|
|
Loading…
Reference in New Issue