This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: basic gdb usage question
Matt Funk wrote:
thanks for the reply first of all,
well, with respect to the local scope this is what i thought i tried. In
particular this is what i did:
break myfile_1.cpp:700 if (myfile_1.cpp:mylocalvar_1==1 &&
myfile_2.cpp:myothervar==2)
but gdb gave me:
"Junk at end of arguments."
So i figure something is wrong with my syntax.
Yep. The expression is a simple C expression, evaluated
in the scope where the breakpoint is placed. Leave off
the myfile_1.cpp and myfile_2.cpp and the colons.
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077