This is the mail archive of the
mailing list for the GDB project.
Re: watchpoint on variable in function scope
>>>>> "Sterling" == Sterling Augustine <firstname.lastname@example.org> writes:
Sterling> Tom's test case works fine for me if I compile it as a C program.
Sterling> However, it fails if I compile it as a C++ program. (Using gcc 4.4.3.)
Sterling> Looking at the assembly, the C code names the static "i.1591", but the
Sterling> C++ code uses "_ZZ3foovE1i".
Sterling> So this seems to be a C++ name look up failure. Not sure it
Sterling> how should work.
Could you file this in bugzilla?