Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* does bpstat_print stop printing prematurely?
@ 2002-04-15 13:03 Doug Evans
  2002-04-15 22:03 ` Eli Zaretskii
  0 siblings, 1 reply; 8+ messages in thread
From: Doug Evans @ 2002-04-15 13:03 UTC (permalink / raw)
  To: gdb

Does bpstat_print stop printing prematurely?  I think it does.

  for (; bs; bs = bs->next)
    {
      val = print_bp_stop_message (bs);
      if (val == PRINT_SRC_ONLY 
	  || val == PRINT_SRC_AND_LOC 
	  || val == PRINT_NOTHING)
	return val;
    }

What if there is 1 breakpoint that triggers and two watchpoints?

As a user, whenever execution stops I'd kinda like to know which
of all of my active watchpoints triggered without having to
manually examine each one.

Things are even more confusing if gdb prints some but not all
of the triggering watchpoints.

Example: Suppose the `bs' arg to bpstat_print contains a watchpoint,
a pc breakpoint, and another watchpoint, in that order.

Currently bpstat_print will print the first watchpoint and the
pc breakpoint but not the second watchpoint.  Blech.

I'll file a pr unless something can rationalize the current behaviour.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-05-10  3:44 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-15 13:03 does bpstat_print stop printing prematurely? Doug Evans
2002-04-15 22:03 ` Eli Zaretskii
2002-04-15 23:43   ` Doug Evans
2002-04-16  0:40     ` Eli Zaretskii
2002-04-16  5:55     ` Eli Zaretskii
2002-04-16  8:43       ` Doug Evans
2002-04-16 10:50       ` Doug Evans
2002-05-09 20:44         ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox