This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, v2] Expect SI_KERNEL or TRAP_BRKPT si_code values for MIPS breakpoint traps


On 02/22/2016 12:57 PM, Luis Machado wrote:
> This is v2 of this patch. It was pre-approved by Maciej and i will commit
> it soon if there are no objections.

I'd like to have a short paragraph in linux-nat.h about MIPS's behavior,
below the ppc comment.  If you look at the x86 table above, which cases get
SI_KERNEL, and which don't?  Single-step is not applicable, since the
MIPS doesn't handle single-stepping itself (IIRC), but do we also get
SI_KERNEL hardware bps and watchpoints, for example?

> Further discussion with MIPS maintainers showed that, historically, MIPS
> kernels have never set a proper si_code and thus they use the default value of
> SI_KERNEL.
> 
> There are plans to update the MIPS kernel to provide more meaningful si_code
> values though, so we should expect both SI_KERNEL and TRAP_BRKPT from now
> on, as GDB will handle both correctly, like powerpc.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]