This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: "Junk at end of arguments." when setting breakpoint
- From: Michael Snyder <msnyder at specifix dot com>
- To: Dean Tsai <dctsai dot work at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Thu, 12 Jun 2008 13:56:59 -0700
- Subject: Re: "Junk at end of arguments." when setting breakpoint
- References: <38276ca0806121343w5f651869o94109be405e9f7a4@mail.gmail.com>
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?