Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Catalin-Dan Udma <catalin-dan.udma@nxp.com>,
	       Catalin Udma <catalin.udma@freescale.com>,
	       "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [PATCH] testsuite: Update py-mi-objfile to expect console format print
Date: Tue, 05 Apr 2016 11:59:00 -0000	[thread overview]
Message-ID: <5703A892.6090003@redhat.com> (raw)
In-Reply-To: <VI1PR0401MB177699B67ACFF06DB4DB2A33DA9E0@VI1PR0401MB1776.eurprd04.prod.outlook.com>

On 04/05/2016 12:45 PM, Catalin-Dan Udma wrote:
>> On 04/05/2016 11:14 AM, Catalin Udma wrote:
>>> --- a/gdb/testsuite/gdb.python/py-mi-objfile-gdb.py
>>> +++ b/gdb/testsuite/gdb.python/py-mi-objfile-gdb.py
>>> @@ -24,4 +24,4 @@ import gdb
>>>  gdb.execute("set width 101", to_string=True)
>>>  # And finally a command that will use the original MI stream, which in a
>>>  # buggy gdb will use just-freed data.
>>> -gdb.execute("list")
>>> +gdb.execute("list main")
>>
>> Do the comments in the test still make sense?
>> From the comment, sounds like the test might no longer be covering
>> what it intended?  I.e. do we "use the original MI stream" ?
>>
>> Thanks,
>> Pedro Alves
> 
> [Catalin Udma] Indeed, the original crash is no longer reproducible: I manually reverted the fixes
> for that crash (gdb/cli/cli-logging.c, gdb/mi/mi-out.c) and the crash is not reproducible anymore 
> when running py-mi-objfile.exp.
> It reproduces if I revert also this patch " python: Use console format for output of gdb.execute command"
> 
> Updating the comments would be enough and let the test validate the same scenario? 

I think it's good to keep validating the same scenario.

Though maybe there's something else we could add that uses the
MI stream, that'd also expose the crash?  Maybe

 gdb.execute ("interpreter-exec mi \"-gdb-show width\"")

would work?

> "+# And finally a command that will use the console stream without redirection" ?

Thanks,
Pedro Alves


  reply	other threads:[~2016-04-05 11:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-05 10:16 Catalin Udma
2016-04-05 10:59 ` Pedro Alves
2016-04-05 11:46   ` Catalin-Dan Udma
2016-04-05 11:59     ` Pedro Alves [this message]
2016-04-05 13:08       ` Catalin-Dan Udma
2016-04-05 13:11         ` Pedro Alves
2016-04-05 13:13           ` Pedro Alves
2016-04-05 13:36             ` Catalin-Dan Udma
2016-04-05 13:47               ` 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=5703A892.6090003@redhat.com \
    --to=palves@redhat.com \
    --cc=catalin-dan.udma@nxp.com \
    --cc=catalin.udma@freescale.com \
    --cc=gdb-patches@sourceware.org \
    /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