From 931db0383e3c3e34888d5ea5a39bf6efe737ec5e Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 12 Apr 2006 19:20:39 +0000 Subject: 2006-04-12 Martin Hunt PR 2497 * translate.cxx (translate_pass): Don't reset STP_STRING_SIZE if it was already defined. Set it to 1024 by default. --- translate.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'translate.cxx') diff --git a/translate.cxx b/translate.cxx index cbdf39f9..6e915465 100644 --- a/translate.cxx +++ b/translate.cxx @@ -3760,7 +3760,11 @@ translate_pass (systemtap_session& s) s.op->newline() << "#endif"; // impedance mismatch - s.op->newline() << "#define STP_STRING_SIZE MAXSTRINGLEN"; + // STP_STRING_SIZE defines the size of the buffer + // used in stack traces. + s.op->newline() << "#ifndef STP_STRING_SIZE"; + s.op->newline() << "#define STP_STRING_SIZE 1024"; + s.op->newline() << "#endif"; s.op->newline() << "#define STP_NUM_STRINGS 1"; if (s.bulk_mode) -- cgit