This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [PATCH 2/3] Extend format of -fdbg-cnt: add aux_base filter.


On Wed, Mar 27, 2019 at 10:52 AM marxin <mliska@suse.cz> wrote:
>

Hmm, I don't think we want this - it looks too much like a hack to me.

I guess for an easier way to figure out the min/max ranges (do we
handle anti-ranges?) would be to specify a function name the
debug counter would be enabled for.  That might also help in your
situation.

What I've usually done is do the bisection via dbg-counter on
a single file, manually link the spec binary and then
do a runcpu w/o recompiling the binary.

Richard.

> gcc/ChangeLog:
>
> 2019-03-27  Martin Liska  <mliska@suse.cz>
>
>         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add new argument
>         aux_base and filter based on aux_base_name.
>         (dbg_cnt_process_single_pair): Parse aux_base.
>         * doc/invoke.texi: Document new extended format.
>
> gcc/testsuite/ChangeLog:
>
> 2019-03-27  Martin Liska  <mliska@suse.cz>
>
>         * gcc.dg/dbg-cnt-1.c: New test.
> ---
>  gcc/dbgcnt.c                     | 11 ++++++++---
>  gcc/doc/invoke.texi              |  8 ++++++--
>  gcc/testsuite/gcc.dg/dbg-cnt-1.c |  6 ++++++
>  3 files changed, 20 insertions(+), 5 deletions(-)
>  create mode 100644 gcc/testsuite/gcc.dg/dbg-cnt-1.c
>


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