Go to the documentation of this file.
3 #include "LLSymbolsCommonPublic.h"
18 #ifdef _LLSYMBOLS_HAS_WINCOMMLIBS
46 #ifdef _LLSYMBOLS_HAS_WINCOMMLIBS
57 #if ARCHITECTURE_PTR_SIZE == 64
148 #ifdef _LLSYMBOLS_HAS_VARIANT
153 #endif // _LLSYMBOLS_HAS_VARIANT
186 #ifdef _LLSYMBOLS_HAS_VARIANT
189 #endif // _LLSYMBOLS_HAS_VARIANT
LLSYMBOLS_API LLSym_GetSymbolTable(LLSymWorkspaceHandle wksHandle, const TCHAR *symbolTableFileName, bool_t overwrite)
Get symbol table from server and save it as a local copy. This can be useful for offline symbols brow...
Definition: LLSymbols.cpp:504
LLSYMBOLS_API LLSym_TypeIsStruct(LLSymTypeHandle typeHandle, bool_t *out_IsStruct)
It checks whether the type given a argument of the function is a struct or not. You can also use LLSy...
Definition: LLSymbols.cpp:2442
LLSYMBOLS_API LLSym_FreeTagList(LLSymTagHandle *tagList)
Deallocates a list of tags, obtained with the LLSym_GetGlobalTags function.
Definition: LLSymbols.cpp:846
LLSYMBOLS_API LLSym_GetTag(LLSymWorkspaceHandle wksHandle, const TCHAR *symbolName, LLSymTagHandle *out_tagHandle)
It gets a tag (global or program local variable) for a symbol on the workspace represented by the han...
Definition: LLSymbols.cpp:1101
LLSYMBOLS_API LLSym_GetTagName(LLSymTagHandle tagHandle, TCHAR *out_buf, uint16_t *bufsize)
It returns the name of the global tag represented by the handle object given as argument of the funct...
Definition: LLSymbols.cpp:1221
enum _LLSymProtocol LLSymProtocol
LLSYMBOLS_API LLSym_TypeGetArrayNumDimensions(LLSymTypeHandle typeHandle, uint32_t *out_numDimensions)
It returns the number of dimensions of the type handle given as argument of the function.
Definition: LLSymbols.cpp:2821
LLSYMBOLS_API LLSym_TypeIsString(LLSymTypeHandle typeHandle, bool_t *out_IsString)
It checks whether the type given a argument of the function is a String or not. You can also use LLSy...
Definition: LLSymbols.cpp:2376
LLSYMBOLS_API LLSym_SetTagArrayValue_Ptr(LLSymTagHandle tagHandle, uint32_t idx1, uint32_t idx2, uint32_t idx3, const void *buf, uint32_t bufsize)
It sets the value of the tag given as argument of the function at the specified set of indexes....
Definition: LLSymbols.cpp:1784
LLSYMBOLS_API LLSym_GetGlobalTagsMap(LLSymWorkspaceHandle wksHandle, LLSymTagMapHandle *out_mapHandle)
DEPRECATED - Command not implemented.
Definition: LLSymbols.cpp:1064
LLSYMBOLS_API LLSym_TypeIsFunctionBlock(LLSymTypeHandle typeHandle, bool_t *out_IsFunctionBlock)
It checks whether the type given a argument of the function is a function block or not....
Definition: LLSymbols.cpp:2475
LLSYMBOLS_API LLSym_GetGlobalTags(LLSymWorkspaceHandle wksHandle, LLSymTagHandle **out_tagList, uint32_t *out_numTags)
It gets a list of tags on the workspace represented by the handle object given as argument of the fun...
Definition: LLSymbols.cpp:701
uint16_t timeout
Definition: LLSymbols.h:35
TCHAR ip[60]
Definition: LLSymbols.h:31
LLSYMBOLS_API LLSym_TypeGetChild(LLSymTypeHandle typeHandle, uint32_t childIndex, LLSymTypeHandle *out_typeChild)
It returns the child type handle at the index of the parent complex type given as argument of the fun...
Definition: LLSymbols.cpp:2708
LLSYMBOLS_API LLSym_DeleteGroup(LLSymGroupHandle groupHandle)
Delete the group of tag specified by groupHandle. Tags of the group must be closed explicitely.
Definition: LLSymbols.cpp:2995
LLSYMBOLS_API LLSym_CloseType(LLSymTypeHandle typeHandle)
Close a type handle.
Definition: LLSymbols.cpp:2283
LLSYMBOLS_API LLSym_GetTagArrayAddressBitOffset(LLSymTagHandle tagHandle, uint32_t idx1, uint32_t idx2, uint32_t idx3, llsym_addr_t *out_address, uint32_t *out_bit_offset)
It returns a pair address/offset of the tag handle given as argument of the function,...
Definition: LLSymbols.cpp:1435
@ symProtCommLibs
Definition: LLSymbols.h:20
const struct _LLSymServerApi * serverApi
Definition: LLSymbols.h:51
LLSYMBOLS_API LLSym_GetGroupInfo(LLSymGroupHandle groupHandle, uint32_t *out_numTags, uint32_t *out_byteSize)
Get the size of the group.
Definition: LLSymbols.cpp:3101
LLSYMBOLS_API LLSym_GetTagArrayValue_Ptr(LLSymTagHandle tagHandle, uint32_t idx1, uint32_t idx2, uint32_t idx3, void *out_buf, uint32_t bufsize)
It returns the value of the tag given as argument of the function at the specified set of indexes....
Definition: LLSymbols.cpp:1748
LLSYMBOLS_API LLSym_SetTagValue_Ptr(LLSymTagHandle tagHandle, const void *buf, uint32_t bufsize)
It sets the value of the global tag given as argument of the function.
Definition: LLSymbols.cpp:1711
LLSYMBOLS_API LLSym_GetTagArrayAddress(LLSymTagHandle tagHandle, uint32_t idx1, uint32_t idx2, uint32_t idx3, llsym_addr_t *out_address)
It returns the address of the tag handle given as argument of the function, at the specified set of i...
Definition: LLSymbols.cpp:1397
LLSYMBOLS_API LLSym_IsTagReadOnly(LLSymTagHandle tagHandle, bool_t *out_isReadOnly)
It checks whether the global tag represented by the handle object given as argument of the function i...
Definition: LLSymbols.cpp:1532
LLSYMBOLS_API LLSym_GetGlobalTagsNum(LLSymWorkspaceHandle wksHandle, uint32_t *out_numTags)
Gets the number of global tags.
Definition: LLSymbols.cpp:883
LLSYMBOLS_API LLSym_Shutdown()
It performs the final shutdown process.
Definition: LLSymbols.cpp:166
LLSYMBOLS_API LLSym_SetTagValueIntoGroup_Ptr(LLSymGroupHandle groupHandle, LLSymTagHandle tagHandle, const void *data, uint32_t data_size)
Set tag value into group.
Definition: LLSymbols.cpp:3238
LLSYMBOLS_API LLSym_GetCodeId(LLSymWorkspaceHandle wksHandle, uint32_t *outCodeId, bool_t checkWithTarget, uint16_t index, uint16_t subIndex)
DEPRECATED - Command not implemented.
Definition: LLSymbols.cpp:1173
struct _symProtServerGDB_TCP_t symProtServerGDB_TCP_t
LLSYMBOLS_API LLSym_GetTagDataSize(LLSymTagHandle tagHandle, uint32_t *out_size)
It returns the size of the data contained into the variable represented by the tag....
Definition: LLSymbols.cpp:1470
LLSYMBOLS_API LLSym_OpenWorkspaceEx(uint8_t plc_area, const LLSymServerAddress *address, const TCHAR *targetComm, LLSymWorkspaceHandle *out_wksHandle)
It returns an handle object for a new workspace to be opened.
Definition: LLSymbols.cpp:253
LLSYMBOLS_API LLSym_SetTagValue_VARIANT(LLSymTagHandle tagHandle, VARIANT value)
It writes a tag value from the target, using a VARIANT.
Definition: LLSymbols.cpp:2041
LLSYMBOLS_API LLSym_GetTagValue_VARIANT(LLSymTagHandle tagHandle, VARIANT *out_value)
It reads a tag value from the target, using a VARIANT.
Definition: LLSymbols.cpp:2028
symProtServerGDB_TCP_t tcp
Definition: LLSymbols.h:45
LLSYMBOLS_API LLSym_CloseWorkspace(LLSymWorkspaceHandle wksHandle)
It closes the workspace represented by the handle given as argument of the function.
Definition: LLSymbols.cpp:424
LLSYMBOLS_API LLSym_GetTagAttribute(LLSymTagHandle tagHandle, const TCHAR *attrName, TCHAR *out_buf, uint16_t *bufsize)
DEPRECATED - It returns textual attributes for the tag given as argument of the function.
Definition: LLSymbols.cpp:1187
LLSYMBOLS_API LLSym_GetTagDataFullSize(LLSymTagHandle tagHandle, uint32_t *out_size)
It returns the full size of the data contained into the variable represented by the tag....
Definition: LLSymbols.cpp:1501
LLSYMBOLS_API LLSym_QueryGlobalTags(LLSymWorkspaceHandle wksHandle, const TCHAR *query, LLSymTagHandle **out_tagList, uint32_t *out_numTags)
It gets a list of tags on the workspace matching the specified query.
Definition: LLSymbols.cpp:775
LLSYMBOLS_API LLSym_QueryGlobalTagsNum(LLSymWorkspaceHandle wksHandle, const TCHAR *query, uint32_t *out_numTags)
Gets the number of global tags matching the specified query.
Definition: LLSymbols.cpp:918
struct _LLSymServerAddress LLSymServerAddress
LLSYMBOLS_API LLSym_WriteMemory(LLSymWorkspaceHandle wksHandle, llsym_addr_t address, const void *buf, uint32_t size)
DEPRECATED - Command not implemented.
Definition: LLSymbols.cpp:1158
@ symProtGDB_TCP
Definition: LLSymbols.h:17
LLSYMBOLS_API LLSym_WriteGroup(LLSymGroupHandle groupHandle)
Write the values of all the tags of the group in a row.
Definition: LLSymbols.cpp:3168
LLSYMBOLS_API LLSym_TypeIsBasic(LLSymTypeHandle typeHandle, bool_t *out_IsBasic)
It checks whether the type given a argument of the function is basic or not. You can also use LLSym_T...
Definition: LLSymbols.cpp:2310
LLSymProtocol protocol
Definition: LLSymbols.h:40
LLSYMBOLS_API LLSym_TypeIsSigned(LLSymTypeHandle typeHandle, bool_t *out_IsSigned)
It checks whether the type given a argument of the function is signed or not. You can also use LLSym_...
Definition: LLSymbols.cpp:2541
LLSYMBOLS_API LLSym_GetTagAddressBitOffset(LLSymTagHandle tagHandle, llsym_addr_t *out_address, uint32_t *out_bit_offset)
It returns the pair address/offset at which the tag given as argument of the function is.
Definition: LLSymbols.cpp:1358
LLSYMBOLS_API LLSym_TypeIsArray(LLSymTypeHandle typeHandle, bool_t *out_IsArray)
It checks whether the type given a argument of the function is an array or not. You can also use LLSy...
Definition: LLSymbols.cpp:2409
LLSYMBOLS_API LLSym_QueryFillGlobalTagList(LLSymWorkspaceHandle wksHandle, const TCHAR *query, LLSymTagHandle *tagList, uint32_t numTags)
Fills a list of global tags, according to the query. Similar to LLSym_QueryGlobalTags(),...
Definition: LLSymbols.cpp:1012
LLSYMBOLS_API LLSym_GetGlobalTag(LLSymWorkspaceHandle wksHandle, const TCHAR *symbolName, LLSymTagHandle *out_tagHandle)
It gets a global tag for a symbol on the workspace represented by the handle object given as argument...
Definition: LLSymbols.cpp:578
LLSYMBOLS_API LLSym_SetTagRawValue_Ptr(LLSymTagHandle tagHandle, const void *buf, uint32_t bufsize)
It sets the content of the buffer as the full value of the tag given as argument of the function.
Definition: LLSymbols.cpp:1872
_LLSymProtocol
Definition: LLSymbols.h:15
LLSYMBOLS_API LLSym_GetTagDims(LLSymTagHandle tagHandle, uint32_t *out_dim1, uint32_t *out_dim2, uint32_t *out_dim3)
It returns up to 3 valid values for the dimensions of the tag handle given as argument of the functio...
Definition: LLSymbols.cpp:1631
LLSYMBOLS_API LLSym_ReadMemory(LLSymWorkspaceHandle wksHandle, llsym_addr_t address, void *out_buf, uint32_t size)
DEPRECATED - Command not implemented.
Definition: LLSymbols.cpp:1144
LLSYMBOLS_API LLSym_GetTagValueFromGroup_VARIANT(LLSymGroupHandle groupHandle, LLSymTagHandle tagHandle, VARIANT *out_value)
Get tag basic value from group.
Definition: LLSymbols.cpp:3276
Definition: LLSymbols.h:39
LLSYMBOLS_API LLSym_CloseTag(LLSymTagHandle tagHandle)
It closes the global tag represented by the handle object given as argument of the function....
Definition: LLSymbols.cpp:618
@ symProtDirectAccess
Definition: LLSymbols.h:23
LLSYMBOLS_API LLSym_TypeIsInteger(LLSymTypeHandle typeHandle, bool_t *out_IsInteger)
It checks whether the type given a argument of the function is integer or not. You can also use LLSym...
Definition: LLSymbols.cpp:2574
LLSYMBOLS_API LLSym_GetTagValueFromGroup_Ptr(LLSymGroupHandle groupHandle, LLSymTagHandle tagHandle, void *data, uint32_t data_size)
Get tag value from group.
Definition: LLSymbols.cpp:3201
LLSYMBOLS_API LLSym_GetTagAddress(LLSymTagHandle tagHandle, llsym_addr_t *out_address)
It returns the address of the tag given as argument of the function.
Definition: LLSymbols.cpp:1322
enum _LLSymTyVar LLSymTyVar
LLSYMBOLS_API LLSym_ReadGroup(LLSymGroupHandle groupHandle)
Refresh the values of all the tags of the group in a row.
Definition: LLSymbols.cpp:3136
void * LLSymTagHandle
Definition: LLSymbols.h:72
void * LLSymWorkspaceHandle
Definition: LLSymbols.h:71
LLSYMBOLS_API LLSym_TypeIsComplex(LLSymTypeHandle typeHandle, bool_t *out_IsComplex)
It checks whether the type given a argument of the function is complex or not. You can also use LLSym...
Definition: LLSymbols.cpp:2343
LLSYMBOLS_API LLSym_TypeGetName(LLSymTypeHandle typeHandle, TCHAR *out_buf, uint16_t *bufsize)
It returns the name of the type represented by the handle given as argument of the function.
Definition: LLSymbols.cpp:2641
LLSYMBOLS_API LLSym_TypeGetNumChildren(LLSymTypeHandle typeHandle, uint32_t *out_NumChildren)
It returns the number of children of the type handle given as argument of the function.
Definition: LLSymbols.cpp:2674
LLSYMBOLS_API LLSym_GetTagArrayValue_VARIANT(LLSymTagHandle tagHandle, uint32_t idx1, uint32_t idx2, uint32_t idx3, VARIANT *out_value)
It returns the value of the tag given as argument of the function at the specified set of indexes,...
Definition: LLSymbols.cpp:2057
LLSYMBOLS_API LLSym_GetTagValue_Ptr(LLSymTagHandle tagHandle, void *out_buf, uint32_t bufsize)
It returns the value global tag given as argument of the function.
Definition: LLSymbols.cpp:1663
LLSYMBOLS_API LLSym_IsInitOk()
It checks whether the initialization process was right or not.
Definition: LLSymbols.cpp:195
LLSYMBOLS_API LLSym_IsValidWorkspace(LLSymWorkspaceHandle wksHandle)
It checks whether the workspace represented by the the handle object given as argument of the functio...
Definition: LLSymbols.cpp:471
LLSYMBOLS_API LLSym_IsTagBitAddress(LLSymTagHandle tagHandle, bool_t *out_isBitAddress)
It checks whether the tag given as argument of the function is identified by a bit address or not.
Definition: LLSymbols.cpp:1563
LLSYMBOLS_API LLSym_AddTagToGroup(LLSymGroupHandle groupHandle, LLSymTagHandle tagHandle)
Add specified tag to group of tags.
Definition: LLSymbols.cpp:3029
LLSYMBOLS_API LLSym_GetTagRawValue_Ptr(LLSymTagHandle tagHandle, void *out_buf, uint32_t bufsize)
It returns a binary blob containing all the values of the tag given as argument of the function.
Definition: LLSymbols.cpp:1816
LLSYMBOLS_API LLSym_TypeGetArrayDimensions(LLSymTypeHandle typeHandle, uint32_t *out_Dimensions, uint8_t bufsize)
It returns the sizes of all dimensions for array types.
Definition: LLSymbols.cpp:2889
LLSYMBOLS_API LLSym_GetTagDescr(LLSymTagHandle tagHandle, TCHAR *out_buf, uint16_t *bufsize)
It returns a string representing the description of the global tag represented by the handle object g...
Definition: LLSymbols.cpp:1595
LLSYMBOLS_API LLSym_OpenWorkspace(uint8_t plc_area, const LLSymServerAddress *address, LLSymWorkspaceHandle *out_wksHandle)
It returns an handle object for a new workspace to be opened.
Definition: LLSymbols.cpp:379
LLSYMBOLS_API LLSym_GetTagDataType(LLSymTagHandle tagHandle, TCHAR *out_buf, uint16_t *bufsize)
It returns the type of the variable represented by the handle object given as argument of the functio...
Definition: LLSymbols.cpp:1255
LLSYMBOLS_API LLSym_CreateGroup(LLSymWorkspaceHandle wksHandle, LLSymGroupHandle *out_groupHandle)
It returns an LLSymGroupHandle handle of the empty group of tags.
Definition: LLSymbols.cpp:2955
LLSYMBOLS_API LLSym_TypeGetChildName(LLSymTypeHandle typeHandle, uint32_t childIndex, TCHAR *out_childName, uint16_t *bufsize)
It returns the child type name at the index of the parent complex type given as argument of the funct...
Definition: LLSymbols.cpp:2788
LLSYMBOLS_API LLSym_TypeGetArrayDimension(LLSymTypeHandle typeHandle, uint32_t idx, uint32_t *out_Dimension)
It returns the size of the dimension at the specified index of the type handle given as argument of t...
Definition: LLSymbols.cpp:2855
LLSYMBOLS_API LLSym_GetTagDataTypeVar(LLSymTagHandle tagHandle, LLSymTyVar *out_type_var)
It returns the type of the variable represented by the handle object given as argument of the functio...
Definition: LLSymbols.cpp:1288
LLSYMBOLS_API LLSym_TypeIsNumeric(LLSymTypeHandle typeHandle, bool_t *out_IsNumeric)
It checks whether the type given a argument of the function is numeric or not. You can also use LLSym...
Definition: LLSymbols.cpp:2508
LLSYMBOLS_API LLSym_SetTagArrayValue_VARIANT(LLSymTagHandle tagHandle, uint32_t idx1, uint32_t idx2, uint32_t idx3, VARIANT value)
It sets the value of the tag given as argument of the function at the specified set of indexes,...
Definition: LLSymbols.cpp:2145
void * LLSymGroupHandle
Definition: LLSymbols.h:75
addr32_t llsym_addr_t
Definition: LLSymbolsDefs.h:185
LLSYMBOLS_API LLSym_TypeGetChildByName(LLSymTypeHandle typeHandle, const TCHAR *fieldName, LLSymTypeHandle *out_typeChild)
It returns the child type handle by specifying its fieldName within the parent complex type given as ...
Definition: LLSymbols.cpp:2747
void * LLSymTagMapHandle
Definition: LLSymbols.h:73
LLSYMBOLS_API LLSym_GetTagType(LLSymTagHandle tagHandle, LLSymTypeHandle *typeHandle)
It returns the type handle of the tag given as argument of the function.
Definition: LLSymbols.cpp:2241
LLSYMBOLS_API LLSym_GetServerVersion(LLSymWorkspaceHandle wksHandle, uint8_t *out_verMajor, uint8_t *out_verMinor, uint8_t *out_verRevision, uint8_t *out_verBuild)
returns the protocol version supported by symbols server.
Definition: LLSymbols.cpp:394
uint16_t port
Definition: LLSymbols.h:33
LLSYMBOLS_API LLSym_Init()
It initializes the system.
Definition: LLSymbols.cpp:139
void * LLSymTypeHandle
Definition: LLSymbols.h:74
TCHAR commString[64]
Definition: LLSymbols.h:48
Definition: LLSymbols.h:29
LLSYMBOLS_API LLSym_TypeGetSize(LLSymTypeHandle typeHandle, uint32_t *out_Size)
It returns the size of the type represented by the handle given as argument of the function.
Definition: LLSymbols.cpp:2607
LLSYMBOLS_API LLSym_FillGlobalTagList(LLSymWorkspaceHandle wksHandle, LLSymTagHandle *tagList, uint32_t numTags)
Fills a list of global tags. Similar to LLSym_GetGlobalTags(), but does not allocate the resulting ta...
Definition: LLSymbols.cpp:961
LLSYMBOLS_API LLSym_FreeTagMap(LLSymTagMapHandle mapHandle)
DEPRECATED - Command not implemented.
Definition: LLSymbols.cpp:1075
LLSYMBOLS_API LLSym_TypeGetProperties(LLSymTypeHandle typeHandle, uint32_t *out_Properties)
It returns as a bitmask the various flags of the request type (see enum LLSymTypeProperty)
Definition: LLSymbols.cpp:2922
LLSYMBOLS_API LLSym_SetTagValueIntoGroup_VARIANT(LLSymGroupHandle groupHandle, LLSymTagHandle tagHandle, VARIANT value)
Set tag basic value into group.
Definition: LLSymbols.cpp:3368
LLSYMBOLS_API LLSym_GetTagFromMap(LLSymTagMapHandle mapHandle, const TCHAR *symbolName, LLSymTagHandle *out_tagHandle)
DEPRECATED - Command not implemented.
Definition: LLSymbols.cpp:1088
LLSYMBOLS_API LLSym_RemoveTagFromGroup(LLSymGroupHandle groupHandle, LLSymTagHandle tagHandle)
Remove specified tag from group of tags.
Definition: LLSymbols.cpp:3064