From: Pedro Alves <palves@redhat.com>
To: "Metzger, Markus T" <markus.t.metzger@intel.com>
Cc: GDB Patches <gdb-patches@sourceware.org>
Subject: Re: "set record instruction-history" ?
Date: Tue, 26 Mar 2013 16:53:00 -0000 [thread overview]
Message-ID: <5151836D.90401@redhat.com> (raw)
In-Reply-To: <A78C989F6D9628469189715575E55B2307BA822E@IRSMSX102.ger.corp.intel.com>
On 03/26/2013 07:46 AM, Metzger, Markus T wrote:
> Shouldn't we map 0 to INT_MAX before committing the new value?
That's already done for us before this function is reached, by the
set/show machinery. "commit" here refers to copying the set/show
command's control variable value to the real setting variable
(record_(call|insn)_history_size).
> The functionality should be covered by the gdb.btrace test suite. Do you want
> to commit your patch or do you want me to test and then commit it?
Could you test and report back please? I believe my laptop's cpu is
one of those where branch tracing is borked and ended up disabled.
...
(gdb) record btrace
Target does not support branch tracing.
(gdb) testcase ../../../src/gdb/testsuite/gdb.btrace/enable.exp completed in 1 seconds
Running ../../../src/gdb/testsuite/gdb.btrace/function_call_history.exp ...
testcase ../../../src/gdb/testsuite/gdb.btrace/function_call_history.exp completed in 0 seconds
Running ../../../src/gdb/testsuite/gdb.btrace/instruction_history.exp ...
testcase ../../../src/gdb/testsuite/gdb.btrace/instruction_history.exp completed in 0 seconds
=== gdb Summary ===
Thanks,
--
Pedro Alves
next prev parent reply other threads:[~2013-03-26 11:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-25 17:23 Pedro Alves
2013-03-25 17:25 ` Metzger, Markus T
2013-03-25 19:55 ` Pedro Alves
2013-03-26 16:21 ` Metzger, Markus T
2013-03-26 16:53 ` Pedro Alves [this message]
2013-03-26 16:58 ` Metzger, Markus T
2013-03-26 19:35 ` Pedro Alves
2013-03-27 10:03 ` Metzger, Markus T
2013-03-27 11:23 ` Pedro Alves
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5151836D.90401@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=markus.t.metzger@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox