public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: James Ingham <jingham@cygnus.com>
To: Tom Tromey <tromey@cygnus.com>
Cc: James Ingham <jingham@cygnus.com>,
	Insight List <insight@sourceware.cygnus.com>
Subject: Re: `dir'
Date: Fri, 07 Apr 2000 14:45:00 -0000	[thread overview]
Message-ID: <14574.22436.823558.632348@leda.cygnus.com> (raw)
In-Reply-To: <200004072130.OAA08914@ferrule.cygnus.com>

Tom,

 > Jim> But I was poking my nose in libgui, and noted the tantelizing
 > Jim> tclgetdir.c file...
 > 
 > Another wonderful piece of Foundry technology lives on!  Thanks, IanT.
 > Note that on Unix this works by using a hacked tk_getOpenFile.  I
 > don't know if those hacks are in the Insight Tk.
 > 
 > Jim> I am more likely to add the GUI, and have that do the right
 > Jim> thing, than add another hook to the CL.  Actually, it would be
 > Jim> nice to just have a generic pre or post processing hook in ALL
 > Jim> the commands executed by the gdb command interpreter, so you
 > Jim> wouldn't have to go add the hooks into the C code to do this sort
 > Jim> of thing.
 > 
 > My feeling is that what you really want is a way to be notified by the
 > gdb core when interesting state changes.  The GUI would run the "dir"
 > command, but would rely on this same notification to update the source
 > window cache.
 > 
 > You want this because then it doesn't matter how the state changes --
 > only that it has changed.
 > 
 > Whether this is done by hooking into the command interpreter in a
 > generic way, or more directly into the core (e.g. in this case in
 > directory_command()), I don't know.

Yeah, I am of two minds about this.  On the one hand, you are right,
it is better to have the hook as close to where the change happens as
possible, so that you get consistent responses to the change no matter 
how it is affected.  On the other hand, to really track the command
line, you may end up sprinkling so many hooks all over the gdb code
that it gets cumbersome & ugly.  If you had a "run this tcl proc on
each CLI command" mechanism, picking up a place where you were not
tracking the gui properly and fixing it would be really trivial, just
add another pattern to your command hook, and write the Tcl code to
respond... 

I am not altogether sure.

Jim

  reply	other threads:[~2000-04-07 14:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-07 13:21 `dir' Tom Tromey
2000-04-07 14:14 ` `dir' James Ingham
2000-04-07 14:30   ` `dir' Tom Tromey
2000-04-07 14:45     ` James Ingham [this message]
2000-04-07 14:58       ` `dir' Tom Tromey
2000-04-07 14:54   ` `dir' Mo DeJong

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=14574.22436.823558.632348@leda.cygnus.com \
    --to=jingham@cygnus.com \
    --cc=insight@sourceware.cygnus.com \
    --cc=tromey@cygnus.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).