[PATCH] -gused

Daniel Jacobowitz drow@mvista.com
Fri Jun 20 05:31:00 GMT 2003


On Thu, Jun 19, 2003 at 08:06:09PM -0700, Devang Patel wrote:
> I am not able to understand following gdb tests. I need help
> from someone who is more familar with these tests.
> 
> > FAIL: gdb.mi/mi-var-display.exp: create local variable u
> > FAIL: gdb.mi/mi-var-display.exp: eval variable u
> > FAIL: gdb.mi/mi-var-display.exp: info type variable u
> > FAIL: gdb.mi/mi-var-display.exp: is u editable
> > FAIL: gdb.mi/mi-var-display.exp: get number of children of u
> > FAIL: gdb.mi/mi-var-display.exp: get children of u
> > FAIL: gdb.mi/mi-var-display.exp: create local variable anonu
> > FAIL: gdb.mi/mi-var-display.exp: eval variable anonu
> > FAIL: gdb.mi/mi-var-display.exp: info type variable anonu
> > FAIL: gdb.mi/mi-var-display.exp: is anonu editable
> > FAIL: gdb.mi/mi-var-display.exp: get number of children of anonu
> > FAIL: gdb.mi/mi-var-display.exp: get children of anonu
> > FAIL: gdb.mi/mi-var-display.exp: create local variable s
> > FAIL: gdb.mi/mi-var-display.exp: eval variable s
> > FAIL: gdb.mi/mi-var-display.exp: info type variable s
> > FAIL: gdb.mi/mi-var-display.exp: is s editable
> > FAIL: gdb.mi/mi-var-display.exp: get number of children of s
> > FAIL: gdb.mi/mi-var-display.exp: get children of s
> > FAIL: gdb.mi/mi-var-display.exp: create local variable anons
> > FAIL: gdb.mi/mi-var-display.exp: eval variable anons
> > FAIL: gdb.mi/mi-var-display.exp: info type variable anons
> > FAIL: gdb.mi/mi-var-display.exp: is anons editable
> > FAIL: gdb.mi/mi-var-display.exp: get number of children of anons
> > FAIL: gdb.mi/mi-var-display.exp: get children of anons
> > FAIL: gdb.mi/mi-var-display.exp: create local variable e
> > FAIL: gdb.mi/mi-var-display.exp: info type variable e
> > FAIL: gdb.mi/mi-var-display.exp: is e editable
> > FAIL: gdb.mi/mi-var-display.exp: get number of children of e
> > FAIL: gdb.mi/mi-var-display.exp: get children of e
> > FAIL: gdb.mi/mi-var-display.exp: create local variable anone
> > FAIL: gdb.mi/mi-var-display.exp: create duplicate local variable anone
> > FAIL: gdb.mi/mi-var-display.exp: info type variable anone
> > FAIL: gdb.mi/mi-var-display.exp: is anone editable
> > FAIL: gdb.mi/mi-var-display.exp: get number of children of anone
> > FAIL: gdb.mi/mi-var-display.exp: get children of anone
> 
> All mi-var-display.exp failures are repeated during mi1-var-display.exp 
> test.

Those also look like unused variables, in var-cmd.c.  If this patch
goes in, could you kindly create a patch to use all the unused
variables it detected?  I'll get it applied to GDB.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



More information about the Gcc-patches mailing list