From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9031 invoked by alias); 21 Jan 2008 21:44:29 -0000 Received: (qmail 9021 invoked by uid 22791); 21 Jan 2008 21:44:28 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 21 Jan 2008 21:43:49 +0000 Received: from kahikatea.snap.net.nz (89.30.255.123.static.snap.net.nz [123.255.30.89]) by viper.snap.net.nz (Postfix) with ESMTP id 6F93B3DA079; Tue, 22 Jan 2008 10:43:46 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 73C428FC6D; Tue, 22 Jan 2008 10:43:45 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18325.4624.418936.831306@kahikatea.snap.net.nz> Date: Mon, 21 Jan 2008 21:44:00 -0000 To: "Marc Khouzam" Cc: Subject: RE: -var-update using formatted value In-Reply-To: <6D19CA8D71C89C43A057926FE0D4ADAA2DE0A2@ecamlmw720.eamcs.ericsson.se> References: <6D19CA8D71C89C43A057926FE0D4ADAA04290E3C@ecamlmw720.eamcs.ericsson.se> <18320.559.863596.871051@kahikatea.snap.net.nz> <6D19CA8D71C89C43A057926FE0D4ADAA2DE096@ecamlmw720.eamcs.ericsson.se> <18321.5512.90696.545727@kahikatea.snap.net.nz> <6D19CA8D71C89C43A057926FE0D4ADAA2DE09C@ecamlmw720.eamcs.ericsson.se> <18321.17566.890207.913917@kahikatea.snap.net.nz> <6D19CA8D71C89C43A057926FE0D4ADAA2DE0A2@ecamlmw720.eamcs.ericsson.se> X-Mailer: VM 7.19 under Emacs 23.0.50.34 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00219.txt.bz2 > I downloaded emacs 22.1 a gave it a spin. It's pretty cool, the new GUI for > GDB. But I don't know how to set gdb-enable-debug to t or to look at > gdb-debug-log after. My emacs is pretty darn rusty. I also couldn't figure > out how to change the format to hex for a watch expression. > > I did have a look at gdb-ui.el and I saw pretty much every -var-command used > but I could not find any reference to -var-set-format... Sorry I wasn't clear. Changing format is currently only possible in Emacs from the CVS repository at Savannah (savannah.gnu.org/projects/emacs). It's changed by right clicking in the speedbar to get a pop up menu and selecting the appropriate format from the "Output Format" sub-menu I can send you a small patch to do that (which incidentally only updates properly for 6.7, or later) but if we can get approval for Vladimir's patch (or similar) I'll have to change what is in the repository, so it would be better to wait till then. > > In fact, I'd be interested to know how well (badly?) GDB in Emacs performs > > in an embedded environment. > > I currently don't have a setup to properly test this, but it is something we > will be eventually looking into. At that time, I can give emacs a try. Cool. I've thought about what you said on dsdp-dd-dev about -var-list-children and I think Emacs could be changed to just create/update those watch expressions which are visible. If you have questions about the mode it's probably best to post to emacs-devel. For general Emacs questions, like how to set gdb-enable-debug to t or to look at gdb-debug-log, feel free to mail me off list. -- Nick http://www.inet.net.nz/~nickrob