Hi all,

When trying to debug a series of events in a program, parts of source
lines disappear - apart from the fact that the execution secuence seems
very off.

This extract from the source file:

      if ch = eofchar then
        sy := sps[ch]
      else begin
        error(erchar);
        nextch;
        goto 1;
      end;

(with ch effectively = eofchar) produces the following:

654           if ch = eofchar then
(gdb) n
655             sy := sps[ch]
(gdb) n
659     to 1;
(gdb) n
661     l_read := true;
(gdb) n
662     n dbg_flags then
(gdb) n
[symbol_read] symbol: eofsy
663      symbol: ', sy);
(gdb) n

I haven't seen this kind of problem before, not in Pascal nor in C.
Why is the '... to 1' appearing in the listing?

Using FPC 2.4.0, and gdb 6.8

John
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to