Subject: Re: bug#28108: 25.2; Infinite loop due to circular marker list?

From: Adam Porter <[email-masked]>
Date: Fri, 18 Aug 2017 14:51:53 -0500

On Fri, Aug 18, 2017 at 1:12 AM, Eli Zaretskii <[email-masked]> wrote:

> Replace this:
>
>   >set $markers = BUF_MARKERS(b)
>
> with this:
>
>   >set $markers = b->text->markers
>
> You will have to redefine the whole command again with that change.

That brought up a different error:

(gdb) define count-markers
Redefine command "count-markers"? (y or n) y
Type commands for definition of "count-markers".
End with a line saying just "end".
>set $count = 0
>set $markers = b->text->markers
>while $markers != 0
 >set $count = $count +1
 >print $count
 >set $markers = $markers->next
 >end
>end
(gdb) count-markers
value has been optimized out
(gdb) step
605           for (tail = BUF_MARKERS (b); tail; prev = &tail->next,
tail = *prev)
(gdb) count-markers
value has been optimized out