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.
+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.
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);