dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Improving 'verbose'


From: Dan Kegel
Subject: Re: Improving 'verbose'
Date: Fri, 11 Jul 2003 13:37:02 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030617

address@hidden wrote:
At Fri, 11 Jul 2003 12:03:29 -0700, Dan Kegel wrote:

Has anyone ever modified dejagnu's 'verbose' to print
the file, function name, and line number of the caller

(well, assuming you could do it, obviously you'd only want to enable
it if extra bonus nukular verbose.  8-)

Yeah, it should be optional...

It looks like you could maybe use 'info level' to give you a limited
call trace:

        proc calltrace {} {
            for {set i [info level]} {$i >= 1} {incr i -1} {
                 puts "$i: [info level $i]"
            }
        }
        proc foo {arg} { bar $arg another }
        proc bar {arg nextarg} { calltrace }

        foo foo-arg

        ->

        3: calltrace
        2: bar foo-arg another
        1: foo foo-arg

but that doesn't tell you all you want to know.

That might be handy, thanks.  For now what I'm doing is just adding
error checking and calls to error, that's good enough.

There's also the --strace N argument to runtest, but I tried that, and man
is that cryptic!  I have no idea what it means.  Not even sure where to look
for documentation on it.  Google doesn't search too well for things starting
with dashes...

- Dan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]