Re: "Junk at end of arguments." when setting breakpoint

Eli Zaretskii
2008-06-13T06:42:43Z

> Date: Thu, 12 Jun 2008 17:22:03 -0400
> From: "Dean Tsai" <dctsai.work@gmail.com>
> 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'