This is the mail archive of the gdb-prs@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]

[Bug breakpoints/14503] New: Strange error message when setting awatchpoint on the location of 'this'


http://sourceware.org/bugzilla/show_bug.cgi?id=14503

             Bug #: 14503
           Summary: Strange error message when setting a watchpoint on the
                    location of 'this'
           Product: gdb
           Version: 7.5
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned@sourceware.org
        ReportedBy: andre.poenitz@nokia.com
    Classification: Unclassified


I do not really expect setting a watch point on 'this' to be very useful, but
the the error message is strange:

Breakpoint 2, Foo::Foo (this=0xbfffee54, i=0) at
../simple/simple_test_app.cpp:335
335             b = 2 + s + t;
(gdb) watch this
Hardware watchpoint 3: this
(gdb) watch -l this
A syntax error in expression, near `const *) 0xbfffee40'.
(gdb) watch -l this->a
Hardware watchpoint 4: -location this->a
(gdb) watch -l b
Hardware watchpoint 5: -location b

(the second item)

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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