From 7f141a9d10334e9bf56d726d0253ff584a8f2bfb Mon Sep 17 00:00:00 2001 From: ddomingo Date: Wed, 29 Oct 2008 15:05:02 +1000 Subject: added new content for Errors, et al --- doc/SystemTap_Beginners_Guide/en-US/Errors.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'doc/SystemTap_Beginners_Guide/en-US') diff --git a/doc/SystemTap_Beginners_Guide/en-US/Errors.xml b/doc/SystemTap_Beginners_Guide/en-US/Errors.xml index e0a61aae..83022a31 100644 --- a/doc/SystemTap_Beginners_Guide/en-US/Errors.xml +++ b/doc/SystemTap_Beginners_Guide/en-US/Errors.xml @@ -12,8 +12,8 @@
Parse and Type Errors -These types of errors occur before the translation phase of a SystemTap session, i.e. before the script is translated into C. - +These types of errors occur while SystemTap attempts to parse and translate the script into C, prior to being converted into a kernel module. + parse error: expected <replaceable>foo</replaceable>, saw <replaceable>bar</replaceable> The script contains a grammatical/typographical error. SystemTap detected type of construct that is incorrect, given the context of the probe. @@ -48,12 +48,12 @@ probe syscall.open semantic error: unresolved type for identifier '<replaceable>foo</replaceable>' -TBD +The identifier (e.g. a variable) was used, but no operation could assign it a type (e.g. integer, string). This occurs, for instance, if you use a variable in a printf statement while no other function in the script can assign a value to it. semantic error: Expecting symbol or array index expression -TBD +SystemTap found an operation that could not assign a value to a variable or unique key referenced by an array index expression.
@@ -65,17 +65,17 @@ probe syscall.open while searching for arity <replaceable>N</replaceable> function, semantic error: unresolved function call -TBD +A function call or array index expression in the script used an invalid number of arguments/parameters. In SystemTap, arity can either refer to the number of key pairs to an array, or the number of parameters to a function. semantic error: array locals not supported: - TBD + The script used an array operation without declaring the array as global first. Similar messages appear if an array is used, but with inconsistent arities. - semantic error: variable ’<replaceable>foo</replaceable>’ modified during ’<replaceable>construct</replaceable>’ - TBD + semantic error: variable ’<replaceable>foo</replaceable>’ modified during ’foreach’ + The array foo is being modifed (being assigned to or deleted from) within an active foreach loop. This error also displays if an operation within the script performs a function call within the foreach loop. -- cgit