Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Hui Zhu <teawater@gmail.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: Michael Snyder <msnyder@vmware.com>,
		"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
	"tromey@redhat.com" <tromey@redhat.com>
Subject: Re: PR8554: New command to save breakpoints to a file
Date: Wed, 05 May 2010 08:28:00 -0000	[thread overview]
Message-ID: <p2qdaef60381005050127g6dc6b55bze2be527c2d36abd6@mail.gmail.com> (raw)
In-Reply-To: <201004160025.13611.pedro@codesourcery.com>

Hi,

I think this idea is very cool.
Now, more and more function have a special switch to set a lot of
things.  So setup them to fit every time will very hard thing.

I suggest we design a new frame "save".
That every feature can add item to it.
The customer just use "save" or "save break" to set all of the items
or just break items.

Thanks,
Hui

On Fri, Apr 16, 2010 at 07:25, Pedro Alves <pedro@codesourcery.com> wrote:
> On Friday 16 April 2010 00:15:42, Michael Snyder wrote:
>> No, the current implementation calls "warning", with the same
>> message.  So it comes out at the console as:
>>
>>    Warning: Nothing to save.
>>
>
> I meant, "warning" is what the current code already does:
>
> -  if (!any_tp)
> +
> +  if (!any)
>     {
> -      warning (_("save-tracepoints: no tracepoints to save."));
> +      warning (_("Nothing to save."));
>       return;
>     }
>
>> Just sounds a little draconian, that's all.   ;-)
>
> It's actually correct to be a warning.  If there's nothing
> to save, the command does not overwrite a previous file,
> so a follow up "source" may read a stale breakpoint|tracepoint
> list.
>
> When writing the patch I had considered that this could
> be seen as a bug, and, hence we should either `error' out,
> or, proceed and write an empty file.  But as I said, I didn't
> want to change the whole world with a single patch, so I
> left that part out of the discussion on purpose...
>
> --
> Pedro Alves
>


  reply	other threads:[~2010-05-05  8:28 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-09  2:41 Pedro Alves
2010-04-09 16:17 ` Tom Tromey
2010-04-09 17:23   ` Pedro Alves
2010-04-10  4:10     ` Sergio Durigan Junior
2010-04-12 18:15     ` Pedro Alves
2010-04-15 17:52       ` Michael Snyder
2010-04-15 18:27         ` Pedro Alves
2010-04-15 18:46           ` Michael Snyder
2010-04-15 18:53             ` Pedro Alves
2010-04-15 18:58               ` Michael Snyder
2010-04-15 19:58                 ` Pedro Alves
2010-04-15 22:49                   ` Michael Snyder
2010-04-15 22:52                     ` Michael Snyder
2010-04-15 22:58                       ` Michael Snyder
2010-04-15 23:05                         ` Pedro Alves
2010-04-15 23:15                           ` Michael Snyder
2010-04-15 23:25                             ` Pedro Alves
2010-05-05  8:28                               ` Hui Zhu [this message]
2010-04-15 23:14                         ` Michael Snyder
2010-04-15 23:20                           ` Pedro Alves
2010-04-15 23:01                     ` Pedro Alves
2010-04-15 18:59           ` Stan Shebs
2010-04-15 19:10             ` 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=p2qdaef60381005050127g6dc6b55bze2be527c2d36abd6@mail.gmail.com \
    --to=teawater@gmail.com \
    --cc=gdb-patches@sourceware.org \
    --cc=msnyder@vmware.com \
    --cc=pedro@codesourcery.com \
    --cc=tromey@redhat.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