diff options
| author | Todd Fiala <todd.fiala@gmail.com> | 2014-09-12 22:51:49 +0000 |
|---|---|---|
| committer | Todd Fiala <todd.fiala@gmail.com> | 2014-09-12 22:51:49 +0000 |
| commit | 7206c6d11fa4cb5fd44aa680106cb37ce85d9e3b (patch) | |
| tree | 50ad47af318c189b3652bfb0649fd43216e6193e /lldb/source/Host/common/NativeThreadProtocol.h | |
| parent | 8a0c9e624764b705791b26ed98f66034b9896cef (diff) | |
| download | bcm5719-llvm-7206c6d11fa4cb5fd44aa680106cb37ce85d9e3b.tar.gz bcm5719-llvm-7206c6d11fa4cb5fd44aa680106cb37ce85d9e3b.zip | |
llgs: fix thread names broken by recent native thread changes.
* Fixes the local stack variable return pointer usage in NativeThreadLinux::GetName().
* Changes NativeThreadProtocol::GetName() to return a std::string.
* Adds a unit test to verify thread names don't regress in the future. Currently only run on Linux since I know default thread names there.
llvm-svn: 217717
Diffstat (limited to 'lldb/source/Host/common/NativeThreadProtocol.h')
| -rw-r--r-- | lldb/source/Host/common/NativeThreadProtocol.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Host/common/NativeThreadProtocol.h b/lldb/source/Host/common/NativeThreadProtocol.h index 9b404be500b..15ecffe8b82 100644 --- a/lldb/source/Host/common/NativeThreadProtocol.h +++ b/lldb/source/Host/common/NativeThreadProtocol.h @@ -31,7 +31,7 @@ namespace lldb_private { } - virtual const char * + virtual std::string GetName() = 0; virtual lldb::StateType |

