yacc/gdb issues with 7.0-current

From: Darren Reed <darrenr_at_freebsd.org>
Date: Mon, 11 Jun 2007 01:57:52 +0000
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
Received on Sun Jun 10 2007 - 23:57:52 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:12 UTC