MCPcopy Create free account
hub / github.com/F-Stack/f-stack / logStackContent

Function logStackContent

app/redis-6.2.6/src/debug.c:1082–1093  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1080}
1081
1082void logStackContent(void **sp) {
1083 int i;
1084 for (i = 15; i >= 0; i--) {
1085 unsigned long addr = (unsigned long) sp+i;
1086 unsigned long val = (unsigned long) sp[i];
1087
1088 if (sizeof(long) == 4)
1089 serverLog(LL_WARNING, "(%08lx) -> %08lx", addr, val);
1090 else
1091 serverLog(LL_WARNING, "(%016lx) -> %016lx", addr, val);
1092 }
1093}
1094
1095/* Log dump of processor registers */
1096void logRegisters(ucontext_t *uc) {

Callers 1

logRegistersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected