public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/14503] New: Strange error message when setting a watchpoint on the location of 'this'
@ 2012-08-21 15:46 andre.poenitz at nokia dot com
  0 siblings, 0 replies; only message in thread
From: andre.poenitz at nokia dot com @ 2012-08-21 15:46 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-21 15:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-21 15:46 [Bug breakpoints/14503] New: Strange error message when setting a watchpoint on the location of 'this' andre.poenitz at nokia dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).