From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: robert marshall Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: 23.0.60; gdb not running the program first time around Date: Fri, 15 Feb 2008 11:28:31 +0000 Message-ID: <47B5775F.1010808@tnei.co.uk> References: <87r6fhi2ov.fsf@tnei.co.uk> <18355.35950.231456.824299@kahikatea.snap.net.nz> <47B4042B.6000702@tnei.co.uk> <20080214230122.A712A8FC6D@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1203074957 20273 80.91.229.12 (15 Feb 2008 11:29:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2008 11:29:17 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Nick Roberts Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 15 12:29:37 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JPyl6-0004kp-CE for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2008 12:29:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPykc-0000M3-KD for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2008 06:29:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPykR-0000IA-QM for emacs-devel@gnu.org; Fri, 15 Feb 2008 06:28:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPykL-0000Ek-Ij for emacs-devel@gnu.org; Fri, 15 Feb 2008 06:28:51 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPykK-0000EJ-Vm for emacs-devel@gnu.org; Fri, 15 Feb 2008 06:28:49 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JPykJ-0003vX-Vh for emacs-devel@gnu.org; Fri, 15 Feb 2008 06:28:48 -0500 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1JPykJ-0007yt-HB for emacs-pretest-bug@gnu.org; Fri, 15 Feb 2008 06:28:47 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JPykF-0003th-8Y for emacs-pretest-bug@gnu.org; Fri, 15 Feb 2008 06:28:46 -0500 Original-Received: from probity.mcc.ac.uk ([130.88.200.94]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JPykE-0003rU-3S for emacs-pretest-bug@gnu.org; Fri, 15 Feb 2008 06:28:42 -0500 Original-Received: from ipsa-gw.capcis.umist.ac.uk ([130.88.144.65] helo=[130.88.108.13]) by probity.mcc.ac.uk with esmtp (Exim 4.69 (FreeBSD)) (envelope-from ) id 1JPyk3-000Lts-AL; Fri, 15 Feb 2008 11:28:31 +0000 User-Agent: Thunderbird 2.0.0.6 (X11/20071022) In-Reply-To: <20080214230122.A712A8FC6D@kahikatea.snap.net.nz> X-UoM: Scanned by the University Mail System. See http://www.itservices.manchester.ac.uk/email/filtering/information/ for details. X-detected-kernel: by monty-python.gnu.org: FreeBSD 6.x (1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89150 gmane.emacs.pretest.bugs:21105 Archived-At: Nick Roberts wrote: > > I've just managed to replicate this behaviour when starting with -Q > > I think it happens when I type 'run' - at the prompt (already there in > > the buffer) - when the status line still says [initializing], so it > > changes to [ready] at around the same time as I press 'enter' > > ipsa-so is a fairly large file (c 90MB) and it takes around 2 sec from > > entering the 'gdb --annotate...' line to get to gdb showing [ready], > > I've just tried to do the same thing with the emacs binary and that > > starts up far too fast to get the same problem! > > OK, I can see this now. Emacs just discards the input if it's not ready, so > you don't need to do "C-c C-c" but just re-enter your input, e.g, run. > It doesn't look right, however, and I can see how it causes confusion. > > Can you please try the patch below which also fixes a couple of other minor > problems at startup. Instead of discarding the input, it should now just defer > it. It would be helpful if you could gorilla test it and report any problems > you see as I would like to add these changes to EMACS_22_BASE for the imminent > release of Emacs 22.2 > > Thanks for the report. > > Your patch appears to work well so far - I'll keep an eye on it over the next couple of days and let you know if I see any further problems. I've just tried (setq gdb-many-windows t) - not used this before and apart from being faviourably impressed :-) I've come across one problem. Our code tends to swap languages - top level is C++ which calls a c layer which then invokes some fortran, when I get down to the fortran I get a debugger segmentation fault immediately, I don't see this issue when gdb-many-windows is nil Do you want me to create a separate report for this - I assume there's a couple of issues here a gdb one and a gdb-ui.el one? Is it possible to run gdb within gdb in emacs? Robert