Move ARM_CPSR_GREGNUM to arch/arm-linux.h
authorYao Qi <yao.qi@linaro.org>
Wed, 20 Apr 2016 11:31:53 +0000 (12:31 +0100)
committerYao Qi <yao.qi@linaro.org>
Wed, 20 Apr 2016 11:32:15 +0000 (12:32 +0100)
commit6885166d994162c92dc9053bdf2d87e67a452db3
tree49ea3ee0823e60e198206be970bc6cd40bad7a82
parent7cc9c114fef05bc603111c0ceb6d2275c0275deb
Move ARM_CPSR_GREGNUM to arch/arm-linux.h

This patch moves macro ARM_CPSR_GREGNUM to arch/arm-linux.h so that it
can be used in GDBserver side.

gdb:

2016-04-20  Yao Qi  <yao.qi@linaro.org>

* arm-linux-tdep.h (ARM_CPSR_GREGNUM): Move it to ...
* arch/arm-linux.h: ... here.

gdb/gdbserver:

2016-04-20  Yao Qi  <yao.qi@linaro.org>

* linux-aarch32-low.c: Include "arch/arm-linux.h".
(arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
number 16.
(arm_store_gregset): Likewise.
gdb/ChangeLog
gdb/arch/arm-linux.h
gdb/arm-linux-tdep.h
gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-aarch32-low.c
This page took 0.027522 seconds and 4 git commands to generate.