]> sourceware.org Git - systemtap.git/commitdiff
stap.bpf optional debugging aid :: show location of bpfasm-embeddedcode
authorSerhei Makarov <smakarov@redhat.com>
Mon, 1 Feb 2021 18:06:05 +0000 (13:06 -0500)
committerSerhei Makarov <smakarov@redhat.com>
Mon, 1 Feb 2021 18:06:05 +0000 (13:06 -0500)
bpf-translate.cxx

index e02ad49012e42dc40d066e87d3e999fcb2ed5013..0f4a7de7fbd81f295f1aee8eece15d9af9b73d07 100644 (file)
@@ -1480,6 +1480,9 @@ bpf_unparser::visit_embeddedcode (embeddedcode *s)
 {
 #ifdef DEBUG_CODEGEN
   this_ins.notes.push("asm");
+  // XXX verbose; for more precise diagnostics:
+  //std::stringstream os; os << s->tok->location;
+  //this_ins.notes.push("asm@" + os.str());
 #endif
   // XXX allocate asm_stmts off the stack to avoid deallocating tok on throw
   std::vector<asm_stmt> *statements_p = new std::vector<asm_stmt>;
This page took 0.029804 seconds and 5 git commands to generate.