Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Iain Sandoe <iain@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFA, Patch, testsuite] gdb.base/list.exp: initial state test for stub targets.
Date: Wed, 13 Jun 2012 12:33:00 -0000	[thread overview]
Message-ID: <4FD88886.9030803@redhat.com> (raw)
In-Reply-To: <C6DF26D5-4C9E-4C05-8C30-B226C311393E@codesourcery.com>

On 06/13/2012 01:23 PM, Iain Sandoe wrote:

> Hi,
> 
> At present, gdb.base/list.exp behaves differently for targets that use a stub and those that are native, simulator or gdbserver.
> 
> For the latter cases, the test does not cause an inferior to be created, and the default list lines around main works 'as expected'.
> 
> For the stub case, an inferior is created and this will generally be stopped in some start-up or exception code.  At present, this is handled by running to main and then skipping the default listing, unsupport-ing the 'default list lines around main' test.
> 
> I was asked to look into removing that 'unsupported'.
> 
> One way to make things consistent would be to avoid creating the inferior for the stub case - since the listing tests only require host-side actions.  This could be achieved by replacing the gdb_load in the test with a gdb_file_cmd, in the test; Patch (a) below.



I prefer this option, for removing the special casing, making everything work the
same everywhere (and making the test run a little bit faster).

> comments/OK for (a) or (b)?


> gdb/testsuite:
> 
> 	* gdb.base/list.exp (test_listsize): Adjust to allow testing of default
> 	lines on targets using stubs.
> 


Okay for (a) from me.  But the ChangeLog entry should say what you did, not
why you did it.  Something like:

 	* gdb.base/list.exp (test_listsize): Remove $use_gdb_stub special case.
        (top level): Use gdb_file_cmd instead of gdb_load.

-- 
Pedro Alves


  reply	other threads:[~2012-06-13 12:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-13 12:23 Iain Sandoe
2012-06-13 12:33 ` Pedro Alves [this message]
2012-06-15 14:43   ` Iain Sandoe

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=4FD88886.9030803@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=iain@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