public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: ac131313@redhat.com (Andrew Cagney)
To: insight@sourceware.org
Subject: Re: Insight build problem on cygwin (tentative patch enclosed)
Date: Tue, 18 Feb 2003 03:36:00 -0000	[thread overview]
Message-ID: <20030218014014.AAA5B3CEC@localhost.redhat.com> (raw)
In-Reply-To: <20030217184819.GC7514@redhat.com> "from Christopher Faylor at Feb 17, 2003 01:48:19 pm"

> [reply-to set]
> On Mon, Feb 17, 2003 at 01:38:02PM -0500, Andrew Cagney wrote:
> >>-  static const struct interp_procs tk_procs =
> >>-  {
> >>-    tk_init,
> >>-    gdbtk_resume,
> >>-    gdbtk_suspend,
> >>-    gdbtk_exec,
> >>-    gdbtk_prompt_p,
> >>-    gdbtk_command_loop,
> >>-  };
> >>-
> >>-  interp_add (interp_new ("gdbtk", NULL, NULL, &tk_procs));
> >>-
> >
> >FYI,
> >
> >Removing from _initialize*() is wrong.  Interpreters should only be 
> >registered in _initialize*() function.
> >
> >I think the underlying problem is general confusion over the separation 
> >of powers between interp_add() and interp_init().
> >
> >BTW, even with that NULL, it worked for me.  Is there something cygwin 
> >centric going on?
> 
> Don't see how it could be.  interp_set does this:
> 
>   uiout = interp->interpreter_out;
> 
> So, at some point uiout becomes NULL.  I wiped out my old non-working version
> so I can't give the specific instance right now but it seems obvious that this
> could happen.  If you set interpreter_out to NULL and call interp_set at some
> point then uiout will be NULL.

I don't know.  Probably didn't use it in anger.

I think the underlying problem is with interp_add().  It shouldn't
even take that ui-out parameter.  Instead the ui-out should be set
using some other mechanism (interp_init()?).

Andrew

PS: Note that the current gdbtk_init() relies on the `going to be
deleted real soon now' init_ui_hook.

  parent reply	other threads:[~2003-02-18  2:39 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-13 22:04 Insight build problem on cygwin Rolf Campbell
2003-02-13 22:43 ` Keith Seitz
2003-02-15 22:11   ` Rolf Campbell
2003-02-17 16:27     ` Keith Seitz
2003-02-17 16:49       ` Rolf Campbell
2003-02-17 17:04         ` Insight build problem on cygwin (tentative patch enclosed) Christopher Faylor
2003-02-17 17:48           ` Keith Seitz
2003-02-17 18:48             ` Christopher Faylor
2003-02-17 18:59               ` Christopher Faylor
2003-02-17 19:54                 ` Keith Seitz
2003-02-18  0:35                   ` Christopher Faylor
2003-02-19 18:02                     ` Rolf Campbell
2003-02-19 18:28                       ` Keith Seitz
2003-02-19 21:49                         ` Rolf Campbell
2003-02-17 18:38           ` Andrew Cagney
2003-02-17 18:42             ` Andrew Cagney
2003-02-17 18:54             ` Christopher Faylor
2003-02-17 19:01               ` Christopher Faylor
2003-02-17 21:25                 ` Rolf Campbell
2003-02-18  3:36               ` Andrew Cagney [this message]
2003-02-18 23:32                 ` Keith Seitz
2003-02-19 22:49       ` Insight build problem on cygwin Keith Seitz
2003-02-19 22:54         ` Rolf Campbell
2003-02-20  1:05           ` Keith Seitz
2003-02-20  2:36             ` Rolf Campbell
2003-02-20 17:55               ` Keith Seitz
2003-02-21 10:16                 ` Christopher Faylor

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=20030218014014.AAA5B3CEC@localhost.redhat.com \
    --to=ac131313@redhat.com \
    --cc=insight@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).