Bug 19958

Summary: Breakpoints/watchpoints broken on MIPS Linux <= 4.5
Product: gdb Reporter: Pedro Alves <pedro>
Component: gdbAssignee: Pedro Alves <pedro>
Severity: normal    
Priority: P2    
Version: 7.10   
Target Milestone: 7.11.1   
Host: Target:
Build: Last reconfirmed:

Description Pedro Alves 2016-04-15 23:15:32 UTC
Ref: https://sourceware.org/ml/gdb-patches/2016-02/msg00681.html
MIPS Linux <= 4.5 reports SI_KERNEL for all kernel generated traps, instead of TRAP_BRKPT / TRAP_HWBKPT, but GDB isn't aware of this.

The result is that hardware watchpoints are broken and pending/delayed breakpoint events mishandling cause gdb to sometimes report spurious SIGTRAPs.

MIPS Linux 4.6 has been corrected to report the proper TRAP_BRKPT / TRAP_HWBKPT si_codes.
Comment 1 Pedro Alves 2016-04-15 23:19:35 UTC
MIPS GDB has been taught to handle SI_KERNEL traps.

Fix pushed to master and 7.11 branch: