Fix bug in 'say_where' transform

The patch to change say_where into a method introduced a bug.  This
patch fixes it.
This commit is contained in:
Tom Tromey
2023-01-10 16:35:08 -07:00
parent 7697bc6523
commit 066620dcfb
+2 -2
View File
@@ -11558,9 +11558,9 @@ code_breakpoint::say_where () const
if (loc->next)
{
struct bp_location *loc = loc;
struct bp_location *iter = loc;
int n = 0;
for (; loc; loc = loc->next)
for (; iter; iter = iter->next)
++n;
gdb_printf (" (%d locations)", n);
}