From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5701 invoked by alias); 12 Jun 2008 20:57:19 -0000 Received: (qmail 5688 invoked by uid 22791); 12 Jun 2008 20:57:18 -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 20:57:01 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id BF4673C55E; Thu, 12 Jun 2008 13:56:59 -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: <38276ca0806121343w5f651869o94109be405e9f7a4@mail.gmail.com> References: <38276ca0806121343w5f651869o94109be405e9f7a4@mail.gmail.com> Content-Type: text/plain Date: Thu, 12 Jun 2008 20:57:00 -0000 Message-Id: <1213304219.3601.709.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/msg00129.txt.bz2 On Thu, 2008-06-12 at 16:43 -0400, Dean Tsai wrote: > Got a question about using gdb. It is probably something really > straightforward so all you experts please help~ > > When I issue a breakpoint with "b filename:linenumber", I got the > "Junk at end of arguments." error. What does that mean? And what may > have caused it? I have been using gdb for the last few months on a > linux machine, and I didn't have this problem. But I couldn't get it > to work on my new machine, MacBookPro 10.5 Leopard, running GNU gdb > 6.3.50-20050815 (Apple version gdb-768). It probably means that gdb mis-parsed the "filename:linenumber" argument. Can you show us specifically what that was?