public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Help for memory view!
@ 2004-05-06  6:17 Emilio Ugo GIUFFRIDA
  2004-05-06  6:57 ` Keith Seitz
  0 siblings, 1 reply; 3+ messages in thread
From: Emilio Ugo GIUFFRIDA @ 2004-05-06  6:17 UTC (permalink / raw)
  To: insight

Gentlemen,

I'm a software developer on Insigth porting for the ST200 processor since last year.

I have to improve the memory view to let the user to view multiple memory areas at the same time.

What I have seen, by stepping through the code, is that is possible to display only a single window for each feature of the GUI.

Can you help me ?


Best regards,

Emilio U. Giuffrida



--------------------------------------------------------------------------

  			     Emilio Ugo Giuffrida

ST200 Tools Team                        Phone   : +39 0957404514
CMG/MCDT Software Design Center         Fax     : +39 0957404013
ST Microelectronics                     TINA    : 052 4514
Stradale Primosole, 50 			e-mail  : emilio.giuffrida@st.com
95121 Catania ITALY     

--------------------------------------------------------------------------

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

* Re: Help for memory view!
  2004-05-06  6:17 Help for memory view! Emilio Ugo GIUFFRIDA
@ 2004-05-06  6:57 ` Keith Seitz
  0 siblings, 0 replies; 3+ messages in thread
From: Keith Seitz @ 2004-05-06  6:57 UTC (permalink / raw)
  To: Emilio Ugo GIUFFRIDA; +Cc: insight

On Wed, 2004-05-05 at 23:16, Emilio Ugo GIUFFRIDA wrote:
> I'm a software developer on Insigth porting for the ST200 processor since last year.
> 
> I have to improve the memory view to let the user to view multiple memory areas at the same time.
> 
> What I have seen, by stepping through the code, is that is possible to display only a single window for each feature of the GUI.

Insight can already do this, more or less.

Open a memory window. Right-click on one of the cells. The option "Open
New Window at <address>" appears. Click it and another memory window
will open. You can change it to point at any location you want.

Now if you want to open two memory windows from the toolbar, that's
another story. It's been quite some time since I looked at that code,
but I believe that the code to check all that is generic (i.e., the code
allows you to only open a single window of any type). It is located in
managedwin.it{h,b}. You could modify this class to allow multiple
MemoryWins to open.

Keith

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

* RE: Help for memory view!
       [not found] <000701c4366c$a712ede0$9a8182a4@CTN000514>
@ 2004-05-10 17:27 ` Keith Seitz
  0 siblings, 0 replies; 3+ messages in thread
From: Keith Seitz @ 2004-05-10 17:27 UTC (permalink / raw)
  To: Emilio Ugo GIUFFRIDA; +Cc: insight

On Mon, 2004-05-10 at 01:56, Emilio Ugo GIUFFRIDA wrote:
> Do you think it's possible, without adding so much heaviness in the code, to
> highlight changed memory values ?

Yes, it should be possible. In fact, I thought that it did this already.

> In memwin.itb there is a method, update_addr, that calls the command
> "gdb_update_mem" located in gdbtk-cmds.c file.
> 
> What I understood is that memory values are read each time from the target,
> stored in a temporary buffer, and then displayied.
> It's right ?

More or less: the user has the option ("Auto Update" in preferences) to
turn it off.

> Have you any suggestion or comments ?

But, yes, it should absolutely be possible, and it shouldn't be all that
difficult to do. Keep around a list of cells that have changed since the
last update. Mark them as "normal" and then mark the newly changed cells
(and save in the changed cell list).

Of course, all this assumes that our table widget can change cell text
color. I know for certain it can change a background color, but I'm not
so sure about font color.

Anyway, if it can change the text color for a cell, change the font
color to ::Colors(change).

Keith

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

end of thread, other threads:[~2004-05-10 17:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-06  6:17 Help for memory view! Emilio Ugo GIUFFRIDA
2004-05-06  6:57 ` Keith Seitz
     [not found] <000701c4366c$a712ede0$9a8182a4@CTN000514>
2004-05-10 17:27 ` Keith Seitz

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