public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* how to add additional script to add more register information
@ 2013-01-11 15:53 loody
  2013-01-11 16:07 ` Keith Seitz
  0 siblings, 1 reply; 5+ messages in thread
From: loody @ 2013-01-11 15:53 UTC (permalink / raw)
  To: insight

hi all:
is it possible to add additional script to add information I want in insight?
if it could, is there any example i can follow?


-- 
Thank for your help in advance,

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to add additional script to add more register information
  2013-01-11 15:53 how to add additional script to add more register information loody
@ 2013-01-11 16:07 ` Keith Seitz
  2013-01-23 16:31   ` loody
  0 siblings, 1 reply; 5+ messages in thread
From: Keith Seitz @ 2013-01-11 16:07 UTC (permalink / raw)
  To: loody; +Cc: insight

On 01/11/2013 07:53 AM, loody wrote:
> hi all:
> is it possible to add additional script to add information I want in insight?

It is possible, yes. Easy? Maybe not so much.

> if it could, is there any example i can follow?

There are two ways to accomplish your specific task.

First, the ugly, but more integrated way, is to hack at 
gdbtk/library/regwin.it[hb]. The code there is actually fairly recent 
and clean.

The more formal way, but less integrated, is to create a plug-in. To do 
that, follow the directions in gdbtk/library/plugins/HOW-TO. WARNING: I 
haven't looked at these directions in quite some time, they may be 
slightly outdated. But I doubt much has changed since there have been no 
plug-ins written in a very long time. If you find problems with the 
HOW-TO, just send a note to this list so that I can address them.

In lieu of that, or in addition to that, you can follow the either the 
example plug-in (gdbtk/library/plugins/rhabout) and/or the (very simple) 
Pentium plug-in (gdbtk/library/plugins/intel-pentium).

Again, if you run into problems or have any questions, just send a note 
to this list, and I'll try to get your questions answered as best as 
possible.

Keith

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to add additional script to add more register information
  2013-01-11 16:07 ` Keith Seitz
@ 2013-01-23 16:31   ` loody
  2013-01-23 17:08     ` Keith Seitz
  0 siblings, 1 reply; 5+ messages in thread
From: loody @ 2013-01-23 16:31 UTC (permalink / raw)
  To: Keith Seitz; +Cc: insight

hi Keith:
2013/1/12 Keith Seitz <keiths@redhat.com>:
> On 01/11/2013 07:53 AM, loody wrote:
>>
>> hi all:
>> is it possible to add additional script to add information I want in
>> insight?
>
>
> It is possible, yes. Easy? Maybe not so much.
>
>
>> if it could, is there any example i can follow?
>
>
> There are two ways to accomplish your specific task.
>
> First, the ugly, but more integrated way, is to hack at
> gdbtk/library/regwin.it[hb]. The code there is actually fairly recent and
> clean.
>
> The more formal way, but less integrated, is to create a plug-in. To do
> that, follow the directions in gdbtk/library/plugins/HOW-TO. WARNING: I
> haven't looked at these directions in quite some time, they may be slightly
> outdated. But I doubt much has changed since there have been no plug-ins
> written in a very long time. If you find problems with the HOW-TO, just send
> a note to this list so that I can address them.
>
> In lieu of that, or in addition to that, you can follow the either the
> example plug-in (gdbtk/library/plugins/rhabout) and/or the (very simple)
> Pentium plug-in (gdbtk/library/plugins/intel-pentium).
>
> Again, if you run into problems or have any questions, just send a note to
> this list, and I'll try to get your questions answered as best as possible.

Sorry for late response your mail.
should I get any script familiar fist, such tcl?
if tcl learning is necessary, where I can get it?

Thanks a lot,

-- 
Regards,

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to add additional script to add more register information
  2013-01-23 16:31   ` loody
@ 2013-01-23 17:08     ` Keith Seitz
  2013-01-24 15:51       ` loody
  0 siblings, 1 reply; 5+ messages in thread
From: Keith Seitz @ 2013-01-23 17:08 UTC (permalink / raw)
  To: loody; +Cc: insight

On 01/23/2013 08:30 AM, loody wrote:
> Sorry for late response your mail.
> should I get any script familiar fist, such tcl?
> if tcl learning is necessary, where I can get it?

Yes, you will need to know a bit of Tcl/Tk and iTcl/iTk/iWidgets.

Tcl isn't all that difficult to learn. It has a few quirks, but nothing 
too major. iTcl is simply an OO extension for Tcl. It's also not very 
difficult to pick up.

Once you know basic Tk-isms (packing vs grid, e.g.), iTk and iWidgets 
are pretty simple and quite a bit easier to use. It's simply a matter of 
remembering what kinds of widgets those packages offer. I don't remember 
much nowadays, so I just refer to the manual and demos.

Tcl/Tk documentation, list of books, and tutorials listed on the 
Developer Xchange pages: http://www.tcl.tk/doc

All things iTcl (incl iTk/iWidgets) are at 
http://incrtcl.sourceforge.net/itcl . [This is a bit outdated -- iTcl is 
now more closely integrated as a Tcl module, but this is the page that I 
always run to for documentation.]

Keith

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to add additional script to add more register information
  2013-01-23 17:08     ` Keith Seitz
@ 2013-01-24 15:51       ` loody
  0 siblings, 0 replies; 5+ messages in thread
From: loody @ 2013-01-24 15:51 UTC (permalink / raw)
  To: Keith Seitz; +Cc: insight

hi Keith:

2013/1/24 Keith Seitz <keiths@redhat.com>:
> On 01/23/2013 08:30 AM, loody wrote:
>>
>> Sorry for late response your mail.
>> should I get any script familiar fist, such tcl?
>> if tcl learning is necessary, where I can get it?
>
>
> Yes, you will need to know a bit of Tcl/Tk and iTcl/iTk/iWidgets.
>
> Tcl isn't all that difficult to learn. It has a few quirks, but nothing too
> major. iTcl is simply an OO extension for Tcl. It's also not very difficult
> to pick up.
>
> Once you know basic Tk-isms (packing vs grid, e.g.), iTk and iWidgets are
> pretty simple and quite a bit easier to use. It's simply a matter of
> remembering what kinds of widgets those packages offer. I don't remember
> much nowadays, so I just refer to the manual and demos.
>
> Tcl/Tk documentation, list of books, and tutorials listed on the Developer
> Xchange pages: http://www.tcl.tk/doc
>
> All things iTcl (incl iTk/iWidgets) are at
> http://incrtcl.sourceforge.net/itcl . [This is a bit outdated -- iTcl is now
> more closely integrated as a Tcl module, but this is the page that I always
> run to for documentation.]
Thanks for your great help,

-- 
Regards,

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-01-24 15:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-11 15:53 how to add additional script to add more register information loody
2013-01-11 16:07 ` Keith Seitz
2013-01-23 16:31   ` loody
2013-01-23 17:08     ` Keith Seitz
2013-01-24 15:51       ` loody

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).