Date: Mon, 11 Jun 2007 01:57:52 +0000 From: Darren Reed <darrenr@freebsd.org> To: current@freebsd.org Subject: yacc/gdb issues with 7.0-current Message-ID: <20070611015752.GA82125@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070611015752.GA82125>