Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Vladimir Prus <vladimir@codesourcery.com>
To: gdb-patches@sources.redhat.com
Subject: Re: [patch] MI: Error out on -var-create invalid FRAME-ADDR
Date: Mon, 10 Aug 2009 17:00:00 -0000	[thread overview]
Message-ID: <h5pjcq$s9n$1@ger.gmane.org> (raw)
In-Reply-To: <20090810162949.GA9704@host0.dyn.jankratochvil.net>

Jan Kratochvil wrote:

> -      if (innermost_block && fi != NULL)
> +      if (innermost_block)
> {
> +         /* User could specify explicit FRAME-ADDR which was not found but
> +            EXPRESSION is frame specific and we would not be able to evaluate
> +            it correctly next time.  With VALID_BLOCK set we must also set
> +            FRAME and THREAD_ID.  */
> +         if (fi == NULL)
> +           {
> +             fprintf_unfiltered (gdb_stderr, "Failed to find the specified"
> +                                 " frame.\n");
> +             return NULL;
> +           }

Why is this fprintf + NULL return, as opposed to error?

Seems OK otherwise.

- Volodya





  reply	other threads:[~2009-08-10 16:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-10 16:55 Jan Kratochvil
2009-08-10 17:00 ` Vladimir Prus [this message]
2009-08-10 17:47   ` Jan Kratochvil
2009-08-13 15:03     ` Vladimir Prus
2009-08-26 20:08       ` Jan Kratochvil
2009-08-27  5:35         ` Vladimir Prus
2009-08-27  7:37           ` Jan Kratochvil

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='h5pjcq$s9n$1@ger.gmane.org' \
    --to=vladimir@codesourcery.com \
    --cc=gdb-patches@sources.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