hanchenye-llvm-project/lldb/source
Sean Callanan 8bdcd52251 Fixed a bug where const this would cause parser errors about $__lldb_expr.
In templated const functions, trying to run an expression would produce the
error

error: out-of-line definition of '$__lldb_expr' does not match any declaration in 'foo'
member declaration does not match because it is const qualified
error: 1 error parsing expression

which is no good.  It turned out we don't actually need to worry about "const,"
we just need to be consistent about the declaration of the expression and the
FunctionDecl we inject into the class for "this."

Also added a test case.

<rdar://problem/24985958>

llvm-svn: 267833
2016-04-28 01:36:21 +00:00
..
API Source: fix another -Wunused-variable warning 2016-04-22 23:08:34 +00:00
Breakpoint Breakpoint conditions were making result variables, which they should not do. 2016-04-12 17:17:35 +00:00
Commands Add a --element-count option to the expression command 2016-04-25 00:52:47 +00:00
Core Fixed a bug where const this would cause parser errors about $__lldb_expr. 2016-04-28 01:36:21 +00:00
DataFormatters Add a --element-count option to the expression command 2016-04-25 00:52:47 +00:00
Expression Fixed a bug where const this would cause parser errors about $__lldb_expr. 2016-04-28 01:36:21 +00:00
Host Renamed system plugin directory to address https://bugs.swift.org/browse/SR-1093 2016-04-27 17:49:51 +00:00
Initialization Move DynamicLoader plugins to SystemInitializerFull 2016-03-29 15:00:26 +00:00
Interpreter Add a --element-count option to the expression command 2016-04-25 00:52:47 +00:00
Plugins Fixed a bug where const this would cause parser errors about $__lldb_expr. 2016-04-28 01:36:21 +00:00
Symbol Committing patch from <Michael Woerister <michaelwoerister@posteo.net> 2016-04-27 04:50:51 +00:00
Target When building the list of variables we're going to write "using $_lldb_local_vars" 2016-04-26 00:29:59 +00:00
Utility Work around a linux libc bug causing a crash in TaskPool 2016-04-15 10:49:07 +00:00
CMakeLists.txt Add initial CMake glue for the NetBSD platform 2015-10-24 00:27:04 +00:00
lldb.cpp Add more NetBSD platform glue for lldb 2015-11-07 15:31:54 +00:00