On 12/12/2012 11:42 PM, Aleksandar Ristovski wrote:
This is generic for a given OS that happens to increment instruction
pointer to allow user code to e.g. set errno.
I provided only arm implementation, but other target cpus would need the
same if they implement software single stepping.
Increment is cpu specific for a given architecture.
'software single step' is implemented differently in the backend of each
port and your 'syscall_pc_increment' depends on the arch as well, so a
gdbarch hook is not needed here.
'gdbarch' stands for a certain general architecture, such as arm, mips,
and etc. 'gdbarch_tdep' contains the details of the cpus under this
architecture.