Bug 14503 - Strange error message when setting a watchpoint on the location of 'this'
Summary: Strange error message when setting a watchpoint on the location of 'this'
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: breakpoints (show other bugs)
Version: 7.5
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-21 15:46 UTC by Andre'
Modified: 2012-08-21 15:46 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andre' 2012-08-21 15:46:20 UTC
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)