From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: Re: gdb-mode hangs in OS X Date: Fri, 23 Sep 2005 02:33:28 +1200 Message-ID: <17202.49336.477362.638050@kahikatea.snap.net.nz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1127400024 19543 80.91.229.2 (22 Sep 2005 14:40:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 22 Sep 2005 14:40:24 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 22 16:40:22 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EISC1-00057e-Cn for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Sep 2005 16:36:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EISC0-0003ba-NI for geh-help-gnu-emacs@m.gmane.org; Thu, 22 Sep 2005 10:36:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EISBO-0003Py-TG for help-gnu-emacs@gnu.org; Thu, 22 Sep 2005 10:36:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EISBH-0003KG-Kj for help-gnu-emacs@gnu.org; Thu, 22 Sep 2005 10:36:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EISBG-00030r-8t for help-gnu-emacs@gnu.org; Thu, 22 Sep 2005 10:36:10 -0400 Original-Received: from [202.37.101.8] (helo=viper.snap.net.nz) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EIS7u-0006UY-C0 for help-gnu-emacs@gnu.org; Thu, 22 Sep 2005 10:32:42 -0400 Original-Received: from kahikatea.snap.net.nz (p83-tnt1.snap.net.nz [202.124.110.83]) by viper.snap.net.nz (Postfix) with ESMTP id 2E9265F93AC; Fri, 23 Sep 2005 02:32:39 +1200 (NZST) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id D283483F0; Fri, 23 Sep 2005 02:33:31 +1200 (NZST) Original-To: michael.saelee@gmail.com X-Mailer: VM 7.19 under Emacs 22.0.50.2 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:29633 Archived-At: > The variable wasn't recognized when using M-x set-variable, and so I > set it manually with a setq. gdb-enable-debug-log should be autoloaded so you should see it even if you haven't loaded the file. Are you really using 22.0.50? Is it Carbon Emacs from the CVS repository at savannah or a derived version like Aqua Emacs? After you typ M-x gdb does Emacs prompt with: Run gdb (like this): gdb --annotate=3 `yourprog'? > I couldn't find a gdb-debug-log after > doing M-x gdb subsequently, though --- am I doing something wrong? > Sorry for not following instructions and posting to emacs-pretest-bug > just yet; I wanted to make sure I got the output right first. Something doesn't add up but there's no harm in posting to emacs-pretest-bug even if you are doing something wrong. Its a forum for such matters not an IQ contest. > I'm running OS X 10.4.2, and gdb 6.1-20040303 (Apple version gdb-413). I've had reports for 10.2 and 10.3 where, I think, M-x gdb works now. Apple have their own version of GDB so they might have removed the underlying annotations in 10.4 (Tiger?) that are needed for GDB to work in Emacs. You could look at the output of "gdb --annotate=3 yourprog" from the command line ans see if it marks up the output with frames-invalid, pre-prompt, prompt etc. Without access to OS X 10.4 (or even a Mac!), I can't really help you. If you want to dig deeper please report any progress you make to emacs-devel. Nick