[#6289] test ifnospace and whilenospace are not parsed correctly in gdb.base/define.exp in 2010r1-rc4 with bfin-elf

Document created by Aaronwu Employee on Oct 17, 2013
Version 1Show Document
  • View in full screen mode

[#6289] test ifnospace and whilenospace are not parsed correctly in gdb.base/define.exp in 2010r1-rc4 with bfin-elf

Submitted By: Vivi Li

Open Date

2010-10-12 23:12:01     Close Date

2011-01-20 02:25:30

Priority:

Medium High     Assignee:

Vivi Li

Stuart Henderson

Board:

N/A     Silicon Revision:

Resolution:

Fixed     Fixed In Release:

N/A

Processor:

ALL     

Host Operating System:

toolchain rev.:

    kernel rev.:

State:

Closed     Found In Release:

2010R1-RC4

Is this bug repeatable?:

N/A     

Summary: test ifnospace and whilenospace are not parsed correctly in gdb.base/define.exp in 2010r1-rc4 with bfin-elf

Details:

 

test ifnospace and whilenospace are not parsed correctly in gdb.base/define.exp.

This only happens with bfin-elf and since 2010r1-rc4.

Also it happens with both uclibc full/default lib.

 

--

define ifnospace

Type commands for definition of "ifnospace".

End with a line saying just "end".

>if(3<4)

>print "hi there\n"

>end

>end

(gdb) PASS: gdb.base/define.exp: define user command: ifnospace

ifnospace

evaluation of this expression requires the program to have a function "malloc".

(gdb) FAIL: gdb.base/define.exp: test ifnospace is parsed correctly

define whilenospace

Type commands for definition of "whilenospace".

End with a line saying just "end".

>set $i=1

>while($i<2)

>set $i=2

>print "hi there\n"

>end

>end

(gdb) PASS: gdb.base/define.exp: define user command: whilenospace

 

whilenospace

evaluation of this expression requires the program to have a function "malloc".

(gdb) FAIL: gdb.base/define.exp: test whilenospace is parsed correctly

--

 

Follow-ups

 

--- Stuart Henderson                                         2010-10-14 05:36:46

atexit doesn't pull in malloc any more, so this test fails since it isn't there.

since we took the original fix from upstream, they will presumably have updated

the test to resolve this.  i'll merge as soon as i can get the binutils cvs

server to play nicely with our firewall.

 

--- Stuart Henderson                                         2010-10-14 05:37:48

just to clarify: this is a testing bug, not a gdb/compiler bug.  so the RC is

still good.

 

--- Stuart Henderson                                         2010-10-14 06:27:33

fixed on trunk.

 

--- Sonic Zhang                                              2010-10-15 00:30:52

Can you also apply your fixing to 2010R1 branch?

 

--- Stuart Henderson                                         2010-11-10 12:15:02

done (finally), sorry for the delay.

 

--- Vivi Li                                                  2011-01-20 02:25:30

OK. Close it.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

gdb-2.17.tar.gz    application/x-gzip    295810    Vivi Li

Attachments

Outcomes