# HG changeset patch # User Rik # Date 1326950234 28800 # Node ID 0beb62668d69da409107cda446391e48a1b3ae68 # Parent c24833c6ebc2271070c8e789ab9ee16f397ecd3c Use correct plural for dbstatus if there is more than 1 breakpoint set in file. * debug.cc (dbstatus): Use correct plural if there is more than 1 breakpoint in file. diff --git a/src/debug.cc b/src/debug.cc --- a/src/debug.cc +++ b/src/debug.cc @@ -655,12 +655,16 @@ for (bp_table::fname_line_map_iterator it = bp_list.begin (); it != bp_list.end (); it++) { - octave_stdout << "breakpoint in " << it->first << " at line(s) "; - bp_table::intmap m = it->second; size_t nel = m.size (); + octave_stdout << "breakpoint in " << it->first; + if (nel > 1) + octave_stdout << " at lines "; + else + octave_stdout << " at line "; + for (size_t j = 0; j < nel; j++) octave_stdout << m[j] << ((j < nel - 1) ? ", " : ".");