diff options
author | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2006-10-23 20:25:42 +0000 |
---|---|---|
committer | mmentovai <mmentovai@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2006-10-23 20:25:42 +0000 |
commit | 2466d8e993a800a17e00deda2f3a27e0505140e1 (patch) | |
tree | c97ac5a3782727a6afd69da81649f0ba5fa863ac /src/processor/minidump_stackwalk.cc | |
parent | Make stack_frame_info vector hold linked_ptrs instead of objects; (diff) | |
download | breakpad-2466d8e993a800a17e00deda2f3a27e0505140e1.tar.xz |
Replace auto_ptr with scoped_ptr (#56). r=bryner
http://groups.google.com/group/airbag-dev/browse_thread/thread/54c66451ed8e2835
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@46 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/processor/minidump_stackwalk.cc')
-rw-r--r-- | src/processor/minidump_stackwalk.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/processor/minidump_stackwalk.cc b/src/processor/minidump_stackwalk.cc index cd2cbe3d..1bcf2a66 100644 --- a/src/processor/minidump_stackwalk.cc +++ b/src/processor/minidump_stackwalk.cc @@ -35,16 +35,15 @@ #include <stdlib.h> #include <stdio.h> -#include <memory> #include <string> #include "google/call_stack.h" #include "google/stack_frame.h" #include "processor/minidump.h" +#include "processor/scoped_ptr.h" #include "processor/stackwalker_x86.h" -using std::auto_ptr; using std::string; using google_airbag::CallStack; using google_airbag::MemoryRegion; @@ -54,6 +53,7 @@ using google_airbag::MinidumpException; using google_airbag::MinidumpModuleList; using google_airbag::MinidumpThread; using google_airbag::MinidumpThreadList; +using google_airbag::scoped_ptr; using google_airbag::StackFrame; using google_airbag::Stackwalker; @@ -107,14 +107,14 @@ int main(int argc, char **argv) { exit(1); } - auto_ptr<Stackwalker> stackwalker( + scoped_ptr<Stackwalker> stackwalker( Stackwalker::StackwalkerForCPU(context, stack_memory, modules, NULL)); if (!stackwalker.get()) { fprintf(stderr, "Stackwalker::StackwalkerForCPU failed\n"); exit(1); } - auto_ptr<CallStack> stack(stackwalker->Walk()); + scoped_ptr<CallStack> stack(stackwalker->Walk()); unsigned int index; for (index = 0; index < stack->frames()->size(); ++index) { |