From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10663 invoked by alias); 10 Jan 2008 18:01:19 -0000 Received: (qmail 10655 invoked by uid 22791); 10 Jan 2008 18:01:19 -0000 X-Spam-Check-By: sourceware.org Received: from smtp-6.star.net.uk (HELO smtp-6.star.net.uk) (212.125.75.75) by sourceware.org (qpsmtpd/0.31) with SMTP; Thu, 10 Jan 2008 18:00:59 +0000 Received: (qmail 4363 invoked from network); 10 Jan 2008 18:00:56 -0000 Received: from unknown (HELO uk-ex2003.emssatcom.com) (81.171.181.228) by smtp-6.star.net.uk with SMTP; 10 Jan 2008 18:00:56 -0000 Content-class: urn:content-classes:message Subject: Adding buttons to the Source window toolbar. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 10 Jan 2008 18:01:00 -0000 Message-ID: <2F2A01C2A97A1747A3AE56C847117FB98B6AEB@uk-ex2003.emssatcom.com> From: "McCabe, John (UK)" To: X-IsSubscribed: yes Mailing-List: contact insight-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: insight-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00000.txt.bz2 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 =20