[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] gawk debugger omits watchpoint
From: |
Aharon Robbins |
Subject: |
Re: [bug-gawk] gawk debugger omits watchpoint |
Date: |
Wed, 25 Nov 2015 22:16:18 +0200 |
User-agent: |
Heirloom mailx 12.5 6/20/10 |
Hi.
I don't think I can fix this one. I did take a look at it.
The debugger really only understands lines, not syntactic statements.
I think it'd take a major overhaul to fix that. It's particularly
nasty at the last point of the END rule; when it's dealing with printing
breakpoints and watchpoints, the debugger doesn't really understand that
there won't be any more statements coming.
Arnold
> To: "address@hidden" <address@hidden>
> From: Hermann Peifer <address@hidden>
> Date: Wed, 25 Nov 2015 20:37:36 +0100
> Subject: [bug-gawk] gawk debugger omits watchpoint
>
> Hi again,
>
> Below some sample code where it looks like the second watchpoint is not
> reached before exiting. This looks wrong to me.
>
> Hermann
>
> $ printf "END{x=1;y=2}\n" > tmp.awk
> $ printf "w x\nw y\nr\nc\n" | gawk -D -f tmp.awk /dev/null
> Watchpoint 1: x
> Watchpoint 2: y
> Starting program:
> Stopping in END ...
> Watchpoint 1: x
> Old value: untyped variable
> New value: 1
> main() at `tmp.awk':1
> 1 END{x=1;y=2}
> Program exited normally with exit value: 0
> $
>