Skip to contentSkip to conversation

Watchpoints not being handled correctly on arm it seems

DISCUSSION François Legal 2 participants 3 messages Nov 8, 2023 – Nov 9, 2023

lore
Share & tools
lore
#0 lore raw

Hello,

Working with xenomai 3.2.3 with linux 5.4 on Zynq7000.

While debugging my application, with GDB, if a watchpoint hits when in a xenomai RT thread, the machine hangs.
If I connect the JTAG probe, I get core 1 halted with message "Synchronous Watchpoint", with PC being on the instruction that should have trigged the watchpoint. From that point, I can never get GDB or the app to continue. I can (using the JTAG debugger) hit continue, but it seems the app stays hung (even kill -9 does not terminate it and I have to reboot the target.

Can anybody help ?

Thanks in advance

François

#1 lore raw
Quoted 8 lines · François Legal

Hello,

Working with xenomai 3.2.3 with linux 5.4 on Zynq7000.

While debugging my application, with GDB, if a watchpoint hits when in a xenomai RT thread, the machine hangs.
If I connect the JTAG probe, I get core 1 halted with message "Synchronous Watchpoint", with PC being on the instruction that should have trigged the watchpoint. From that point, I can never get GDB or the app to continue. I can (using the JTAG debugger) hit continue, but it seems the app stays hung (even kill -9 does not terminate it and I have to reboot the target.

Can anybody help ?

Do you see the same issue with 5.10 or newer (Dovetail patch series), or with 4.19 (SLTS-based I-pipe)?

Jan

Signature · 2 lines
Siemens AG, Technology
Linux Expert Center
#2 lore raw
Quoted 5 lines · Jan Kiszka
Quoted 4 lines · François Legal

Hello,

Working with xenomai 3.2.3 with linux 5.4 on Zynq7000.

Quoted 8 lines
Quoted 4 lines

While debugging my application, with GDB, if a watchpoint hits when in a xenomai RT thread, the machine hangs.
If I connect the JTAG probe, I get core 1 halted with message "Synchronous Watchpoint", with PC being on the instruction that should have trigged the watchpoint. From that point, I can never get GDB or the app to continue. I can (using the JTAG debugger) hit continue, but it seems the app stays hung (even kill -9 does not terminate it and I have to reboot the target.

Can anybody help ?

Do you see the same issue with 5.10 or newer (Dovetail patch series), or with 4.19 (SLTS-based I-pipe)?

I can't tell for 5.10 as I have some custom driver for custom hardware that I did not port to dovetail/evl yet. The same is true for 4.19 (which lacks features I need) and I'm not sure I can easily test that. It was OK in 4.4 though

François

Quoted 6 lines

Jan

--
Siemens AG, Technology
Linux Expert Center