|
From: Philippe W. <phi...@sk...> - 2015-05-19 21:22:56
|
On Tue, 2015-05-19 at 17:33 +0200, Julian Seward wrote:
> I find -v useful in various situations, in particular for diagnosing
> debuginfo reading problems. But it has the effect also of re-printing
> all the errors at the end of the run, so as to show the errors along
> with their counts.
>
> But this is almost never what I want, and I find it kind of annoying to
> have to wade through tons of unwanted output.
>
> I was thinking about moving error-count printing to its own flag
>
> --show-error-counts=no|yes [no]
>
> so as to make it possible to use -v without the undesired output. But
> this would be a user-visible change, that is sure to inconvenience
> some subset of users.
>
> So, am canvassing for opinions. Is there some other way to do this
> that wouldn't change the existing -v behaviour?
The logic used to show things depending on various levels of -v or -d is
not always clear to me. E.g. -v activates things that looks not *that*
interesting for a user (such as redirection details).
Giving a lot of -v or a lot of -d traces a lot of things, while often
you are interested only in a subset.
It would be/have been :) nice to have a fine grain control of what
we show for users and/or debug.
For example, something like
--debuglog=redir,debuginfo,hashtable,gdbsrv
--userinfo=redir,errorsattheend,reportwhenineedacoffee
to indicate the list of things to trace and/or show to the user.
Now, we have a mixture of things that appear due to -v or -d
or specific trace flags.
I have no time (synonym for : I am not that enthusiastic/not
volunteer :) to change the complete logging in Valgrind.
So, at this stage, we have to cope with the -v/-d/various trace flags.
As you indicate, not showing anymore error lists with -v is a quite
significant user change (for a reason 'only' for V developers :).
So, IMO, best not to change this aspect.
At short term, you might filter the output using e.g.
./vg-in-place --tool=helgrind -v ./helgrind/tests/tc12_rwl_trivial|& grep -v '^=='
to only keep the 'non user output' (whatever that means)
If you still want to have for reference the full output in a file, something like
./vg-in-place --tool=helgrind -v ./helgrind/tests/tc12_rwl_trivial|& tee full.out | grep -v '^=='
should make it
What I often use for such things is however either redirect the output
to a file and then use emacs, or directly run the command in an emacs
shell buffer
But I agree that all of the above implies to type
e.g. --show-errors-at-end=no
or
| grep -v '^=='
to skip the errors at the end (or skip more, with the grep -v)
All that being said, I will survive if the behaviour changes :)
Philippe
|