]> sourceware.org Git - systemtap.git/commitdiff
2006-04-12 Martin Hunt <hunt@redhat.com>
authorhunt <hunt>
Wed, 12 Apr 2006 19:20:39 +0000 (19:20 +0000)
committerhunt <hunt>
Wed, 12 Apr 2006 19:20:39 +0000 (19:20 +0000)
PR 2497
* translate.cxx (translate_pass): Don't
reset STP_STRING_SIZE if it was already defined.
Set it to 1024 by default.

ChangeLog
translate.cxx

index c3e05bd6ea439c63f37c02f3237cb3d04eb3d21a..0d5a5e81a96da9faa67060dec2c6e80911b51355 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index cbdf39f9e7291e6006a6224ec1c7c2b02fe1502c..6e915465bb10550ab00019f89c3e487e9c0e7405 100644 (file)
@@ -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)
This page took 0.042817 seconds and 5 git commands to generate.