This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tapsets/17741] New: try-catch statement as a tapset function


https://sourceware.org/bugzilla/show_bug.cgi?id=17741

            Bug ID: 17741
           Summary: try-catch statement as a tapset function
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tapsets
          Assignee: systemtap at sourceware dot org
          Reporter: ajakop at redhat dot com

It would be convenient to have a tapset function as a simplified version of the
try-catch statement. This woud be similar to @choose_defined().

Instead of the wordier try-catch below,

try { part_1 = "k:".modname(addr()) }
catch { part_1 = sprintf("k:%p",addr()) }

The tapset function could be used instead and could be something like:

part_1 = "k:" . try_catch(modname(addr()), sprintf("%p",addr()))

-- 
You are receiving this mail because:
You are the assignee for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]