Check func against 0 rather than NULL
authorYao Qi <yao.qi@linaro.org>
Wed, 30 Mar 2016 16:02:46 +0000 (17:02 +0100)
committerYao Qi <yao.qi@linaro.org>
Wed, 30 Mar 2016 16:03:29 +0000 (17:03 +0100)
commitfb3f3d25c3cbf561d33b258ff11fd8139f6ad75d
tree59975bca53c87d965bf98cd62c38f37aa59aec14
parent779aa56f2c160ef508ca98fac1ffd23cad6fc63f
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.
gdb/ChangeLog
gdb/arm-tdep.c