MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / dumpDebug

Function dumpDebug

third-party/lua-5.5.0/src/ldump.c:227–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

225
226
227static void dumpDebug (DumpState *D, const Proto *f) {
228 int i, n;
229 n = (D->strip) ? 0 : f->sizelineinfo;
230 dumpInt(D, n);
231 if (f->lineinfo != NULL)
232 dumpVector(D, f->lineinfo, cast_uint(n));
233 n = (D->strip) ? 0 : f->sizeabslineinfo;
234 dumpInt(D, n);
235 if (n > 0) {
236 /* 'abslineinfo' is an array of structures of int's */
237 dumpAlign(D, sizeof(int));
238 dumpVector(D, f->abslineinfo, cast_uint(n));
239 }
240 n = (D->strip) ? 0 : f->sizelocvars;
241 dumpInt(D, n);
242 for (i = 0; i < n; i++) {
243 dumpString(D, f->locvars[i].varname);
244 dumpInt(D, f->locvars[i].startpc);
245 dumpInt(D, f->locvars[i].endpc);
246 }
247 n = (D->strip) ? 0 : f->sizeupvalues;
248 dumpInt(D, n);
249 for (i = 0; i < n; i++)
250 dumpString(D, f->upvalues[i].name);
251}
252
253
254static void dumpFunction (DumpState *D, const Proto *f) {

Callers 1

dumpFunctionFunction · 0.70

Calls 3

dumpAlignFunction · 0.85
dumpIntFunction · 0.70
dumpStringFunction · 0.70

Tested by

no test coverage detected