]> sourceware.org Git - systemtap.git/commit
stapbpf (for PR27030): bugfix error messages in bpf assembly
authorSerhei Makarov <smakarov@redhat.com>
Mon, 14 Dec 2020 17:39:51 +0000 (12:39 -0500)
committerSerhei Makarov <smakarov@redhat.com>
Mon, 14 Dec 2020 17:43:28 +0000 (12:43 -0500)
commitb71d20af819bdb862ee6c8a739971db0c98dbeed
treeb92df3cefcdc12c7a865cb1675c42345d6966e77
parent1120422c2822be9e00d8d11cab3fb381d2ce0cce
stapbpf (for PR27030): bugfix error messages in bpf assembly

Need to retain the asm_stmts vector so that bpf assembly tokens
are not deallocated on exception throw.

Otherwise, printing semantic errors from bpf assembly causes segfault.

* bpf-translate.cxx (struct bpf_unparser): retain asm_stmts vector.
(bpf_unparser::visit_embeddedcode): reuse retained asm_stmts vector.
bpf-translate.cxx
This page took 0.027208 seconds and 5 git commands to generate.