This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Help with gdb testsuite (lib/gdb.exp)


Thanks for your response. I found out that release versions I quoted in
my initial email were wrong, sorry about that :(.
runtest was picking up an older version of expect and tcl.

% runtest -V
WARNING: Couldn't find the global config file.
Expect version is	5.25.0
Tcl version is		8.0
Framework version is	1.4.4

The simple test you prescribed worked on tcl version 8.4 but not on 8.0,
i.e newlines remain in $b.
Making runtest use the newer releases solved the problem.
Thanks

tunji

Running on a sparc machine

% tclsh
% info tclversion
8.0
% set a { a
b
c
d}
 a
b
c
d
% regsub -all {\n} ${a} { } b
0
% set a
 a
b
c
d
% set b
 a
b
c
d
%


Daniel Jacobowitz wrote On 09/21/05 11:41,:
> On Wed, Sep 21, 2005 at 11:34:50AM -0700, Olatunji Ruwase wrote:
> 
>>Hi,
>> I hope this is the right medium for my problem, if not I apologise and
>>would appreciate if this could be forwarded to the appropriate list.
>>
>>I recently started playing with the gdb testsuite and ran into a problem
>>I traced as far as gdb_test_multiple in lib/gdb.exp. Below is the
>>command line and error message in gdb.log.
> 
> 
> Is something wrong with your TCL installation maybe?  Try this in
> tclsh:
> 
> set a { a
> b
> c
> d}
> 
> regsub -all {\n} ${a} { } b
> 
> set a
> 
> set b
> 
> It should show you $b without newlines.
> 
> 
>>dejagnu 1.4.4
>>expect  5.43
>>gdb     6.4
>>tcl     8.4.9
> 
> 
> What platform is this?
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]