From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: S Boucher Newsgroups: gmane.emacs.help Subject: Re: problems in gud under emacs Date: Tue, 18 Oct 2011 08:13:39 -0700 (PDT) Message-ID: <1318950819.49823.YahooMailNeo@web161605.mail.bf1.yahoo.com> References: Reply-To: S Boucher NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="-613093590-788071475-1318950819=:49823" X-Trace: dough.gmane.org 1318950843 9095 80.91.229.12 (18 Oct 2011 15:14:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 18 Oct 2011 15:14:03 +0000 (UTC) To: Chun Zhang , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 18 17:13:57 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RGBMX-0007pc-QU for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Oct 2011 17:13:54 +0200 Original-Received: from localhost ([::1]:49106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGBMX-0007R2-0B for geh-help-gnu-emacs@m.gmane.org; Tue, 18 Oct 2011 11:13:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60920) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RGBMR-0007Qw-Cj for help-gnu-emacs@gnu.org; Tue, 18 Oct 2011 11:13:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RGBMM-0003aG-Ki for help-gnu-emacs@gnu.org; Tue, 18 Oct 2011 11:13:47 -0400 Original-Received: from nm32-vm6.bullet.mail.bf1.yahoo.com ([72.30.239.142]:48472) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RGBML-0003a6-SY for help-gnu-emacs@gnu.org; Tue, 18 Oct 2011 11:13:42 -0400 Original-Received: from [98.139.212.146] by nm32.bullet.mail.bf1.yahoo.com with NNFMP; 18 Oct 2011 15:13:39 -0000 Original-Received: from [98.139.212.198] by tm3.bullet.mail.bf1.yahoo.com with NNFMP; 18 Oct 2011 15:13:39 -0000 Original-Received: from [127.0.0.1] by omp1007.mail.bf1.yahoo.com with NNFMP; 18 Oct 2011 15:13:39 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 692704.86719.bm@omp1007.mail.bf1.yahoo.com Original-Received: (qmail 67055 invoked by uid 60001); 18 Oct 2011 15:13:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1318950819; bh=dvY+jbUTOGqq8eWuTjEnKunyAboXFF5KFMXJNoeYnWg=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=bejScaYRzy/rk3v+W8igoALc1bLLchAFqlr7LsoV2L/whtRXkAmOPzlbKSsdUe50IVgPG9tVg89++vDcRRys5ueaC7E76Dvp9w8eh67kPuIRKODfAgIteuMq52btg2DiWFgdiBgqT7BwcAS0v1vXYh0lBABNjCdJcKUu19nbNGY= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=GS2874/7pXXElZmz9EjsR1GYPI/mVOz/a5+iQ4d++1IiHB230XFOfcNyvbgxfrnltshdlQhvkMdEGkRmfaTBFWjQHV1q5Cntlmn9PztG6fLW/i8+QdqLKVc0qT6WxEvkHz5aK2HRdW+gbSWiV29FvkL4c24muc86Q7p4E0oeQs8=; X-YMail-OSG: 0uNgiTEVM1nnHzXinvAHal9g3yYFDkM7Ql3uQhdREYUz9_n PpRdUx6WwH2oAQpvI1rOPkLxafnGQOrn0RxxF20c_5Hs_j4wCnsej5Gn6ShB IxY98OWwu4K9XiBTW7n6FQrzj0PhLzQFGS_aMX04zpuAgIusSDPmc0dmihvr lT.66YEdBKNt4uX32iXPuEoHU28diJgkUR2BnBYn59OoVBISkSy2a8mF_lXf yTHtJ8fCj_aNEEGBAkhtX6ncsXXmzoUJta0Wl4alvHvzZfRFaIef8EW4qECa C57E_AcOb0brUq8_pEJS55Evm6A0cSDt6JLj8NWvE0zf_xmMa2Tl6trFkstO n9Gy063ngPW0U8oq6_eZ8T.qQ1oA4UXXWmrRl6duynLC6swgp9MebRfzhZ7I S7aKoPRMIOQ2UNJ_VZrOU15Ipk0O_a3exPsHNmO9c4ahAavmFd8s7.IIbFrJ e Original-Received: from [209.5.112.166] by web161605.mail.bf1.yahoo.com via HTTP; Tue, 18 Oct 2011 08:13:39 PDT X-Mailer: YahooMailWebService/0.8.114.317681 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 72.30.239.142 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82617 Archived-At: ---613093590-788071475-1318950819=:49823 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Try running gdb outside of emacs, and use the --nx gdb command line option.= =0A=0Agdb --nx myprogram=0A=0Aand in emacs:=0A=0Agdb --nx --annotate=3D3 my= program=0A=0Agud (emacs gdb) is not super robust.=A0 It can get confused ab= out the state of gdb when gdb has weird output.=0A=0AYour "Current director= y ...." should really be the first line.=A0 Certainly, there shouldn't be a= nything after (gdb).=A0 So, gud may well be confused.=0A=0A=0A=0A>_________= _______________________=0A>From: Chun Zhang =0A>To= : help-gnu-emacs@gnu.org=0A>Sent: Tuesday, October 18, 2011 7:06:24 AM=0A>S= ubject: problems in gud under emacs=0A>=0A>=0A>Hi all,=0A>I'm running into = problems debugging c++ under emacs. When I start the debugging command:=0A>= M-x gdb --annotate=3D3 myprogram=0A>The gdb shell does not prompt. Instead = it stuck after showing "(gdb) Current directory is ~/programs/small/" as pa= sted below. I can't type any debug command then... However the status bar s= hows no error messages. Does any body know how to fix it? Thank you!=0A>GNU= gdb (Ubuntu/Linaro 7.2-1ubuntu11) 7.2=A0=0A>Copyright (C) 2010 Free Softwa= re Foundation, Inc.=A0=0A>License GPLv3+: GNU GPL version 3 or later=A0http= ://gnu.org/licenses/gpl.html=A0=0A>This is free software: you are free to c= hange and redistribute it.=A0=0A>There is NO WARRANTY, to the extent permit= ted by law. Type "show copying"=A0=0A>and "show warranty" for details.=A0= =0A>This GDB was configured as "x86_64-linux-gnu".=A0=0A>For bug reporting = instructions, please see:=A0=0A>http://www.gnu.org/software/gdb/bugs/...=A0= =0A>Reading symbols from /home/chzhang/programs/small/loop...done.=A0=0A>(g= db) Current directory is ~/programs/small/=A0=0A>=0A>=0A>=0A>=0A>-- =0A>Bes= t Regards,=0A>=0A>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=0A>Chun Zhang=0A>chun.zhang.cz@gmail.com=0A>=0A>=0A> ---613093590-788071475-1318950819=:49823 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Try running gdb outsi= de of emacs, and use the --nx gdb command line option.

gdb --nx mypr= ogram

and in emacs:

gdb --nx --annotate=3D3 myprogram

= gud (emacs gdb) is not super robust.  It can get confused about the st= ate of gdb when gdb has weird output.

Your "Current directory ...." = should really be the first line.  Certainly, there shouldn't be anythi= ng after (gdb).  So, gud may well be confused.


From: Chun Zhang <chun.zhang.cz@gmail.com>
T= o: help-gnu-emacs@gnu.org
Sent: Tuesday, October 18, 2011 7:06:24 AM
Subject: problems in gud under emacs
=

=0A
=0AHi all,
=0AI'm running into problems debugging c++ under emacs. When I start= the debugging command:
=0AM-x gdb --anno= tate=3D3 myprogram
=0AThe gdb shell does = not prompt. Instead it stuck after showing "(gdb) Current directory is ~/pr= ograms/small/" as pasted below. I can't type any debug command then... Howe= ver the status bar shows no error messages. Does any body know how to fix i= t? Thank you!
=0A
=0AGNU gdb (Ubuntu/Linar= o 7.2-1ubuntu11) 7.2 
Copyright (C) 2010 Free Software Foundation, = Inc. 
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html&n= bsp;
=0AThis is free software: you are free to change and redistribute i= t. 
There is NO WARRANTY, to the extent permitted by law. Type "sho= w copying" 
and "show warranty" for details. 
This GDB was = configured as "x86_64-linux-gnu". 
=0AFor bug reporting instruction= s, please see: 
http://www.gnu.org/software/gdb/bugs/... 
=0AReading symbol= s from /home/chzhang/programs/small/loop...done. 
(gdb) Current dir= ectory is ~/programs/small/ 


--
Best Regards,

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Chun Zhang
=0Achun.zhang.cz@gmail.com
=0A


---613093590-788071475-1318950819=:49823--