public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* results insight script init...
@ 2000-07-15  7:36 Paul Breed
  2000-07-17  5:30 ` Keith Seitz
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Breed @ 2000-07-15  7:36 UTC (permalink / raw)
  To: insight

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 824 bytes --]

My Goal was to have Insight automatically connect
to a specific target on startup and to prevent 
the attach dialog when you hit run.

I have it all working my gdb.ini file:

symbol-file DBdebugdemo.elf
set remotebaud 57600
set remotedevice COM1
target remote COM1
tk set ::gdb_target_name remote
tk gdbtk_update
tk gdbtk_next
tk gdbtk_update	 
tk gdbtk_idle

The only problem remaining is that the cursor in
the code window is an hourglass, and not a pointer.

I believe that this can be fixed with
SrcWin::enable_ui { on }
or
SrcWin::no_inferior 

But how do I get an instance of the source window?

Paul



It clears up if I hit the next button on the display.

Paul



__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com/

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

* Re: results insight script init...
  2000-07-15  7:36 results insight script init Paul Breed
@ 2000-07-17  5:30 ` Keith Seitz
  0 siblings, 0 replies; 2+ messages in thread
From: Keith Seitz @ 2000-07-17  5:30 UTC (permalink / raw)
  To: Paul Breed; +Cc: insight

Paul Breed wrote:
> 
> My Goal was to have Insight automatically connect
> to a specific target on startup and to prevent
> the attach dialog when you hit run.
> 
> I have it all working my gdb.ini file:
> 
> symbol-file DBdebugdemo.elf
> set remotebaud 57600
> set remotedevice COM1
> target remote COM1
> tk set ::gdb_target_name remote
> tk gdbtk_update
> tk gdbtk_next
> tk gdbtk_update
> tk gdbtk_idle
> 
> The only problem remaining is that the cursor in
> the code window is an hourglass, and not a pointer.
> 

This normally occurs as part of the idle callbacks (invoked with
gdbtk_idle). Perhaps you simply need to add gdbtk_idle call to an "after
idle" or something. (I dunno, actually. I am working on a similar
problem myself...)

> I believe that this can be fixed with
> SrcWin::enable_ui { on }
> or
> SrcWin::no_inferior
> 
> But how do I get an instance of the source window?
> 

One question first: can you type into the console window? If so, then
you've probably found a bug in one of the idle or update callbacks.
Using "gdbtk_idle" will cause all windows to go "idle", ready for user
input.

Now onto the real question. You can use the proc "ManagedWin::find
className" to find a window of the given classname. So you would use
"ManagedWin::find Src". This will return a list of all the objects of
class "Src". It could be one, it could be many.

Keith

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

end of thread, other threads:[~2000-07-17  5:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-15  7:36 results insight script init Paul Breed
2000-07-17  5:30 ` 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).