]> sourceware.org Git - systemtap.git/commitdiff
Always limit the scope of deref_fault label
authorRichard Henderson <rth@redhat.com>
Mon, 8 May 2017 19:39:08 +0000 (12:39 -0700)
committerRichard Henderson <rth@redhat.com>
Mon, 8 May 2017 19:39:08 +0000 (12:39 -0700)
While it might be better to change tapset/* to use CATCH_DEREF_FAULT,
it doesn't hurt to always limit the label.

translate.cxx

index 71dbb44410c494ba39417636ce35a550918b62f1..a6d4ec651713675540802e134ae93a44595753fe 100644 (file)
@@ -3794,7 +3794,7 @@ c_unparser::visit_embeddedcode (embeddedcode *s)
     o->newline() << "assert_is_myproc();";
   o->newline() << "{";
 
-  if (s->code.find ("CATCH_DEREF_FAULT") != string::npos)
+  if (1 || s->code.find ("CATCH_DEREF_FAULT") != string::npos)
     o->newline() << "__label__ deref_fault;";
 
   vector<vardecl*> read_defs;
This page took 0.035578 seconds and 5 git commands to generate.