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:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user