Dear all,
When using powerpc-eabivle-gdb of S32DS V1.2 for linux, i think that i have an incorrect behaviour about watchpoint.
In many PowerPC, the watchpoint exception occurs just before executing the load or store instruction at the watchpoint address.
But for the MPC5777M, the exception occurs at the instruction after executing the load or store.
Powerpc-eabivle-gdb, after getting the stop remote reply message indicating a watchpoint exception, request for a singlestep to really execute the load or store because it thinks to debug a classic PowerPC, but in case of MPC5777M, this singlestep is erroneous.
I make this change in the GDB source file rs6000-tdep.c:
Replace
set_gdbarch_have_nonsteppable_watchpoint (gdbarch, 1);
By
set_gdbarch_have_nonsteppable_watchpoint (gdbarch, 0);
And i compile GDB.
Then the single-stepping after watchpoint exception is no more request by GDB.
Is the possible to make this change in NXP powerpc-eabivle-gdb?
Regards
Hello Christophe Ple,
Apologies for the delay in response. We have forwarded this to our compiler team and they are investigating the issue.
Best Regards,
Mike