From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Patrick M. Rutkowski" Newsgroups: gmane.emacs.help Subject: Re: GDB Not Seeing Sources Date: Wed, 24 Mar 2010 20:08:40 -0400 Message-ID: References: <201003241527.o2OFRX9Z039853@ns.mahan.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1269475758 18656 80.91.229.12 (25 Mar 2010 00:09:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 25 Mar 2010 00:09:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 25 01:09:13 2010 Return-path: Envelope-to: geh-help-gnu-emacs@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 1NuadN-0002Mx-2u for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Mar 2010 01:09:13 +0100 Original-Received: from localhost ([127.0.0.1]:39720 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NuadM-00039B-5b for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Mar 2010 20:09:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nuacv-00038n-OR for help-gnu-emacs@gnu.org; Wed, 24 Mar 2010 20:08:45 -0400 Original-Received: from [140.186.70.92] (port=45293 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nuacu-00038T-FU for help-gnu-emacs@gnu.org; Wed, 24 Mar 2010 20:08:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nuacr-0006ey-UQ for help-gnu-emacs@gnu.org; Wed, 24 Mar 2010 20:08:44 -0400 Original-Received: from mail-ww0-f41.google.com ([74.125.82.41]:46170) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nuacr-0006es-N4 for help-gnu-emacs@gnu.org; Wed, 24 Mar 2010 20:08:41 -0400 Original-Received: by wwa36 with SMTP id 36so57786wwa.0 for ; Wed, 24 Mar 2010 17:08:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=A5UdR3ukhNpXFUSiSaQJt9KPuKfj0Lx+I8JOYEBP0+Y=; b=BFN1BBGjvco5wCWmlrqPreKSacEX9EOguib9HjR0s5r5BKi8BKnS7mRvO3ehsjnuPN JxodQqHJgAJeq8LRhm3Ik+rFfXn9OessZ93TWg4Z3BTiFjlHGQEIDEyLBXxs+Ia5vSwc wromai82hhRw5HCM/gtG2lBbRvSn0N8b3BQtU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ExRoPnavSnxvZ5pxqJxHBCudZp9nQkIAKFSWwz27xupT5vzOutgNkfqGivOS7PvY/z A5Q3OMhjPMloOjN4KsH1A4zQMS+R9KSPN91CUcZ1fZrCDOOt5u+exq8dzFqG399tBcet c6EYqVg2MelJpipOtwpGoG6O5U87flEkJxNoU= Original-Received: by 10.216.171.207 with SMTP id r57mr2112037wel.146.1269475720675; Wed, 24 Mar 2010 17:08:40 -0700 (PDT) In-Reply-To: <201003241527.o2OFRX9Z039853@ns.mahan.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 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:72480 Archived-At: Ah, awesome; that did it :-) I've since learned what exactly annotations are too, interesting. It would be nice if emacs had given a warning message though, I'll bet lots of people run into that problem. Though to make a self-criticism, the --annotate is mentioned in the M-x apropos page for "gdb", I just didn't read it :-) -Patrick On Wed, Mar 24, 2010 at 11:24 AM, Patrick Mahan wrote: >> Hi guys, >> >> I've got an odd problem where a particular usage case of "M-x gdb" >> isn't following the debugger in the source code buffers. >> >> What I did was "M-x gdb", then I ran "attach PID" from within gdb, to >> attach to my already running program. I did a "break poll" to break in >> poll (it's server code), and then I did a "continue". It got to the >> poll, and I did a "finish" to wait for it to get out of the poll. I >> did get out of the poll, and now I'm successfully stopped from within >> gdb, on the first line of code after the poll, but it's not following >> along int the sources! >> >> I can type "list" in gdb to get a source listing, but that interface >> is clunky enough so as to be unusable. That is, after all, why I'm >> trying to use gdb from within emacs! >> >> Is it possible to get it to see sources after an "attach PID"? Or is >> something fundamentally wrong here? >> > > Try running it with "M-x gdb --annotate=3". > > Patrick Mahan > >