Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Stan Shebs <stanshebs@earthlink.net>
To: Yao Qi <yao@codesourcery.com>, gdb-patches@sourceware.org
Subject: Re: [PATCH] Check tracefile is generated by binary execution
Date: Mon, 21 Apr 2014 23:04:00 -0000	[thread overview]
Message-ID: <5355A3D8.5030307@earthlink.net> (raw)
In-Reply-To: <1395733933-9366-1-git-send-email-yao@codesourcery.com>

On 3/25/14 12:52 AM, Yao Qi wrote:
> In gdb.trace/tfile.exp, we execute binary to generate tracefile,
> 
>   remote_exec target "$binfile"
> 
> however, this fails on bare metal target.  This patch is to
> handle binary execution failure by running binary in GDB.
> The binary will do some io operation to generate tracefile, so
> we need a check 'target_info exists gdb,nofileio'.
> 
> This patch is to check whether tracefile is generated.  tfile.exp can
> be skipped if generation is failed, while test_tfind_tfile in
> mi-traceframe-changed.exp is skipped if generated failed.  The rest of
> the mi-traceframe-changed.exp can still be executed, because on some
> bare metal targets, the remote stub may support tracepoint but doesn't
> support fileio.
> 
> This patch is tested on nios2-elf and arm-none-eabi.

This is OK to push, thanks!

OK, one nit:

> -remote_exec target "$binfile"
> +if { ![generate_tracefile $binfile] } {
> +    unsupported "Unable to generate tfile"

"trace file" instead of "tfile" would be clearer to a test-running
person who is not familiar with the details of tracepoint operations.

Stan
stan@codesourcery.com


  parent reply	other threads:[~2014-04-21 23:04 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-25  7:55 Yao Qi
2014-04-01  2:26 ` Yao Qi
2014-04-10  2:57   ` Yao Qi
2014-04-21 23:04 ` Stan Shebs [this message]
2014-04-22  2:23   ` Yao Qi

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=5355A3D8.5030307@earthlink.net \
    --to=stanshebs@earthlink.net \
    --cc=gdb-patches@sourceware.org \
    --cc=yao@codesourcery.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