From unknown Sat Jun 21 05:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19901: 24.4; gud-gdb: breakpoint hit covers *gud_gdb* buffer with breakpointed source buffer. Resent-From: Paul K Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Feb 2015 09:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19901 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 19901@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.14243392734936 (code B ref -1); Thu, 19 Feb 2015 09:48:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Feb 2015 09:47:53 +0000 Received: from localhost ([127.0.0.1]:48355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YONi3-0001HX-Nj for submit@debbugs.gnu.org; Thu, 19 Feb 2015 04:47:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59035) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YONi0-0001HN-UH for submit@debbugs.gnu.org; Thu, 19 Feb 2015 04:47:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YONhy-0003py-QP for submit@debbugs.gnu.org; Thu, 19 Feb 2015 04:47:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YONhy-0003pt-NK for submit@debbugs.gnu.org; Thu, 19 Feb 2015 04:47:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YONhw-0004ft-Hj for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 04:47:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YONhu-0003pD-Sx for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 04:47:44 -0500 Received: from mail-qc0-x22e.google.com ([2607:f8b0:400d:c01::22e]:59999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YONhu-0003p5-O0 for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 04:47:42 -0500 Received: by mail-qc0-f174.google.com with SMTP id c9so5335358qcz.5 for ; Thu, 19 Feb 2015 01:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Q3azRcXem4OGA8j7iQOjlFgo30I4b9JqBMDUuWJ3ltc=; b=aDMOHLqXMHgDjPocSYDiYq0sitOn/c+yEdz+UG+dfcUCD7+/c0rPem1swaIMV+Sdog 9yZZT8B+NK7vXAogHGMSwhSJjgDt1FF27+pg6HOgv0kwbljJVzCH048XcQ9LnQNhpOEQ wjugqfimfA6n/TNutQGoGAClyADm26Welb3h+mtL4bNWxJUBkNqZWcbz9PJAHcKpo2SM avZoPqHRs0aUx6FPBbxlsmV1cJ+pxk7sHkyt/DXKzhRRh2m9UyBtUq6ecjqcsFgQR66T K48tdlBNo/m9RZfp+9lencs6BwG0bR/hXj0s5ziNxeGIF1qOIpTkFoOlKZsYhUiNkyw4 EomA== MIME-Version: 1.0 X-Received: by 10.140.102.205 with SMTP id w71mr9740540qge.104.1424339262089; Thu, 19 Feb 2015 01:47:42 -0800 (PST) Received: by 10.140.104.45 with HTTP; Thu, 19 Feb 2015 01:47:42 -0800 (PST) Date: Thu, 19 Feb 2015 10:47:42 +0100 Message-ID: From: Paul K Content-Type: multipart/alternative; boundary=001a11c16708c1b4be050f6dd377 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a11c16708c1b4be050f6dd377 Content-Type: text/plain; charset=UTF-8 1) prompt$ emacs -q #. way I run emacs 2) I visit directory that contains binary I want to debug. It is on remote linux box (so emacs uses tramp to open it). 2) M-x gud-gdb. 3) I set two breakpoints. Each of them is in different C++ source file. 4) I split my emacs frame into two windows. Upper window contains *gud-proc* buffer. Lower window contains source file that contains second breakpoint. 5) I start program 6) First breakpoint is hit. Crazy thing: emacs splits upper window into two windows, this time veritcally. Upper left window contains *gud-proc*, while upper right contains source file with first breakpoint. I'd expect lower window should display the source file that contains first breakpoint instead. No new window should be created by emacs. Am I wrong? How to force emacs not to display another window? Even worse case happens when I prevent emacs from vertical split with following setting: (setq split-width-threshold nil) Then, at step 6 above, no new window is created, but instead, *gud-proc* buffer, that is dislayed in upper window is replaced with source file that keeps the first breakpoint. Maybe these two problems have the same root cause. In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2015-01-09 on mymachine Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.1 LTS Configured using: `configure --with-x-toolkit=gtk3' Important settings: value of $LC_MONETARY: pl_PL.UTF-8 value of $LC_NUMERIC: pl_PL.UTF-8 value of $LC_TIME: pl_PL.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: C++/l Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: C-x b b i n C-s SPC a b x g u d - g d b . / a b c C-x r j a C-x C-a C-b C-x r j b C-x C-a C-b C-x b * g u r u n SPC - t C-c C-r x r e p o r t Recent messages: # Mark saved where search started Tramp: Opening connection for CentOs7 using scp... Tramp: Sending command `exec ssh -q -o ControlPath=/tmp/tramp.15755Dwa.%r@%h:%p -o ControlMaster=auto -o ControlPersist=no -e none CentOs7' Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt on `CentOs7' Tramp: Opening connection for CentOs7 using scp...done Command: break client.cpp:32 Command: break fil1.cpp:1122 Command: cont Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils gud easy-mmode misearch multi-isearch dired-aux parse-time vc-cvs cc-langs cl-loaddefs cl-lib cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs dired tramp-cache tramp-sh tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete comint ansi-color ring format-spec advice help-fns time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 149951 7862) (symbols 48 23665 0) (miscs 40 129 286) (strings 32 30151 5840) (string-bytes 1 978331) (vectors 16 17290) (vector-slots 8 531424 6213) (floats 8 422 240) (intervals 56 1576 0) (buffers 960 20) (heap 1024 44318 1127)) --001a11c16708c1b4be050f6dd377 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
1) prompt$ emacs -q=C2=A0 #. way I run emacs
2) I visit= directory that contains binary I want to debug. It is on remote
linux b= ox (so emacs uses tramp to open it).
2) M-x gud-gdb.
3) I set two bre= akpoints. Each of them is in different C++ source file.
4) I split my em= acs frame into two windows. Upper window contains
*gud-proc* buffer. Low= er window contains source file that contains second
breakpoint.
5) I = start program
6) First breakpoint is hit.
=C2=A0=C2=A0=C2=A0=C2=A0 Cr= azy thing: emacs splits upper window into two windows, this time
veritca= lly. Upper left window contains *gud-proc*, while upper right
contains s= ource file with first breakpoint.

=C2=A0=C2=A0=C2=A0=C2=A0 I'd e= xpect lower window should display the source file that contains
first br= eakpoint instead. No new window should be created by emacs.

Am I wro= ng?

How to force emacs not to display another window?

Even wo= rse case happens when I prevent emacs from vertical split with
following= setting:
(setq split-width-threshold nil)

Then, at step 6 above,= no new window is created, but instead, *gud-proc*
buffer, that is disla= yed in upper window is replaced with source file that
keeps the first br= eakpoint.

Maybe these two problems have the same root cause.

=

In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)=
=C2=A0of 2015-01-09 on mymachine
Windowing system distributor `The X= .Org Foundation', version 11.0.11501000
System Description:=C2=A0=C2= =A0=C2=A0 Ubuntu 14.04.1 LTS

Configured using:
=C2=A0`configure -= -with-x-toolkit=3Dgtk3'

Important settings:
=C2=A0 value of $= LC_MONETARY: pl_PL.UTF-8
=C2=A0 value of $LC_NUMERIC: pl_PL.UTF-8
=C2= =A0 value of $LC_TIME: pl_PL.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8=C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: ut= f-8-unix

Major mode: C++/l

Minor modes in effect:
=C2=A0 s= hell-dirtrack-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 electric-indent-m= ode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 m= enu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lo= ck-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
= =C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0= auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient= -mark-mode: t
=C2=A0 abbrev-mode: t

Recent input:
<return&g= t; C-x b b i n <return> C-s SPC a b <up> <down>
<e= scape> x g u d - g d b <return> <escape> <backspace> <= br>. / a b c <return> C-x r j a C-x C-a C-b C-x r j b
C-x C-a C-b= C-x b * g u <tab> <return> r u n SPC -
t <return> C-= c C-r <escape> x r e p o r t <tab> <r
eturn>

Re= cent messages:
#<marker at 45046 in fil1.cpp>
Mark saved where = search started
Tramp: Opening connection for CentOs7 using scp...
Tra= mp: Sending command `exec ssh -q=C2=A0=C2=A0 -o ControlPath=3D/tmp/tramp.15= 755Dwa.%r@%h:%p -o ControlMaster=3Dauto -o ControlPersist=3Dno -e none Cent= Os7'
Tramp: Waiting for prompts from remote shell...done
Tramp: F= ound remote shell prompt on `CentOs7'
Tramp: Opening connection for = CentOs7 using scp...done
Command: break client.cpp:32
Command: break = fil1.cpp:1122
Command: cont

Load-path shadows:
None found.
=
Features:
(shadow sort mail-extr emacsbug message rfc822 mml mml-sec= mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils m= ailheader
sendmail rfc2047 rfc2045 ietf-drums mail-utils gud easy-mmode = misearch
multi-isearch dired-aux parse-time vc-cvs cc-langs cl-loaddefs = cl-lib
cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-= align
cc-engine cc-vars cc-defs dired tramp-cache tramp-sh tramp tramp-c= ompat
auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core<= br>gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver
s= hell pcomplete comint ansi-color ring format-spec advice help-fns
time-d= ate tooltip electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel= x-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list= newcomment lisp-mode prog-mode register page menu-bar
rfn-eshadow timer= select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core fr= ame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet = lao korean japanese hebrew greek romanian slovak
czech european ethiopic= indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple a= bbrev minibuffer nadvice loaddefs button
faces cus-face macroexp files t= ext-properties overlay sha1 md5 base64
format env code-pages mule custom= widget hashtable-print-readable
backquote make-network-process dbusbind= gfilenotify dynamic-setting
system-font-setting font-render-setting mov= e-toolbar gtk x-toolkit x
multi-tty emacs)

Memory information:((conses 16 149951 7862)
=C2=A0(symbols 48 23665 0)
=C2=A0(miscs 40 = 129 286)
=C2=A0(strings 32 30151 5840)
=C2=A0(string-bytes 1 978331)<= br>=C2=A0(vectors 16 17290)
=C2=A0(vector-slots 8 531424 6213)
=C2=A0= (floats 8 422 240)
=C2=A0(intervals 56 1576 0)
=C2=A0(buffers 960 20)=
=C2=A0(heap 1024 44318 1127))

--001a11c16708c1b4be050f6dd377-- From unknown Sat Jun 21 05:16:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19901: patch References: In-Reply-To: Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Mar 2015 14:05:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19901 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 19901@debbugs.gnu.org, 17675@debbugs.gnu.org Received: via spool by 19901-submit@debbugs.gnu.org id=B19901.142590987710170 (code B ref 19901); Mon, 09 Mar 2015 14:05:03 +0000 Received: (at 19901) by debbugs.gnu.org; 9 Mar 2015 14:04:37 +0000 Received: from localhost ([127.0.0.1]:40818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUyIL-0002do-7J for submit@debbugs.gnu.org; Mon, 09 Mar 2015 10:04:37 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:37855) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YUyIF-0002dW-Pb for 19901@debbugs.gnu.org; Mon, 09 Mar 2015 10:04:31 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id A1C4F2160D for <19901@debbugs.gnu.org>; Mon, 9 Mar 2015 10:04:25 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Mon, 09 Mar 2015 10:04:27 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=x-sasl-enc:from:to:subject:date:message-id:mime-version :content-type; s=mesmtp; bh=gaS+vfXqM6IcqcI1+UBG0v23yDY=; b=VGh2 /usuZsNsm2+SWiIiUlLjhTxOre+iXmW5dvzoql4CgisyE7YUTmh6pQj/8Oa5zZVI 9vtXn2iai5z8Op8OKdG5CnIZHd0qW4wV2IFtRDrxDLmNNGs8PtHPywhctbqMlGY9 yaVcT5G3IDSjMcfWA2dsTn5PoCEbYHRNhCO7T6A= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:subject:date :message-id:mime-version:content-type; s=smtpout; bh=gaS+vfXqM6I cqcI1+UBG0v23yDY=; b=rMKk4F9OuTYI+IYIHQhZsBi8vpFdMHwXOvfL+DN3PxQ Pe1ysbXnnq+OprdvxWkWOhoCywqChaZ+OJkXSiKS30YRKxX7qonkds8l06wT7EAQ OHMN4Rd5nC3jCIQXMUwniQyy14gPy2lt/kSddVX4gn/mv5mh/XPNVOfmVDiHcWK0 = X-Sasl-enc: EBltFmQhsUj5SYlngnsfhKIE61zwvDQ0P9+eryy1t1FB 1425909866 Received: from shorty.local (unknown [69.204.115.227]) by mail.messagingengine.com (Postfix) with ESMTPA id D1872C002A3; Mon, 9 Mar 2015 10:04:26 -0400 (EDT) Received: from localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1YUyID-00054V-E8; Mon, 09 Mar 2015 07:04:25 -0700 From: Dima Kogan Date: Mon, 09 Mar 2015 07:02:18 -0700 Message-ID: <87egoyl11y.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Hi. Does this patch fix your issue? http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20034 From unknown Sat Jun 21 05:16:09 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Paul K Subject: bug#19901: closed (Fixed) Message-ID: References: <87h9ti3g64.fsf@secretsauce.net> X-Gnu-PR-Message: they-closed 19901 X-Gnu-PR-Package: emacs Reply-To: 19901@debbugs.gnu.org Date: Wed, 18 Mar 2015 07:43:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1426664583-21446-1" This is a multi-part message in MIME format... ------------=_1426664583-21446-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #19901: 24.4; gud-gdb: breakpoint hit covers *gud_gdb* buffer with breakpoi= nted source buffer. which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 19901@debbugs.gnu.org. --=20 19901: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19901 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1426664583-21446-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 19901-done) by debbugs.gnu.org; 18 Mar 2015 07:42:38 +0000 Received: from localhost ([127.0.0.1]:50941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YY8cg-0005Yx-DE for submit@debbugs.gnu.org; Wed, 18 Mar 2015 03:42:38 -0400 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:60727) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YY8ce-0005YQ-Da for 19901-done@debbugs.gnu.org; Wed, 18 Mar 2015 03:42:36 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 272AC20A9F for <19901-done@debbugs.gnu.org>; Wed, 18 Mar 2015 03:42:27 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Wed, 18 Mar 2015 03:42:29 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=secretsauce.net; h=x-sasl-enc:from:to:subject:date:message-id:mime-version :content-type; s=mesmtp; bh=7vw38pSO/AfKiajLoxlLRMhaXd0=; b=k8K7 rzB7orqIw1wmPDOVARt6d8v5KF8QPTO2EFiAPVxDOOrOWM1NHSPxcrewqhfCOyP9 iqsf1Sp9PawBnNyqUauL7sUKXNBOGfrhVQJlw5OZkN4d63jPow2iupC8t5iyHlD/ br98RdivrO15IYycZaF9g68LEBAHMCsPwE0DTvI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:subject:date :message-id:mime-version:content-type; s=smtpout; bh=7vw38pSO/Af KiajLoxlLRMhaXd0=; b=E8AeCEzJRILM3EBgbrDdAdreHOOha/veNLVSBSBnDQw 3l6FAStM8i7oqBGIEMIC1JBDqQnitvEoChBdIZ30vv33fd5A6pKPSBu6VzMXQ497 ntXHCgMx8j/vEuIv2SybaGqhfOxCfpGyAtbw9J8rZR8NgA7e9h5PAA4hxUnu+urA = X-Sasl-enc: ZBAJJlxJRC40qludpYbMqyXxNgfWvnKgeM+sCfJINfLS 1426664548 Received: from shorty.local (unknown [76.91.145.213]) by mail.messagingengine.com (Postfix) with ESMTPA id E5588C0028C; Wed, 18 Mar 2015 03:42:28 -0400 (EDT) Received: from localhost ([::1] helo=shorty) by shorty.local with esmtp (Exim 4.84) (envelope-from ) id 1YY8cV-0005RG-Na; Wed, 18 Mar 2015 00:42:27 -0700 From: Dima Kogan To: 17675-done@debbugs.gnu.org, 19901-done@debbugs.gnu.org, 20034-done@debbugs.gnu.org Subject: Fixed Date: Wed, 18 Mar 2015 00:41:42 -0700 Message-ID: <87h9ti3g64.fsf@secretsauce.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 19901-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) Fixed with this commit: http://git.savannah.gnu.org/cgit/emacs.git/commit/?id=fd93edbb1cabfdf0c732dbb0c6892a515b406a65 ------------=_1426664583-21446-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 19 Feb 2015 09:47:53 +0000 Received: from localhost ([127.0.0.1]:48355 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YONi3-0001HX-Nj for submit@debbugs.gnu.org; Thu, 19 Feb 2015 04:47:52 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59035) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YONi0-0001HN-UH for submit@debbugs.gnu.org; Thu, 19 Feb 2015 04:47:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YONhy-0003py-QP for submit@debbugs.gnu.org; Thu, 19 Feb 2015 04:47:48 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:39712) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YONhy-0003pt-NK for submit@debbugs.gnu.org; Thu, 19 Feb 2015 04:47:46 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60756) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YONhw-0004ft-Hj for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 04:47:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YONhu-0003pD-Sx for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 04:47:44 -0500 Received: from mail-qc0-x22e.google.com ([2607:f8b0:400d:c01::22e]:59999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YONhu-0003p5-O0 for bug-gnu-emacs@gnu.org; Thu, 19 Feb 2015 04:47:42 -0500 Received: by mail-qc0-f174.google.com with SMTP id c9so5335358qcz.5 for ; Thu, 19 Feb 2015 01:47:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=Q3azRcXem4OGA8j7iQOjlFgo30I4b9JqBMDUuWJ3ltc=; b=aDMOHLqXMHgDjPocSYDiYq0sitOn/c+yEdz+UG+dfcUCD7+/c0rPem1swaIMV+Sdog 9yZZT8B+NK7vXAogHGMSwhSJjgDt1FF27+pg6HOgv0kwbljJVzCH048XcQ9LnQNhpOEQ wjugqfimfA6n/TNutQGoGAClyADm26Welb3h+mtL4bNWxJUBkNqZWcbz9PJAHcKpo2SM avZoPqHRs0aUx6FPBbxlsmV1cJ+pxk7sHkyt/DXKzhRRh2m9UyBtUq6ecjqcsFgQR66T K48tdlBNo/m9RZfp+9lencs6BwG0bR/hXj0s5ziNxeGIF1qOIpTkFoOlKZsYhUiNkyw4 EomA== MIME-Version: 1.0 X-Received: by 10.140.102.205 with SMTP id w71mr9740540qge.104.1424339262089; Thu, 19 Feb 2015 01:47:42 -0800 (PST) Received: by 10.140.104.45 with HTTP; Thu, 19 Feb 2015 01:47:42 -0800 (PST) Date: Thu, 19 Feb 2015 10:47:42 +0100 Message-ID: Subject: 24.4; gud-gdb: breakpoint hit covers *gud_gdb* buffer with breakpointed source buffer. From: Paul K To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a11c16708c1b4be050f6dd377 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a11c16708c1b4be050f6dd377 Content-Type: text/plain; charset=UTF-8 1) prompt$ emacs -q #. way I run emacs 2) I visit directory that contains binary I want to debug. It is on remote linux box (so emacs uses tramp to open it). 2) M-x gud-gdb. 3) I set two breakpoints. Each of them is in different C++ source file. 4) I split my emacs frame into two windows. Upper window contains *gud-proc* buffer. Lower window contains source file that contains second breakpoint. 5) I start program 6) First breakpoint is hit. Crazy thing: emacs splits upper window into two windows, this time veritcally. Upper left window contains *gud-proc*, while upper right contains source file with first breakpoint. I'd expect lower window should display the source file that contains first breakpoint instead. No new window should be created by emacs. Am I wrong? How to force emacs not to display another window? Even worse case happens when I prevent emacs from vertical split with following setting: (setq split-width-threshold nil) Then, at step 6 above, no new window is created, but instead, *gud-proc* buffer, that is dislayed in upper window is replaced with source file that keeps the first breakpoint. Maybe these two problems have the same root cause. In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2015-01-09 on mymachine Windowing system distributor `The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04.1 LTS Configured using: `configure --with-x-toolkit=gtk3' Important settings: value of $LC_MONETARY: pl_PL.UTF-8 value of $LC_NUMERIC: pl_PL.UTF-8 value of $LC_TIME: pl_PL.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: C++/l Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Recent input: C-x b b i n C-s SPC a b x g u d - g d b . / a b c C-x r j a C-x C-a C-b C-x r j b C-x C-a C-b C-x b * g u r u n SPC - t C-c C-r x r e p o r t Recent messages: # Mark saved where search started Tramp: Opening connection for CentOs7 using scp... Tramp: Sending command `exec ssh -q -o ControlPath=/tmp/tramp.15755Dwa.%r@%h:%p -o ControlMaster=auto -o ControlPersist=no -e none CentOs7' Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt on `CentOs7' Tramp: Opening connection for CentOs7 using scp...done Command: break client.cpp:32 Command: break fil1.cpp:1122 Command: cont Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils gud easy-mmode misearch multi-isearch dired-aux parse-time vc-cvs cc-langs cl-loaddefs cl-lib cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs dired tramp-cache tramp-sh tramp tramp-compat auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver shell pcomplete comint ansi-color ring format-spec advice help-fns time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 149951 7862) (symbols 48 23665 0) (miscs 40 129 286) (strings 32 30151 5840) (string-bytes 1 978331) (vectors 16 17290) (vector-slots 8 531424 6213) (floats 8 422 240) (intervals 56 1576 0) (buffers 960 20) (heap 1024 44318 1127)) --001a11c16708c1b4be050f6dd377 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
1) prompt$ emacs -q=C2=A0 #. way I run emacs
2) I visit= directory that contains binary I want to debug. It is on remote
linux b= ox (so emacs uses tramp to open it).
2) M-x gud-gdb.
3) I set two bre= akpoints. Each of them is in different C++ source file.
4) I split my em= acs frame into two windows. Upper window contains
*gud-proc* buffer. Low= er window contains source file that contains second
breakpoint.
5) I = start program
6) First breakpoint is hit.
=C2=A0=C2=A0=C2=A0=C2=A0 Cr= azy thing: emacs splits upper window into two windows, this time
veritca= lly. Upper left window contains *gud-proc*, while upper right
contains s= ource file with first breakpoint.

=C2=A0=C2=A0=C2=A0=C2=A0 I'd e= xpect lower window should display the source file that contains
first br= eakpoint instead. No new window should be created by emacs.

Am I wro= ng?

How to force emacs not to display another window?

Even wo= rse case happens when I prevent emacs from vertical split with
following= setting:
(setq split-width-threshold nil)

Then, at step 6 above,= no new window is created, but instead, *gud-proc*
buffer, that is disla= yed in upper window is replaced with source file that
keeps the first br= eakpoint.

Maybe these two problems have the same root cause.

=

In GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)=
=C2=A0of 2015-01-09 on mymachine
Windowing system distributor `The X= .Org Foundation', version 11.0.11501000
System Description:=C2=A0=C2= =A0=C2=A0 Ubuntu 14.04.1 LTS

Configured using:
=C2=A0`configure -= -with-x-toolkit=3Dgtk3'

Important settings:
=C2=A0 value of $= LC_MONETARY: pl_PL.UTF-8
=C2=A0 value of $LC_NUMERIC: pl_PL.UTF-8
=C2= =A0 value of $LC_TIME: pl_PL.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8=C2=A0 value of $XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: ut= f-8-unix

Major mode: C++/l

Minor modes in effect:
=C2=A0 s= hell-dirtrack-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 electric-indent-m= ode: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 m= enu-bar-mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lo= ck-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
= =C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0= auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient= -mark-mode: t
=C2=A0 abbrev-mode: t

Recent input:
<return&g= t; C-x b b i n <return> C-s SPC a b <up> <down>
<e= scape> x g u d - g d b <return> <escape> <backspace> <= br>. / a b c <return> C-x r j a C-x C-a C-b C-x r j b
C-x C-a C-b= C-x b * g u <tab> <return> r u n SPC -
t <return> C-= c C-r <escape> x r e p o r t <tab> <r
eturn>

Re= cent messages:
#<marker at 45046 in fil1.cpp>
Mark saved where = search started
Tramp: Opening connection for CentOs7 using scp...
Tra= mp: Sending command `exec ssh -q=C2=A0=C2=A0 -o ControlPath=3D/tmp/tramp.15= 755Dwa.%r@%h:%p -o ControlMaster=3Dauto -o ControlPersist=3Dno -e none Cent= Os7'
Tramp: Waiting for prompts from remote shell...done
Tramp: F= ound remote shell prompt on `CentOs7'
Tramp: Opening connection for = CentOs7 using scp...done
Command: break client.cpp:32
Command: break = fil1.cpp:1122
Command: cont

Load-path shadows:
None found.
=
Features:
(shadow sort mail-extr emacsbug message rfc822 mml mml-sec= mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils m= ailheader
sendmail rfc2047 rfc2045 ietf-drums mail-utils gud easy-mmode = misearch
multi-isearch dired-aux parse-time vc-cvs cc-langs cl-loaddefs = cl-lib
cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-= align
cc-engine cc-vars cc-defs dired tramp-cache tramp-sh tramp tramp-c= ompat
auth-source eieio byte-opt bytecomp byte-compile cconv eieio-core<= br>gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver
s= hell pcomplete comint ansi-color ring format-spec advice help-fns
time-d= ate tooltip electric uniquify ediff-hook vc-hooks lisp-float-type
mwheel= x-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list= newcomment lisp-mode prog-mode register page menu-bar
rfn-eshadow timer= select scroll-bar mouse jit-lock font-lock syntax
facemenu font-core fr= ame cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet = lao korean japanese hebrew greek romanian slovak
czech european ethiopic= indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple a= bbrev minibuffer nadvice loaddefs button
faces cus-face macroexp files t= ext-properties overlay sha1 md5 base64
format env code-pages mule custom= widget hashtable-print-readable
backquote make-network-process dbusbind= gfilenotify dynamic-setting
system-font-setting font-render-setting mov= e-toolbar gtk x-toolkit x
multi-tty emacs)

Memory information:((conses 16 149951 7862)
=C2=A0(symbols 48 23665 0)
=C2=A0(miscs 40 = 129 286)
=C2=A0(strings 32 30151 5840)
=C2=A0(string-bytes 1 978331)<= br>=C2=A0(vectors 16 17290)
=C2=A0(vector-slots 8 531424 6213)
=C2=A0= (floats 8 422 240)
=C2=A0(intervals 56 1576 0)
=C2=A0(buffers 960 20)=
=C2=A0(heap 1024 44318 1127))

--001a11c16708c1b4be050f6dd377-- ------------=_1426664583-21446-1--