* debug_create_symbol_lookup_context() gets a team ID instead of a

debug context now. That's all it needs.
* Added the option "-a" to the profile command line tool. It triggers profiling
  of the whole system. There are still some issues, particularly image related
  ones.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30129 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-04-11 22:59:31 +00:00
parent 2ad2768adc
commit 0f37915687
9 changed files with 481 additions and 118 deletions
+5 -7
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2005-2008, Ingo Weinhold, [email protected].
* Copyright 2005-2009, Ingo Weinhold, [email protected].
* Distributed under the terms of the MIT License.
*/
@@ -18,8 +18,7 @@ using std::nothrow;
struct debug_symbol_lookup_context {
debug_context context;
SymbolLookup *lookup;
SymbolLookup* lookup;
};
struct debug_symbol_iterator : BPrivate::SymbolIterator {
@@ -266,20 +265,19 @@ debug_get_stack_frame(debug_context *context, void *stackFrameAddress,
// debug_create_symbol_lookup_context
status_t
debug_create_symbol_lookup_context(debug_context *debugContext,
debug_create_symbol_lookup_context(team_id team,
debug_symbol_lookup_context **_lookupContext)
{
if (!debugContext || !_lookupContext)
if (team < 0 || !_lookupContext)
return B_BAD_VALUE;
// create the lookup context
debug_symbol_lookup_context *lookupContext
= new(nothrow) debug_symbol_lookup_context;
lookupContext->context = *debugContext;
ObjectDeleter<debug_symbol_lookup_context> contextDeleter(lookupContext);
// create and init symbol lookup
SymbolLookup *lookup = new(nothrow) SymbolLookup(debugContext->team);
SymbolLookup *lookup = new(nothrow) SymbolLookup(team);
if (!lookup)
return B_NO_MEMORY;