diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | translate.cxx | 6 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2006-04-12 Martin Hunt <hunt@redhat.com> + PR 2497 + * translate.cxx (translate_pass): Don't + reset STP_STRING_SIZE if it was already defined. + Set it to 1024 by default. + 2006-04-10 Martin Hunt <hunt@redhat.com> * translate.cxx (visit_print_format): Call 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) |