Version: 4.0 (using KDE 4.4.2)
Compiler: 4.4.3 20100108
Installed from: Debian testing/unstable Packages
If you add an incorrect watch in the debugger, it will have no value. It confuses users.
Correct behavior: show an error message about bad watch.
At least: "error: bad expression". Smth more informative will be better.
I have to wonder wether maybe the problem is with gdb not telling us the watch is invalid.
I'll try to obtain some extra information about the issue.
Git commit b38a89dbac2cb790992a5d0574f528b680acc73d by Niko Sams.
Committed on 15/01/2012 at 18:04.
Pushed by nsams into branch '4.3'.
show error in variables view when gdb returns an error
don't use the returned msg from gdb as it has no real value
and refers to implementation details
("-var-create: unable to create variable object")
M +5 -5 debuggers/gdb/gdbvariable.cpp