MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / printAddress

Function printAddress

tools/serial2xsbug/serial2xsbug.c:480–499  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478}
479
480static char* printAddress(char* address){
481 char* commandPart = "/xtensa-lx106-elf-addr2line -aipfC -e ";
482 char command[2000] = {0};
483 char* buffer;
484
485 strcat(command, TOOLS_BIN);
486 strcat(command, commandPart);
487 strcat(command, elfPath);
488 strcat(command, " ");
489 strcat(command, address);
490 systemCommand(command, &buffer);
491 if (buffer) {
492 buffer[strlen(buffer) - 1] = 0;
493 if ((strstr(buffer, "??:0") != NULL) || (strstr(buffer, "??:?") != NULL)) {
494 free(buffer);
495 buffer = NULL;
496 }
497 }
498 return buffer;
499}
500
501void fxReadNetworkBuffer(txSerialMachine machine, char* buffer, int size)
502{

Callers 1

fxReadSerialBufferFunction · 0.85

Calls 1

systemCommandFunction · 0.85

Tested by

no test coverage detected