Отладчик¶
Debugger code.
On “publish”, when buffer is free, debugger stores arbitrary variables content into, and mark this buffer as filled Buffer content is read asynchronously, (from non real time part), and then buffer marked free again.
Defines
-
BUFFER_FREE
¶
-
BUFFER_BUSY
¶
-
__Unpack_case_t
(TYPENAME)¶
-
__Unpack_case_p
(TYPENAME)¶
-
__RegisterDebugVariable_case_t
(TYPENAME)¶
-
__RegisterDebugVariable_case_p
(TYPENAME)¶
-
__ResetDebugVariablesIterator_case_t
(TYPENAME)¶
-
__ResetDebugVariablesIterator_case_p
(TYPENAME)¶
Typedefs
-
typedef void (*
__for_each_variable_do_fp
)(dbgvardsc_t *)¶
Functions
-
void
__for_each_variable_do
(__for_each_variable_do_fp fp)¶
-
void *
UnpackVar
(dbgvardsc_t *dsc, void **real_value_p, char *flags)¶
-
void
Remind
(unsigned int offset, unsigned int count, void *p)¶
-
void
RemindIterator
(dbgvardsc_t *dsc)¶
-
int
CheckRetainBuffer
(void)¶
-
void
InitRetain
(void)¶
-
void
__init_debug
(void)¶
-
void
InitiateDebugTransfer
(void)¶
-
void
CleanupRetain
(void)¶
-
void
__cleanup_debug
(void)¶
-
void
__retrieve_debug
(void)¶
-
void
Retain
(unsigned int offset, unsigned int count, void *p)¶
-
static void
BufferIterator
(dbgvardsc_t *dsc, int do_debug)¶
-
void
DebugIterator
(dbgvardsc_t *dsc)¶
-
void
RetainIterator
(dbgvardsc_t *dsc)¶
-
void
PLC_GetTime
(IEC_TIME *)¶
-
int
TryEnterDebugSection
(void)¶
-
long
AtomicCompareExchange
(long *, long, long)¶
-
long long
AtomicCompareExchange64
(long long *, long long, long long)¶
-
void
LeaveDebugSection
(void)¶
-
void
ValidateRetainBuffer
(void)¶
-
void
InValidateRetainBuffer
(void)¶
-
void
__publish_debug
(void)¶
-
void
RegisterDebugVariable
(int idx, void *force)¶
-
void
ResetDebugVariablesIterator
(dbgvardsc_t *dsc)¶
-
void
ResetDebugVariables
(void)¶
-
void
FreeDebugData
(void)¶
-
int
WaitDebugData
(unsigned long *tick)¶
-
int
GetDebugData
(unsigned long *tick, unsigned long *size, void **buffer)¶
Variables
-
long
buffer_state
¶
-
char
debug_buffer
[BUFFER_SIZE]¶
-
char *
buffer_cursor
¶
-
unsigned int
retain_offset
¶
-
dbgvardsc_t
dbgvardsc
[]¶
-
unsigned long
__tick
¶
-
struct
dbgvardsc_t
¶