This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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!

-Dean





On Thu, Jun 12, 2008 at 5:06 PM, Michael Snyder <msnyder@specifix.com> wrote:
> 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)
>
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]