From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.devel Subject: Re: Toolbar problems with GDB mode. Date: Sat, 4 Jan 2003 19:54:07 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <15895.15327.116822.876751@nick.uklinux.net> References: <15894.10751.990342.816630@nick.uklinux.net> <200301041432.h04EWjeA032078@stubby.bodenonline.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1041710166 30253 80.91.224.249 (4 Jan 2003 19:56:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 4 Jan 2003 19:56:06 +0000 (UTC) Cc: emacs devel Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18UuOq-0007ro-00 for ; Sat, 04 Jan 2003 20:56:04 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18UuS5-00011T-00 for ; Sat, 04 Jan 2003 20:59:26 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18UuPN-00051Z-06 for emacs-devel@quimby.gnus.org; Sat, 04 Jan 2003 14:56:37 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18UuOw-0004hu-00 for emacs-devel@gnu.org; Sat, 04 Jan 2003 14:56:10 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18UuOq-0004Vk-00 for emacs-devel@gnu.org; Sat, 04 Jan 2003 14:56:06 -0500 Original-Received: from bts-0853.dialup.zetnet.co.uk ([194.247.51.85] helo=nick.uklinux.net) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18UuOo-0004Pv-00 for emacs-devel@gnu.org; Sat, 04 Jan 2003 14:56:03 -0500 Original-Received: by nick.uklinux.net (Postfix, from userid 501) id A4F5976037; Sat, 4 Jan 2003 19:54:07 +0000 (GMT) Original-To: "Jan D." In-Reply-To: <200301041432.h04EWjeA032078@stubby.bodenonline.com> X-Mailer: VM 6.97 under Emacs 21.3.50.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10479 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10479 > Okay, but it is also the one thing i dislike with DDD for example. > In embedded development, one does not even have a main. DDD then > loads a random file, which is annoying as it takes time. Do you use emacs for embedded development ? If so, could you please tell me what gdba does ? > I frequently do like this: > Go to line in file where I would like to break > C-x 2 > start gdb in the upper window. > C-x 0 C-x C-v C-a > > The last line is like one gesture, and gdba breaks that for me. I guess you mean C-x 0 C-x C-a C-b, but I get what you're saying. I had not thought about that approach. > I don't think it is a good idea to switch and hide file buffer a user > is looking at. Yes but sometimes, as they say, it best to start at the beginning. > Isn't that the reason why for example compile > splits the frame in two windows, to keep the file the user is editing > in sight? And presumably it would be a good idea for M-x gdb to do this also. Then you wouldn't have to split the window. I will make this change if others think it is a good idea. > The GDB default is 24 lines, and I had no terminfo entry for dumb, > hence GDB uses 24. Adding a terminfo solves that. But if gdba > requires a specific height, can it not do that as the first command > to GDB by itself? Just a thought. I will do this. I hadn't realised there was a problem before. > Another thing you should look at is starting gdba, stopping GDB > and killing the buffer, then starting gdba again. It does funny > things, ... Please don't simply kill the buffer. Always type gdb-quit before starting a new session. I'm writing documentation to say things like that and I will try to make it more robust with time. Nick