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

Andrew Cagney
2001-05-11T18:56:00Z

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