summaryrefslogtreecommitdiffstats
path: root/tapsets.cxx
diff options
context:
space:
mode:
authorjistone <jistone>2007-08-11 02:19:25 +0000
committerjistone <jistone>2007-08-11 02:19:25 +0000
commit8d164e0cd719fff3db67b868b0d942c7296890a2 (patch)
tree06fbb801caf3f3a5c59c69d56df98ad368b5627f /tapsets.cxx
parent7bccd5b6f9778a91a1e66a52689d690bf2228131 (diff)
downloadsystemtap-steved-8d164e0cd719fff3db67b868b0d942c7296890a2.tar.gz
systemtap-steved-8d164e0cd719fff3db67b868b0d942c7296890a2.tar.xz
systemtap-steved-8d164e0cd719fff3db67b868b0d942c7296890a2.zip
2007-08-10 Josh Stone <joshua.i.stone@intel.com>
PR 4593 * translate.cxx (c_unparser::emit_common_header): Add an error_buffer to the context to allow dynamic error messages. * tapsets.cxx (dwflpp::express_as_string): Let deref / store_deref fill in last_error with a detailed message. runtime/ * loc2c-runtime.h (deref, store_deref): Set an error message with the pointer value and name into last_error, since it's hard to determine the details once you've already jumped to deref_fault. tapset/ * conversions.stp (kernel_string, kernel_long, kernel_int, kernel_short, kernel_char, user_string_warn): Use the CONTEXT->error_buffer to create an error message instead of a static local array.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r--tapsets.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/tapsets.cxx b/tapsets.cxx
index eee1a6bc..3b08a348 100644
--- a/tapsets.cxx
+++ b/tapsets.cxx
@@ -1763,12 +1763,9 @@ struct dwflpp
fprintf(memstream, "if (0) goto deref_fault;\n");
// XXX: deref flag not reliable; emit fault label unconditionally
- // XXX: print the faulting address, like the user_string/kernel_string
- // tapset functions do
(void) deref;
fprintf(memstream,
"deref_fault:\n"
- " c->last_error = \"pointer dereference fault\";\n"
" goto out;\n");
fprintf(memstream, "}\n");