From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: nickrob@snap.net.nz (Nick Roberts) Newsgroups: gmane.emacs.devel Subject: Re: GDB on Mac is (NOT) Broken Date: Tue, 23 Mar 2010 15:38:43 +1300 Message-ID: <19368.10675.928352.125030@totara.tehura.co.nz> References: <19357.53872.672127.600861@totara.tehura.co.nz> <19359.5799.721358.312552@totara.tehura.co.nz> <19365.49601.379093.424303@totara.tehura.co.nz> <19366.56894.138747.370358@totara.tehura.co.nz> <19367.55595.93850.907520@totara.tehura.co.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1269315073 28209 80.91.229.12 (23 Mar 2010 03:31:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Mar 2010 03:31:13 +0000 (UTC) Cc: Stefan Monnier , emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Mar 23 04:31:04 2010 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.69) (envelope-from ) id 1Ntupa-0000Bw-SZ for ged-emacs-devel@m.gmane.org; Tue, 23 Mar 2010 04:31:03 +0100 Original-Received: from localhost ([127.0.0.1]:39361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ntupa-00026y-8H for ged-emacs-devel@m.gmane.org; Mon, 22 Mar 2010 23:31:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NtupC-0001qR-Ib for emacs-devel@gnu.org; Mon, 22 Mar 2010 23:30:38 -0400 Original-Received: from [140.186.70.92] (port=54317 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NtupB-0001pa-3W for emacs-devel@gnu.org; Mon, 22 Mar 2010 23:30:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ntup8-0004Tq-Hk for emacs-devel@gnu.org; Mon, 22 Mar 2010 23:30:36 -0400 Original-Received: from mx.southnet.co.nz ([202.37.101.20]:33204 helo=viper.snap.net.nz) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ntup7-0004TJ-Uh for emacs-devel@gnu.org; Mon, 22 Mar 2010 23:30:34 -0400 Original-Received: from totara (197.27.255.123.static.snap.net.nz [123.255.27.197]) by viper.snap.net.nz (Postfix) with ESMTP id 98C883DA2DB; Tue, 23 Mar 2010 15:38:45 +1300 (NZDT) Original-Received: by totara (Postfix, from userid 1000) id ECE82C173; Tue, 23 Mar 2010 15:38:43 +1300 (NZDT) In-Reply-To: X-Mailer: VM 7.19 under Emacs 22.2.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 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:122526 Archived-At: > > How do you know that sending a command like "server show version" > > will never have any effect at all neither on the GDB process nor on > > the Emacs state nor on the synchronization between the two? The > > things we've seen in the Emacs<->GDB interaction make me very > > suspicious of such things. That sounds more like paranoia than reason. Unsurprisingly all "show version" does is output the version of GDB: nickrob@totara:~$ gdb -q (gdb) show version GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". (gdb) That's the same text that is output if "-q" isn't specified. Unlike other commands, it doesn't change the state of the executable or the debugger. Parsing the output is no different in it's nature to the the many other lisp functions that already do this except that some of those _do_ change the state of the executable or the debugger > How about surrounding it with (if (eq system-type 'darwin) ...)? I don't think that should really be necessary. > BTW, personally I don't care that much whether the change is included > in Emacs 23.2 or deferred to the subsequent versions (I'll include it > into the next version of the Mac port in any case). Likewise it's not that important to me either: I don't currently use a Mac. I'm just trying to react to the bug reports that have been made. -- Nick http://users.snap.net.nz/~nickrob