From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12938 invoked by alias); 12 Jun 2008 21:07:02 -0000 Received: (qmail 12882 invoked by uid 22791); 12 Jun 2008 21:07:01 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Jun 2008 21:06:44 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id BA6073C702; Thu, 12 Jun 2008 14:06:42 -0700 (PDT) Subject: Re: "Junk at end of arguments." when setting breakpoint From: Michael Snyder To: Dean Tsai Cc: gdb@sourceware.org In-Reply-To: <38276ca0806121404u78184960o53a786548b885743@mail.gmail.com> References: <38276ca0806121343w5f651869o94109be405e9f7a4@mail.gmail.com> <1213304219.3601.709.camel@localhost.localdomain> <38276ca0806121404u78184960o53a786548b885743@mail.gmail.com> Content-Type: text/plain Date: Thu, 12 Jun 2008 21:07:00 -0000 Message-Id: <1213304802.3601.720.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-7.fc7) Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-06/txt/msg00131.txt.bz2 On Thu, 2008-06-12 at 17:04 -0400, Dean Tsai wrote: > Hi Michael, > > I am not sure exactly what you meant, but this is what I did to create > the problem (see below). 42init.c actually resides in ./Source/ but I > don't think it matter, does it? > Dean, Just a guess here, but could you try renaming 42init.c to some name that doesn't begin with a numeral? Wondering if gdb is trying to parse it as a number... If that does turn out to make a difference, you've got a genuine bug and we'll undertake to fix it. ;-) > LM220008151:42_SDP_tmp dtsai$ gdb 42 > > 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 42init.c:14 > Junk at end of arguments. > > (gdb) pwd > Working directory /Users/dtsai/work/42_SDP_tmp. > > (gdb)