diff options
author | Jim Ingham <jingham@apple.com> | 2010-08-30 19:44:40 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2010-08-30 19:44:40 +0000 |
commit | e40e42181fcc0c9742d6fcb654b0e1dee07a2513 (patch) | |
tree | 978294983a64a9dd49370beea737aadf3932f94b /lldb/source/Host/macosx/cfcpp | |
parent | 9026d4b4887e88cbca40cc1de43ad91005b9c769 (diff) | |
download | bcm5719-llvm-e40e42181fcc0c9742d6fcb654b0e1dee07a2513.tar.gz bcm5719-llvm-e40e42181fcc0c9742d6fcb654b0e1dee07a2513.zip |
Added a way to open the current source file & line in an external editor, and you can turn this on with:
lldb -e
llvm-svn: 112502
Diffstat (limited to 'lldb/source/Host/macosx/cfcpp')
-rw-r--r-- | lldb/source/Host/macosx/cfcpp/CFCReleaser.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/source/Host/macosx/cfcpp/CFCReleaser.h b/lldb/source/Host/macosx/cfcpp/CFCReleaser.h index cd35de6d665..2aa13506fc6 100644 --- a/lldb/source/Host/macosx/cfcpp/CFCReleaser.h +++ b/lldb/source/Host/macosx/cfcpp/CFCReleaser.h @@ -96,11 +96,14 @@ public: // assertion fires, check the offending code, or call // reset() prior to using the "ptr_address()" member to make // sure any owned objects has CFRelease called on it. + // I had to add the "enforce_null" bool here because some + // API's require the pointer address even though they don't change it. //---------------------------------------------------------- T* - ptr_address() + ptr_address(bool enforce_null = true) { - assert (_ptr == NULL); + if (enforce_null) + assert (_ptr == NULL); return &_ptr; } |