Re: MI: reporting of multiple breakpoints

Eli Zaretskii
2006-02-17T19:59:12Z

> Date: Fri, 17 Feb 2006 14:44:26 -0500
> From: Daniel Jacobowitz <drow@false.org>
> Cc: Vladimir Prus <ghost@cs.msu.su>, gdb@sources.redhat.com
>
> > Does anyone know why we return PRINT_SRC_AND_LOC for breakpoints?
>
> That's how we get the source line printed when we stop, isn't it?

Well, then perhaps the question is why does bpstat_print exits the
loop when it sees PRINT_SRC_AND_LOC:

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;
}