This is the mail archive of the insight@sourceware.org mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Adding buttons to the Source window toolbar.


Dear All,

I've had a look for some information on this on the net, but I haven't
found much that helps me and, knowing little (if anything!) of Tcl/Tk
and incr-Tk I'm a bit lost. I hope this hasn't been asked too many times
before; I didn't find an answer in the archives!

Anyway, on to the question:

We are using GDB/Insight (well, sde-insight, it's a MIPS based system)
for debugging. We've found an issue with our configuration that causes
us problems when stepping through code, but we believe we can work
round it by disabling interrupts round the steps. We can do this from
the console in Insight, but it would be nice to add extra buttons on
the source window to do this. The thing is, none of us here have much
experience of Tcl/Tk (or incr-Tcl) so we're not sure how to go about
it. We do realise we need to add some stuff into srcbar.itcl in the
create_control_buttons{} function, but we're not sure what we need to
put in there.

Essentially what we want to do in response to pressing the new button
is:

call TCT_Control_Interrupts(0x8000)
next
call TCT_Control_Interrupts(0xff00)

(where TCT_Control_Interrups() is a Nucleus function).

If anyone has done anything similar, or knows what we should be
looking for in the tcl code, please let me know. It will be greatly
appreciated.


John McCabe
Software Developer
EMS SatCom UK Ltd
Green Lane
Ashchurch
Tewkesbury
Gloucestershire
GL20 8HD

Tel  : +44 1684 290020 x146
Email: mccabe.j@emssatcom.com
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]