pike.git / src / program.c

version» Context lines:

pike.git/src/program.c:10754:    params[0] = buf[0];    }    if (instr->flags & I_HASARG2) {    params[1] = buf[1];    }    sprintf(buf[2], "# %s", instr->name);    string_builder_append_disassembly(s, (size_t)addr, addr, addr,    buf[2], params, NULL);   }    + PMOD_EXPORT void string_builder_append_file_directive(struct string_builder *s, +  const PIKE_OPCODE_T *addr, +  const struct pike_string *file) + { +  string_builder_sprintf(s, "0x%016lx%*s%-9s\"", +  addr, +  15, "", +  ".file"); +  string_builder_quote_string(s, file, 0, 0x7fffffff, QUOTE_NO_STRING_CONCAT); +  string_builder_sprintf(s, "\"\n"); + } +  + PMOD_EXPORT void string_builder_append_line_directive(struct string_builder *s, +  const PIKE_OPCODE_T *addr, +  INT_TYPE line) + { +  string_builder_sprintf(s, "0x%016lx%*s%-9s%d\n", +  addr, +  15, "", +  ".line", +  line); + } +    PMOD_EXPORT void string_builder_append_comment(struct string_builder *s,    const PIKE_OPCODE_T *addr,    const char *comment)   {    while (comment && comment[0]) {    const char *ptr = strchr(comment, '\n');    ptrdiff_t bytes;    if (ptr) {    bytes = ptr - comment;    } else {