From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22686 invoked by alias); 13 Jun 2008 13:01:59 -0000 Received: (qmail 22677 invoked by uid 22791); 13 Jun 2008 13:01:58 -0000 X-Spam-Check-By: sourceware.org Received: from wf-out-1314.google.com (HELO wf-out-1314.google.com) (209.85.200.168) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 13 Jun 2008 13:01:41 +0000 Received: by wf-out-1314.google.com with SMTP id 28so4208480wfc.24 for ; Fri, 13 Jun 2008 06:01:39 -0700 (PDT) Received: by 10.142.48.14 with SMTP id v14mr1067599wfv.14.1213362099287; Fri, 13 Jun 2008 06:01:39 -0700 (PDT) Received: by 10.143.45.15 with HTTP; Fri, 13 Jun 2008 06:01:39 -0700 (PDT) Message-ID: <38276ca0806130601t7afafb47tb32e6746f4423a19@mail.gmail.com> Date: Fri, 13 Jun 2008 13:01:00 -0000 From: "Dean Tsai" To: "Eli Zaretskii" Subject: Re: "Junk at end of arguments." when setting breakpoint Cc: msnyder@specifix.com, gdb@sourceware.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <38276ca0806121343w5f651869o94109be405e9f7a4@mail.gmail.com> <1213304219.3601.709.camel@localhost.localdomain> <38276ca0806121404u78184960o53a786548b885743@mail.gmail.com> <1213304802.3601.720.camel@localhost.localdomain> <38276ca0806121422i2a538c0v64634c47016d2dda@mail.gmail.com> 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/msg00135.txt.bz2 Hi Eli and others, No, quotation marks don't help either. I dont know what it is telling me that the file cannot be found?! Here are a series of cases I tried. Notice 1) I have changed 42init.c to FTinit.c and 2) b filename:functionname works so I know the file exist in my program... please help :( I have a similar post on mac xcode mailling list. I will share any findings there. Thanks! -Dean 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 FTinit.c:InitSim Breakpoint 1 at 0x10b90: file FTinit.c, line 19. (gdb) b FTinit.c:19 Junk at end of arguments. (gdb) b 'FTinit.c:19' Function "19'" not defined in file FTinit.c. Make breakpoint pending on future shared library load? (y or [n]) (gdb) b "FTinit.c:19" Junk at end of arguments. (gdb) b '"FTinit.c":19' No source file named "FTinit.c". Make breakpoint pending on future shared library load? (y or [n]) (gdb) b "'FTinit.c':19" No source file named 'FTinit.c'. Make breakpoint pending on future shared library load? (y or [n]) (gdb) On Fri, Jun 13, 2008 at 2:40 AM, Eli Zaretskii wrote: >> Date: Thu, 12 Jun 2008 17:22:03 -0400 >> From: "Dean Tsai" >> Cc: gdb@sourceware.org >> >> Unfortunately Michael, changing the leading filename to string didn't >> help. I have changed 42init.c to tmp42init.c, changed my Makefile, >> make clean, make...etc. The same problem persists. >> >> Would the following offer you additional insights? b >> filename:functionname works!! >> >> (gdb) b 42init.c:InitSim >> Breakpoint 1 at 0x10b90: file 42init.c, line 19. >> (gdb) b 42init.c:19 >> Junk at end of arguments. >> (gdb) >> >> Any other ideas?! Thanks again! > > Does the below work as well? > > (gdb) b '42init.c:19' >