From unknown Wed Jun 18 00:30:22 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#5208: 23.1.90; M-x gud-gdb: Tab Completion Produces Spurious Ctrl-M Characters Reply-To: Steve Revilak , 5208@debbugs.gnu.org Resent-From: Steve Revilak Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sun, 13 Dec 2009 15:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 5208 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12607192787679 (code B ref -1); Sun, 13 Dec 2009 15:50:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 13 Dec 2009 15:47:58 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=AWL,FOURLA,IMPRONONCABLE_1, IMPRONONCABLE_2,MURPHY_WRONG_WORD2,PGPSIGNATURE autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBDFlu6U007671 for ; Sun, 13 Dec 2009 07:47:58 -0800 Received: from mx10.gnu.org ([199.232.76.166]:54376) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NJqfs-0007Qb-9h for emacs-pretest-bug@gnu.org; Sun, 13 Dec 2009 10:47:56 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NJqfm-00069u-BY for emacs-pretest-bug@gnu.org; Sun, 13 Dec 2009 10:47:55 -0500 Received: from mail1.sea5.speakeasy.net ([69.17.117.3]:54548) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NJqfl-00069Y-O6 for emacs-pretest-bug@gnu.org; Sun, 13 Dec 2009 10:47:50 -0500 Received: (qmail 17540 invoked from network); 13 Dec 2009 15:47:46 -0000 Received: from pool-96-233-67-219.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[96.233.67.219]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 13 Dec 2009 15:47:46 -0000 Date: Sun, 13 Dec 2009 10:47:38 -0500 From: Steve Revilak To: emacs-pretest-bug@gnu.org Message-ID: <20091213154738.GB376@srevilak.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Yylu36WmvOXNoKYn" Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) --Yylu36WmvOXNoKYn Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': * * * In Emacs 23.1.90.1, tab completion in M-x gud-gdb produces spurious control-M characters; it almost appears as if Ctrl-M is being appended to each symbol name offered for completion. Below, I will give steps to reproduce this behavior, and the results that I observe when following these steps. For this example, any time that you see "^M" (consisting of two characters -- "^" and "M"), please interpret this as the visual representation of the single character Ctrl-M (0x0d). First we will need a C program to debug. I will use the following program: ---------- begin demo2.c -------------- #include static void add_one(int * x) { *x += 1; } static void add_two (int * x) { *x += 2; } int main(void) { int val = 0; add_one(&val); add_two(&val); printf("val=%d\n", val); return 0; } ---------- end demo2.c -------------- STEPS TO REPRODUCE ------------------ (1) Compile demo2.c. gcc -g -o demo2 demo2.c (2) start emacs. emacs -Q -nw demo2.c (3) start the debugger M-x gud-gdb RET Emacs offers the following: "Run gud-gdb (like this): gdb --fullname demo2" Press RETURN to accept the gdb command line. (4) Emacs starts the debugger in buffer "*gud-demo2*", and displays the "(gdb)" prompt. At the gdb prompt enter the commands - b main RETURN - run RETURN (5) Emacs begins to run demo2 under gdb, and breaks in the first line of main. (6) I'd like to set a breakpoint in function "add_one". At the (gdb) prompt in the *gud-demo* buffer, I type "b add TAB". After I press TAB, emacs displays a *Completions* buffer with the following: --------------------------------- In this buffer, type RET to select the completion near point. Possible completions are: add_fdes^M add_one^M add_profil^M add_two^M addcmd^M addr2ascii^M --------------------------------- Note that every symbol is suffixed with "^M" (7) At the (gdb) prompt in the "*gud-demo*" buffer, I type the characters "_o", so that the current (gdb) prompt line contains "b add_o". I press TAB to complete the function name. *gud-demo* completes the function name, and displays --------------------------------- (gdb) b add_one^M --------------------------------- Note that a "^M" was appended to the completed symbol name. (8) At the (gdb) prompt, I type RETURN to create the breakpoint. Emacs responds with --------------------------------- Breakpoint 2 at 0x1f88: file demo2.c, line 4. (gdb) (gdb) --------------------------------- Note that *gud-demo* displays two (gdb) prompts after I press RETURN. (9) At the (gdb) prompt, I type "c RETURN" to continue running demo2. (10) After reaching the breakpoint in add_one, I type "c RETURN" to continue again. demo2 continues executing and exits. After demo2 exits, the *gud-demo2* buffer contains the following contents: --------------------------------- Current directory is ~/ GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries ... done (gdb) b main Breakpoint 1 at 0x1fb9: file demo2.c, line 12. (gdb) run Starting program: /Users/srevilak/demo2 Reading symbols for shared libraries ++. done Breakpoint 1, main () at demo2.c:12 (gdb) b add_one^M Breakpoint 2 at 0x1f88: file demo2.c, line 4. (gdb) (gdb) c Continuing. Breakpoint 2, add_one (x=0xbffff16c) at demo2.c:4 (gdb) c Continuing. val=3 Program exited normally. (gdb) --------------------------------- HOW THIS DIFFERS FROM EXPECTED BEHAVIOR --------------------------------------- * I did not expect to see ^M appended to each symbol name in the *completions* buffer (step 6). * I did not expect to see ^M appended to the completed symbol name (step 7). * I did not expect to see the extra (gdb) prompt in step 8. NOTES: ----- For this report, gcc is $ gcc --version i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. gdb is $ gdb --version GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-apple-darwin". The operating system is Mac OS X 10.5.8 $ uname -a Darwin oatmeal.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 The same behavior occurs with GNU Emacs 23.1.90.1 (powerpc-apple-darwin8.11.0, NS apple-appkit-824.48) on Mac OS X 10.4.11 * * * If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /Applications/Emacs.app/Contents/Resources/etc/DEBUG. In GNU Emacs 23.1.90.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-12-09 on oatmeal.ma.runwaynine.com Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-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 global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC x r e p o r t - e m TAB RET Recent messages: ("/Applications/Emacs.app/Contents/MacOS/Emacs") For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils warnings emacsbug sendmail regexp-opt tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) --Yylu36WmvOXNoKYn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (Darwin) iEYEARECAAYFAkslDJoACgkQX7YJI4BuyDS41ACgl9gE7dNf2x7g1koju59Q9FKX +ZgAn0rpRtstwsLlzqcTBFNEx2lJITTQ =sO8K -----END PGP SIGNATURE----- --Yylu36WmvOXNoKYn-- From unknown Wed Jun 18 00:30:22 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#5208: 23.1.90; M-x gud-gdb: Tab Completion Produces Spurious Ctrl-M Characters Reply-To: nickrob@snap.net.nz (Nick Roberts), 5208@debbugs.gnu.org Resent-From: nickrob@snap.net.nz (Nick Roberts) Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 14 Dec 2009 06:35:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 5208 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12607722601798 (code B ref -1); Mon, 14 Dec 2009 06:35:06 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 14 Dec 2009 06:31:00 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.9 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBE6UwkX001795 for ; Sun, 13 Dec 2009 22:31:00 -0800 Received: from mx10.gnu.org ([199.232.76.166]:50139) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NK4SQ-0006P0-E8 for emacs-pretest-bug@gnu.org; Mon, 14 Dec 2009 01:30:58 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NK4SO-0004c1-3A for emacs-pretest-bug@gnu.org; Mon, 14 Dec 2009 01:30:57 -0500 Received: from mail10.snap.net.nz ([202.37.101.41]:56191 helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NK4SN-0004as-Jn for emacs-pretest-bug@gnu.org; Mon, 14 Dec 2009 01:30:55 -0500 Received: from totara (254.25.255.123.static.snap.net.nz [123.255.25.254]) by viper.snap.net.nz (Postfix) with ESMTP id 27DD63DA038; Mon, 14 Dec 2009 19:30:47 +1300 (NZDT) Received: by totara (Postfix, from userid 1000) id 31F00C167; Mon, 14 Dec 2009 19:30:46 +1300 (NZDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19237.56214.170321.762264@totara.tehura.co.nz> Date: Mon, 14 Dec 2009 19:30:46 +1300 To: Steve Revilak , 5208-done@debbugs.gnu.org Cc: emacs-pretest-bug@gnu.org In-Reply-To: <20091213154738.GB376@srevilak.net> References: <20091213154738.GB376@srevilak.net> X-Mailer: VM 7.19 under Emacs 22.2.1 From: nickrob@snap.net.nz (Nick Roberts) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 > gdb is > > $ gdb --version > GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007) > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-apple-darwin". > > The operating system is Mac OS X 10.5.8 I think the spurious Ctrl-M characters appeared with Leopard and weren't present in Tiger but, in any case Apple GDB has it's own behaviours tailored for their Xcode application. For best results, and no ^M characters, download the latest (7.0) FSF gdb (http://sourceware.org/gdb/download/) or checkout from the CVS repository (http://sourceware.org/gdb/current/) which both build on Darwin. I have closed this report since FSF gdb fixes this problem and support of Apple gdb probably isn't an FSF priority. -- Nick http://users.snap.net.nz/~nickrob From unknown Wed Jun 18 00:30:22 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Steve Revilak Subject: bug#5208 closed by nickrob@snap.net.nz (Nick Roberts) (bug#5208: 23.1.90; M-x gud-gdb: Tab Completion Produces Spurious Ctrl-M Characters) Message-ID: References: <19237.56214.170321.762264@totara.tehura.co.nz> <20091213154738.GB376@srevilak.net> X-Emacs-PR-Message: they-closed 5208 X-Emacs-PR-Package: emacs Reply-To: 5208@debbugs.gnu.org Date: Mon, 14 Dec 2009 06:35:11 +0000 Content-Type: multipart/mixed; boundary="----------=_1260772512-2025-1" This is a multi-part message in MIME format... ------------=_1260772512-2025-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs package: #5208: 23.1.90; M-x gud-gdb: Tab Completion Produces Spurious Ctrl-M Charac= ters It has been closed by nickrob@snap.net.nz (Nick Roberts). Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact nickrob@snap.net.nz (N= ick Roberts) by replying to this email. --=20 5208: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D5208 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1260772512-2025-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 5208-done) by emacsbugs.donarmstrong.com; 14 Dec 2009 06:30:54 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.9 required=4.0 tests=AWL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from viper.snap.net.nz (mail10.snap.net.nz [202.37.101.41]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBE6Uq7P001783 for <5208-done@emacsbugs.donarmstrong.com>; Sun, 13 Dec 2009 22:30:54 -0800 Received: from totara (254.25.255.123.static.snap.net.nz [123.255.25.254]) by viper.snap.net.nz (Postfix) with ESMTP id 27DD63DA038; Mon, 14 Dec 2009 19:30:47 +1300 (NZDT) Received: by totara (Postfix, from userid 1000) id 31F00C167; Mon, 14 Dec 2009 19:30:46 +1300 (NZDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19237.56214.170321.762264@totara.tehura.co.nz> Date: Mon, 14 Dec 2009 19:30:46 +1300 To: Steve Revilak , 5208-done@debbugs.gnu.org Cc: emacs-pretest-bug@gnu.org Subject: bug#5208: 23.1.90; M-x gud-gdb: Tab Completion Produces Spurious Ctrl-M Characters In-Reply-To: <20091213154738.GB376@srevilak.net> References: <20091213154738.GB376@srevilak.net> X-Mailer: VM 7.19 under Emacs 22.2.1 From: nickrob@snap.net.nz (Nick Roberts) > gdb is > > $ gdb --version > GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007) > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-apple-darwin". > > The operating system is Mac OS X 10.5.8 I think the spurious Ctrl-M characters appeared with Leopard and weren't present in Tiger but, in any case Apple GDB has it's own behaviours tailored for their Xcode application. For best results, and no ^M characters, download the latest (7.0) FSF gdb (http://sourceware.org/gdb/download/) or checkout from the CVS repository (http://sourceware.org/gdb/current/) which both build on Darwin. I have closed this report since FSF gdb fixes this problem and support of Apple gdb probably isn't an FSF priority. -- Nick http://users.snap.net.nz/~nickrob ------------=_1260772512-2025-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 13 Dec 2009 15:47:58 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=AWL,FOURLA,IMPRONONCABLE_1, IMPRONONCABLE_2,MURPHY_WRONG_WORD2,PGPSIGNATURE autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBDFlu6U007671 for ; Sun, 13 Dec 2009 07:47:58 -0800 Received: from mx10.gnu.org ([199.232.76.166]:54376) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NJqfs-0007Qb-9h for emacs-pretest-bug@gnu.org; Sun, 13 Dec 2009 10:47:56 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NJqfm-00069u-BY for emacs-pretest-bug@gnu.org; Sun, 13 Dec 2009 10:47:55 -0500 Received: from mail1.sea5.speakeasy.net ([69.17.117.3]:54548) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NJqfl-00069Y-O6 for emacs-pretest-bug@gnu.org; Sun, 13 Dec 2009 10:47:50 -0500 Received: (qmail 17540 invoked from network); 13 Dec 2009 15:47:46 -0000 Received: from pool-96-233-67-219.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[96.233.67.219]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 13 Dec 2009 15:47:46 -0000 Date: Sun, 13 Dec 2009 10:47:38 -0500 From: Steve Revilak To: emacs-pretest-bug@gnu.org Subject: 23.1.90; M-x gud-gdb: Tab Completion Produces Spurious Ctrl-M Characters Message-ID: <20091213154738.GB376@srevilak.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Yylu36WmvOXNoKYn" Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) --Yylu36WmvOXNoKYn Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': * * * In Emacs 23.1.90.1, tab completion in M-x gud-gdb produces spurious control-M characters; it almost appears as if Ctrl-M is being appended to each symbol name offered for completion. Below, I will give steps to reproduce this behavior, and the results that I observe when following these steps. For this example, any time that you see "^M" (consisting of two characters -- "^" and "M"), please interpret this as the visual representation of the single character Ctrl-M (0x0d). First we will need a C program to debug. I will use the following program: ---------- begin demo2.c -------------- #include static void add_one(int * x) { *x += 1; } static void add_two (int * x) { *x += 2; } int main(void) { int val = 0; add_one(&val); add_two(&val); printf("val=%d\n", val); return 0; } ---------- end demo2.c -------------- STEPS TO REPRODUCE ------------------ (1) Compile demo2.c. gcc -g -o demo2 demo2.c (2) start emacs. emacs -Q -nw demo2.c (3) start the debugger M-x gud-gdb RET Emacs offers the following: "Run gud-gdb (like this): gdb --fullname demo2" Press RETURN to accept the gdb command line. (4) Emacs starts the debugger in buffer "*gud-demo2*", and displays the "(gdb)" prompt. At the gdb prompt enter the commands - b main RETURN - run RETURN (5) Emacs begins to run demo2 under gdb, and breaks in the first line of main. (6) I'd like to set a breakpoint in function "add_one". At the (gdb) prompt in the *gud-demo* buffer, I type "b add TAB". After I press TAB, emacs displays a *Completions* buffer with the following: --------------------------------- In this buffer, type RET to select the completion near point. Possible completions are: add_fdes^M add_one^M add_profil^M add_two^M addcmd^M addr2ascii^M --------------------------------- Note that every symbol is suffixed with "^M" (7) At the (gdb) prompt in the "*gud-demo*" buffer, I type the characters "_o", so that the current (gdb) prompt line contains "b add_o". I press TAB to complete the function name. *gud-demo* completes the function name, and displays --------------------------------- (gdb) b add_one^M --------------------------------- Note that a "^M" was appended to the completed symbol name. (8) At the (gdb) prompt, I type RETURN to create the breakpoint. Emacs responds with --------------------------------- Breakpoint 2 at 0x1f88: file demo2.c, line 4. (gdb) (gdb) --------------------------------- Note that *gud-demo* displays two (gdb) prompts after I press RETURN. (9) At the (gdb) prompt, I type "c RETURN" to continue running demo2. (10) After reaching the breakpoint in add_one, I type "c RETURN" to continue again. demo2 continues executing and exits. After demo2 exits, the *gud-demo2* buffer contains the following contents: --------------------------------- Current directory is ~/ GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-apple-darwin"...Reading symbols for shared libraries ... done (gdb) b main Breakpoint 1 at 0x1fb9: file demo2.c, line 12. (gdb) run Starting program: /Users/srevilak/demo2 Reading symbols for shared libraries ++. done Breakpoint 1, main () at demo2.c:12 (gdb) b add_one^M Breakpoint 2 at 0x1f88: file demo2.c, line 4. (gdb) (gdb) c Continuing. Breakpoint 2, add_one (x=0xbffff16c) at demo2.c:4 (gdb) c Continuing. val=3 Program exited normally. (gdb) --------------------------------- HOW THIS DIFFERS FROM EXPECTED BEHAVIOR --------------------------------------- * I did not expect to see ^M appended to each symbol name in the *completions* buffer (step 6). * I did not expect to see ^M appended to the completed symbol name (step 7). * I did not expect to see the extra (gdb) prompt in step 8. NOTES: ----- For this report, gcc is $ gcc --version i686-apple-darwin9-gcc-4.0.1 (GCC) 4.0.1 (Apple Inc. build 5465) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. gdb is $ gdb --version GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-apple-darwin". The operating system is Mac OS X 10.5.8 $ uname -a Darwin oatmeal.local 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 The same behavior occurs with GNU Emacs 23.1.90.1 (powerpc-apple-darwin8.11.0, NS apple-appkit-824.48) on Mac OS X 10.4.11 * * * If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /Applications/Emacs.app/Contents/Resources/etc/DEBUG. In GNU Emacs 23.1.90.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2009-12-09 on oatmeal.ma.runwaynine.com Windowing system distributor `Apple', version 10.3.949 configured using `configure '--with-ns'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: C value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-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 global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC x r e p o r t - e m TAB RET Recent messages: ("/Applications/Emacs.app/Contents/MacOS/Emacs") For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc time-date mm-util mail-prsvr gmm-utils wid-edit mailheader canlock sha1 hex-util hashcash mail-utils warnings emacsbug sendmail regexp-opt tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag 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 loaddefs button minibuffer faces cus-face text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) --Yylu36WmvOXNoKYn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (Darwin) iEYEARECAAYFAkslDJoACgkQX7YJI4BuyDS41ACgl9gE7dNf2x7g1koju59Q9FKX +ZgAn0rpRtstwsLlzqcTBFNEx2lJITTQ =sO8K -----END PGP SIGNATURE----- --Yylu36WmvOXNoKYn-- ------------=_1260772512-2025-1-- From unknown Wed Jun 18 00:30:22 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#5208: 23.1.90; M-x gud-gdb: Tab Completion Produces Spurious Ctrl-M Characters Reply-To: Steve Revilak , 5208@debbugs.gnu.org Resent-From: Steve Revilak Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 14 Dec 2009 14:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 5208 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.126079984922617 (code B ref -1); Mon, 14 Dec 2009 14:20:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 14 Dec 2009 14:10:49 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-6.1 required=4.0 tests=AWL,HAS_BUG_NUMBER, PGPSIGNATURE autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBEEAmxB022614 for ; Mon, 14 Dec 2009 06:10:49 -0800 Received: from mail.gnu.org ([199.232.76.166]:38910 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NKBdP-0002ya-Mp for emacs-pretest-bug@gnu.org; Mon, 14 Dec 2009 09:10:47 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NKBdN-0000OJ-Iz for emacs-pretest-bug@gnu.org; Mon, 14 Dec 2009 09:10:47 -0500 Received: from mail1.sea5.speakeasy.net ([69.17.117.3]:57696) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NKBdN-0000O7-3h for emacs-pretest-bug@gnu.org; Mon, 14 Dec 2009 09:10:45 -0500 Received: (qmail 8350 invoked from network); 14 Dec 2009 14:10:43 -0000 Received: from pool-96-233-67-219.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[96.233.67.219]) (envelope-sender ) by mail1.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 14 Dec 2009 14:10:42 -0000 Date: Mon, 14 Dec 2009 09:10:34 -0500 From: Steve Revilak To: Nick Roberts Cc: 5208@debbugs.gnu.org, emacs-pretest-bug@gnu.org Message-ID: <20091214141034.GA643@srevilak.net> References: <20091213154738.GB376@srevilak.net> <19237.56214.170321.762264@totara.tehura.co.nz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline In-Reply-To: <19237.56214.170321.762264@totara.tehura.co.nz> User-Agent: Mutt/1.5.19 (2009-01-05) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline >From: Nick Roberts >I think the spurious Ctrl-M characters appeared with Leopard and weren't >present in Tiger but, in any case Apple GDB has it's own behaviours tailored >for their Xcode application. For best results, and no ^M characters, download >the latest (7.0) FSF gdb (http://sourceware.org/gdb/download/) or checkout >from the CVS repository (http://sourceware.org/gdb/current/) which both build on >Darwin. Nick, Thanks for responding, but I object to closing 5208 for two reasons: * With Emacs 23.1.90.1, the ^M characters appear under both Mac OS 10.4.11 and Mac OS 10.5.8. * With Emacs 22.3.1, the ^M characters do not appear in Mac OS X 10.4, nor do they appear in Mac OS X 10.5. To put it another way: -------------------------------------- | | Emacs 22 | Emacs 23 | |----------------|----------|----------| | Mac OS 10.4.11 | No ^M | Yes ^M | | Mac OS 10.5.8 | No ^M | Yes ^M | -------------------------------------- The ^M issue is correlated with the version of Emacs; not the version of underlying operating system, and not the gdb binary supplied by the underlying operating system. I understand that support for an FSF gdb would be more of a priority than support for an Apple gdb. However, since M-x gud-gdb worked correctly on Mac OS X with Emacs 22, I feel that it should also work correctly on Mac OS X with Emacs 23. Steve --FL5UXtIhxfXey3p5 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (Darwin) iEYEARECAAYFAksmR1oACgkQX7YJI4BuyDR2QgCg4c32eVjdtiBb6u8XbuKcJVHv xnUAoMXLif8JS4f3BOcDxbi2Rlc2YqpY =M9UE -----END PGP SIGNATURE----- --FL5UXtIhxfXey3p5-- From unknown Wed Jun 18 00:30:22 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#5208: 23.1.90; M-x gud-gdb: Tab Completion Produces Spurious Ctrl-M Characters Reply-To: nickrob@snap.net.nz (Nick Roberts), 5208@debbugs.gnu.org Resent-From: nickrob@snap.net.nz (Nick Roberts) Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 15 Dec 2009 06:45:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 5208 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.126085903828947 (code B ref -1); Tue, 15 Dec 2009 06:45:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 15 Dec 2009 06:37:18 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.8 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBF6bG6E028944 for ; Mon, 14 Dec 2009 22:37:17 -0800 Received: from mail.gnu.org ([199.232.76.166]:46757 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NKR24-0000iM-8j for emacs-pretest-bug@gnu.org; Tue, 15 Dec 2009 01:37:16 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NKR22-0001Yg-2Y for emacs-pretest-bug@gnu.org; Tue, 15 Dec 2009 01:37:15 -0500 Received: from mail10.snap.net.nz ([202.37.101.41]:53258 helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NKR21-0001Xx-Dn for emacs-pretest-bug@gnu.org; Tue, 15 Dec 2009 01:37:13 -0500 Received: from totara (228.31.255.123.dynamic.snap.net.nz [123.255.31.228]) by viper.snap.net.nz (Postfix) with ESMTP id 325803DA00A; Tue, 15 Dec 2009 19:37:06 +1300 (NZDT) Received: by totara (Postfix, from userid 1000) id 3B1CAC167; Tue, 15 Dec 2009 19:37:05 +1300 (NZDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19239.11918.354638.579486@totara.tehura.co.nz> Date: Tue, 15 Dec 2009 19:37:02 +1300 To: Steve Revilak Cc: emacs-pretest-bug@gnu.org In-Reply-To: <20091214141034.GA643@srevilak.net> References: <20091213154738.GB376@srevilak.net> <19237.56214.170321.762264@totara.tehura.co.nz> <20091214141034.GA643@srevilak.net> X-Mailer: VM 7.19 under Emacs 22.2.1 From: nickrob@snap.net.nz (Nick Roberts) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 > However, since M-x gud-gdb worked > correctly on Mac OS X with Emacs 22, I feel that it should also work > correctly on Mac OS X with Emacs 23. It does work correctly with FSF gdb. This problem has been reported several times before but no-one has provided a patch. I no longer have access to a Mac and probably wouldn't spend any more time on it anyway. That it doesn't work with Apple GDB I don't see as a bug, though I'm not an FSF spokesperson. Of course, if you or someone else posts a fix, I will be happy to apply it. -- Nick http://users.snap.net.nz/~nickrob From unknown Wed Jun 18 00:30:22 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#5208: 23.1.90; M-x gud-gdb: Tab Completion Produces Spurious Ctrl-M Characters Reply-To: Steve Revilak , 5208@debbugs.gnu.org Resent-From: Steve Revilak Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 16 Dec 2009 03:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 5208 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.126093199028513 (code B ref -1); Wed, 16 Dec 2009 03:00:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 16 Dec 2009 02:53:10 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-6.2 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,PGPSIGNATURE autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBG2r8jm028510 for ; Tue, 15 Dec 2009 18:53:09 -0800 Received: from mail.gnu.org ([199.232.76.166]:33757 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NKk0h-0000hU-LN for emacs-pretest-bug@gnu.org; Tue, 15 Dec 2009 21:53:07 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NKk0g-0002ol-Qo for emacs-pretest-bug@gnu.org; Tue, 15 Dec 2009 21:53:07 -0500 Received: from mail8.sea5.speakeasy.net ([69.17.117.10]:41980) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NKk0g-0002o9-1H for emacs-pretest-bug@gnu.org; Tue, 15 Dec 2009 21:53:06 -0500 Received: (qmail 9449 invoked from network); 16 Dec 2009 02:53:03 -0000 Received: from pool-96-233-67-219.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[96.233.67.219]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 16 Dec 2009 02:53:02 -0000 Date: Tue, 15 Dec 2009 21:52:55 -0500 From: Steve Revilak To: Nick Roberts Cc: emacs-pretest-bug@gnu.org Message-ID: <20091216025254.GA389@srevilak.net> References: <20091213154738.GB376@srevilak.net> <19237.56214.170321.762264@totara.tehura.co.nz> <20091214141034.GA643@srevilak.net> <19239.11918.354638.579486@totara.tehura.co.nz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0F1p//8PRICkK4MW" Content-Disposition: inline In-Reply-To: <19239.11918.354638.579486@totara.tehura.co.nz> User-Agent: Mutt/1.5.19 (2009-01-05) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline >> However, since M-x gud-gdb worked >> correctly on Mac OS X with Emacs 22, I feel that it should also work >> correctly on Mac OS X with Emacs 23. >It does work correctly with FSF gdb. This problem has been reported several >times before but no-one has provided a patch. I no longer have access to a >Mac and probably wouldn't spend any more time on it anyway. > >That it doesn't work with Apple GDB I don't see as a bug, though I'm not an >FSF spokesperson. Of course, if you or someone else posts a fix, I will be >happy to apply it. Nick, Thanks again, and I understand your position. Over the holiday, I'll try to figure out where the ^M's are coming from, and see if I can develop a patch. I've never done serious debugging of Emacs lisp, but I'm sure it will be a good experience for me. I'll also have a look at gdb 7.0 Steve --0F1p//8PRICkK4MW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (Darwin) iEYEARECAAYFAksoS4YACgkQX7YJI4BuyDQNjwCePu9LGNhlvaqcu/06p4ihHLV0 Y60AmQGaA07V2zCfKXoaQJ417BWTPoNq =31SA -----END PGP SIGNATURE----- --0F1p//8PRICkK4MW-- From unknown Wed Jun 18 00:30:22 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#5208: 23.1.90; M-x gud-gdb: Tab Completion Produces Spurious Ctrl-M Characters Reply-To: Dmitry Dzhus , 5208@debbugs.gnu.org Resent-From: Dmitry Dzhus Original-Sender: news Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 16 Dec 2009 12:10:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 5208 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.126096512024267 (code B ref -1); Wed, 16 Dec 2009 12:10:06 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 16 Dec 2009 12:05:20 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.9 required=4.0 tests=AWL,HAS_BUG_NUMBER, MURPHY_DRUGS_REL8,WWWRU autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nBGC5G1w024226 for ; Wed, 16 Dec 2009 04:05:19 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NKsd1-0006q7-DD for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2009 07:05:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NKscv-0006nA-Ow for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2009 07:05:13 -0500 Received: from [199.232.76.173] (port=49846 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NKscv-0006n2-G8 for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2009 07:05:09 -0500 Received: from lo.gmane.org ([80.91.229.12]:51306) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NKscv-00005j-98 for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2009 07:05:09 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NKscs-0002RQ-22 for bug-gnu-emacs@gnu.org; Wed, 16 Dec 2009 13:05:06 +0100 Received: from 95-24-121-21.broadband.corbina.ru ([95.24.121.21]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Dec 2009 13:05:06 +0100 Received: from dima by 95-24-121-21.broadband.corbina.ru with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 16 Dec 2009 13:05:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Dmitry Dzhus Followup-To: gmane.emacs.pretest.bugs Date: Wed, 16 Dec 2009 14:03:31 +0300 Lines: 20 Message-ID: <87y6l3dvuk.fsf@sphinx.net.ru> References: <20091213154738.GB376@srevilak.net> <19237.56214.170321.762264@totara.tehura.co.nz> <20091214141034.GA643@srevilak.net> <19239.11918.354638.579486@totara.tehura.co.nz> <20091216025254.GA389@srevilak.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 95-24-121-21.broadband.corbina.ru User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) Cancel-Lock: sha1:62s0tqbUujA6bYFfc1DHih5WdEY= Sender: news Cc: emacs-pretest-bug@gnu.org X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Steve Revilak wrote: > Nick, > > Thanks again, and I understand your position. Over the holiday, I'll > try to figure out where the ^M's are coming from, and see if I can > develop a patch. I've never done serious debugging of Emacs lisp, but > I'm sure it will be a good experience for me. I'll also have a look > at gdb 7.0 In order to make gud-gdb compatible with Apple's GDB, I assume that perhaps `gud-gdb-fetch-lines-filter` function needs to be changed a little bit. If Apple's GDB simply appends ^M to every line of `complete` command output, then it should be possible to just strip these symbols out. -- Happy Hacking. http://sphinx.net.ru む