Bug 19958 - Breakpoints/watchpoints broken on MIPS Linux <= 4.5
Summary: Breakpoints/watchpoints broken on MIPS Linux <= 4.5
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 7.10
: P2 normal
Target Milestone: 7.11.1
Assignee: Pedro Alves
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-15 23:15 UTC by Pedro Alves
Modified: 2016-04-15 23:21 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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:

 https://sourceware.org/ml/gdb-patches/2016-04/msg00371.html