public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: Brandon Diamond <theevilgeek@gmail.com>
Cc: insight@sourceware.org
Subject: Re: Extending Insight
Date: Mon, 03 Mar 2008 17:45:00 -0000	[thread overview]
Message-ID: <47CC3834.4030807@redhat.com> (raw)
In-Reply-To: <145797ba0803022015vea67cf7y7d2a5605e110c850@mail.gmail.com>

Brandon Diamond wrote:
>  - With a strong background in C and a virtually non-existent background in Tcl,
>     - Would it be possible to implement additional windows containing
> varied UI components within a reasonable amount of time?

Definitely. Tcl/iTcl/iTk are simple languages. Just choose one of the 
newer windows and use it as a template.

>     - Could it be done in 1-3 weeks?

I should think so.

>     - Would a working knowledge of TCL suffice, or would I have to go
> pro? (if I could get by with minimal knowledge, is there a quick-start
> tutorial that you'd recommend?)

You don't need to be a pro at Tcl, not even the slightest. Tcl was meant 
to be easy to work with, and it is. The real problem you are going to 
run into is that insight is a bit of a mess. [Of course, if there are 
any questions about how to accomplish something, you are always welcome 
to send email to this list.]

>     - Is the Insight source & design amenable to these modification--
> or would this be a huge undertaking? (i.e., I'd have to read all of
> the code to even get started and break a bunch of abstractions in so
> doing)

While I think the internals are a bit of a mess, I do not think it would 
be difficult to do. We already have a basic plug-in architecture (see 
src/gdb/gdbtk/plugins/HOW-TO. If there are any problems (or bit rot), I 
can be found here.

> Finally, if Insight is the wrong place for me to start, does anyone
> know of a similar project that I might have a better chance of
> extending?

There are several gdb UI's around, the problem we found with most of 
them is that none of them (other than Inisght) run in the same process 
as gdb. As a result, they can be very limiting if gdb hasn't implemented 
some MI feature or you want access to more of gdb's internals.

Each of these other alternatives are also written in lower-level 
languages like C. We specifically chose Tcl to allow us to rapidly write 
UI code -- no need to recompile. Just reload the edited class/file into 
the already running interpreter and go. It's an amazingly efficient 
paradigm. It also allowed us to target Windows in the days before 
python, gtk, qt, etc.

DDD is, I think, one of the most popular of the gdb GUIs. You might want 
to check it out, too.

Keith

      reply	other threads:[~2008-03-03 17:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-03  4:15 Brandon Diamond
2008-03-03 17:45 ` Keith Seitz [this message]

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=47CC3834.4030807@redhat.com \
    --to=keiths@redhat.com \
    --cc=insight@sourceware.org \
    --cc=theevilgeek@gmail.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).