yacc/gdb issues with 7.0-current
Darren Reed
darrenr at freebsd.org
Mon Jun 11 01:57:52 UTC 2007
Using 7.0-current from around May 20, a couple of things I've run
across today...
gdb seems to have "issues" in -current after doing "run".
The output below is from truss on gdb's pid:
...
kill(15590,0) = 0 (0x0)
ptrace(0x21,0x3ce6,0xbfbfdc70,0x0,0x28277130) = 0 (0x0)
ptrace(0x25,0x3ce6,0xbfbfddb4,0x0,0x8) = 0 (0x0)
ptrace(0x7,0x3ce6,0x1,0x14,0x10202) = 0 (0x0)
wait4(0xffffffff,0xbfbfdee8,0x0,0x0,0x28369569) = 15590 (0x3ce6)
kill(15590,0) = 0 (0x0)
ptrace(0x21,0x3ce6,0xbfbfdc70,0x0,0x28277130) = 0 (0x0)
ptrace(0x25,0x3ce6,0xbfbfddb4,0x0,0x8) = 0 (0x0)
ptrace(0x7,0x3ce6,0x1,0x14,0x10202) = 0 (0x0)
wait4(0xffffffff,0xbfbfdee8,0x0,0x0,0x28369569) = 15590 (0x3ce6)
kill(15590,0) = 0 (0x0)
ptrace(0x21,0x3ce6,0xbfbfdc70,0x0,0x28277130) = 0 (0x0)
ptrace(0x25,0x3ce6,0xbfbfddb4,0x0,0x8) = 0 (0x0)
ptrace(0x7,0x3ce6,0x1,0x14,0x10202) = 0 (0x0)
wait4(0xffffffff,0xbfbfdee8,0x0,0x0,0x28369569) = 15590 (0x3ce6)
kill(15590,0) = 0 (0x0)
ptrace(0x21,0x3ce6,0xbfbfdc70,0x0,0x28277130) = 0 (0x0)
ptrace(0x25,0x3ce6,0xbfbfddb4,0x0,0x8) = 0 (0x0)
ptrace(0x7,0x3ce6,0x1,0x14,0x10202) = 0 (0x0)
wait4(0xffffffff,0xbfbfdee8,0x0,0x0,0x28369569) = 15590 (0x3ce6)
kill(15590,0) = 0 (0x0)
ptrace(0x21,0x3ce6,0xbfbfdc70,0x0,0x28277130) = 0 (0x0)
ptrace(0x25,0x3ce6,0xbfbfddb4,0x0,0x8) = 0 (0x0)
...
The other issue I've found is with yacc - it core dumps rather than
reports an error about not returning/assign a value.
e.g. if I do:
%type <foo> bar
...
bar: | 'x' { $$ = getbar('x'); }
;
...
it should give me an error but instead I got a core dump.
The correct yacc input is:
bar: { $$ = 0; } | 'x' { $$ = getbar('x'); }
;
Darren
More information about the freebsd-current
mailing list