mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-23 09:43:06 +00:00
46343ae08d
In preparation for adding a "real", internal-only struct drgn_stack_frame, replace the existing struct drgn_stack_frame with explicit trace/frame arguments. Signed-off-by: Omar Sandoval <osandov@osandov.com>
41 lines
646 B
C
41 lines
646 B
C
// Copyright (c) Facebook, Inc. and its affiliates.
|
|
// SPDX-License-Identifier: GPL-3.0+
|
|
|
|
/**
|
|
* @file
|
|
*
|
|
* Stack trace internals
|
|
*
|
|
* See @ref StackTraceInternals.
|
|
*/
|
|
|
|
#ifndef DRGN_STACK_TRACE_H
|
|
#define DRGN_STACK_TRACE_H
|
|
|
|
/**
|
|
* @ingroup Internals
|
|
*
|
|
* @defgroup StackTraceInternals Stack traces
|
|
*
|
|
* Stack trace internals.
|
|
*
|
|
* This provides the internal data structures used for stack traces.
|
|
*
|
|
* @{
|
|
*/
|
|
|
|
struct drgn_stack_trace {
|
|
struct drgn_program *prog;
|
|
union {
|
|
Dwfl_Thread *thread;
|
|
/* Used during creation. */
|
|
size_t capacity;
|
|
};
|
|
size_t num_frames;
|
|
Dwfl_Frame *frames[];
|
|
};
|
|
|
|
/** @} */
|
|
|
|
#endif /* DRGN_STACK_TRACE_H */
|