Disable re-attaching the tracing buffer of a previous session. It still has
some problems. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37359 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
fc7c01a114
commit
b0eaa06c26
@ -454,6 +454,14 @@ TracingMetaData::_CreateMetaDataArea(bool findPrevious, area_id& _area,
|
|||||||
bool
|
bool
|
||||||
TracingMetaData::_InitPreviousTracingData()
|
TracingMetaData::_InitPreviousTracingData()
|
||||||
{
|
{
|
||||||
|
// TODO: ATM re-attaching the previous tracing buffer doesn't work very
|
||||||
|
// well. The entries should checked more thoroughly for validity -- e.g. the
|
||||||
|
// pointers to the entries' vtable pointers could be invalid, which can
|
||||||
|
// make the "traced" command quite unusable. The validity of the entries
|
||||||
|
// could be checked in a safe environment (i.e. with a fault handler) with
|
||||||
|
// typeid() and call of a virtual function.
|
||||||
|
return false;
|
||||||
|
|
||||||
addr_t bufferStart
|
addr_t bufferStart
|
||||||
= (addr_t)fTraceOutputBuffer + kTraceOutputBufferSize;
|
= (addr_t)fTraceOutputBuffer + kTraceOutputBufferSize;
|
||||||
addr_t bufferEnd = bufferStart + MAX_TRACE_SIZE;
|
addr_t bufferEnd = bufferStart + MAX_TRACE_SIZE;
|
||||||
|
Loading…
Reference in New Issue
Block a user