GDB powerpc-eabivle watchpoint & stepping

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GDB powerpc-eabivle watchpoint & stepping

1,041 Views
christopheple
Contributor II

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

0 Kudos
1 Reply

845 Views
mikedoidge
NXP Employee
NXP Employee

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

0 Kudos