-
Notifications
You must be signed in to change notification settings - Fork 0
callstack_frame.h
In this header the callstack frame object is defined.
This structure represents a translated callstack frame.
Note
Added in version 1.1.
The name of the binary file this frame originates from.
The relative path of the name of the binary file.
Only available if C++ exclusive functions are enabled while compiling the library, see here for more information.
The name of the function this frame originates from.
The name of the source file this callstack frame lies in.
Can be NULL
if it was not possible to map this frame to a source file.
The relative path of the name of the source file.
Only available if C++ exclusive functions are enables while compiling the library, see here for more information.
Indicates whether the found source file has been modified since it contributed to this callstack frame.
A value of false
indicates either that no modification has happened or that the modification information was
not available.
A value of true
indicates a modification has definitively happened.
Note
Added in version 1.2.
Indicates whether the binary file this frame is in is the CallstackLibrary itself.
A value of false
indicates either that the frame is not in the CallstackLibrary or that the origin is unknown.
A value of true
indicates that the frame is definitively inside the CallstackLibrary.
Note
Added in version 2.0.
The line number in the source file this frame is mapped to.
Only relevant in conjunction with sourceFile
.
The source line column number.
A value of 0
indicates that the value is unknown.
Note
Since version 2.0, the field's type is unsigned long
.
void callstack_frame_create(
struct callstack_frame*
self)
Initializes the given callstack frame.
Note
Added in version 1.1.
struct callstack_frame*
callstack_frame_new(void)
Allocates and initializes a new instance of a callstack frame object.
Note
Added in version 1.1.
struct callstack_frame*
callstack_frame_copy(
struct callstack_frame*
)
Allocates a new callstack frame object and deeply copies the given callstack frame object.
Note
Added in version 1.1.
void callstack_frame_copyHere(
struct callstack_frame*
destination,
const struct callstack_frame*
source)
Copies the given callstack frame object into the given destination.
Note
Added in version 1.1.
char* callstack_frame_getShortestName(
const struct callstack_frame*
self)
Returns the shortest binary file name available in the given callstack frame object.
Note
Added in version 1.1.
const char* callstack_frame_getShortestNameOr(
const struct callstack_frame*
self, const char* fallback)
Returns the shortest binary file name of the given callstack frame object.
If the given callstack frame object does not have a binary file name the given fallback is returned.
Note
Added in version 1.2.
char* callstack_frame_getShortestSourceFile(
const struct callstack_frame*
self)
Returns the shortest source file name available in the given callstack frame object.
Note
Added in version 1.1.
const char* callstack_frame_getShortestSourceFileOr(
const struct callstack_frame*
self, const char* fallback)
Returns the shortest source file name available in the given callstack frame object.
If the given callstack frame object does not have a source file name the given fallback is returned.
Note
Added in version 1.2.
void callstack_frame_destroy(
struct callstack_frame*
self)
Destructs the given callstack frame object.
Note
Added in version 1.1.
void callstack_frame_delete(
struct callstack_frame*
self)
Destructs and de-allocates the given callstack frame object.
Note
Added in version 1.1.
Copyright (C) 2022, 2024 mhahnFr.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".