[RFA] breakpoint.c: don't generate bp events for internal bps

Andrew Cagney ac131313@cygnus.com
Fri May 11 18:56:00 GMT 2001


Keith,

I think the patch is filtering things at the wrong level.  If Insight 
doesn't want to know about certain breakpoints then it should discard them.

You probably also want to check ui-out.h and defs.h:gdb_breakpoint_query().

	Andrew


> +/* Is this breakpoint interesting to a user interface? */
> +#define REPORT_BREAKPOINT_EVENT(bp) \
> +((bp)->type == bp_breakpoint             \
> + || (bp)->type == bp_hardware_breakpoint \
> + || (bp)->type == bp_watchpoint          \
> + || (bp)->type == bp_hardware_watchpoint \
> + || (bp)->type == bp_read_watchpoint     \
> + || (bp)->type == bp_access_watchpoint)
> +
>  /* Set breakpoint count to NUM.  */


BTW, macro's are bad, M'kay!

	Andrew




More information about the Gdb-patches mailing list