|
From: Nicholas N. <nj...@ca...> - 2004-10-18 15:56:21
|
CVS commit by nethercote:
Increase the size of M_VG_ERRTXT from 512B to 4KB, increasing the size of C++
names that can be demangled.
MERGED FROM HEAD
M +3 -3 vg_errcontext.c 1.58.2.1
M +1 -1 vg_include.h 1.235.2.3
M +4 -4 vg_symtab2.c 1.85.2.1
M +1 -1 vg_to_ucode.c 1.146.2.1
--- valgrind/coregrind/vg_errcontext.c #1.58:1.58.2.1
@@ -333,5 +333,5 @@ static void gen_suppression(Error* err)
{
Int i;
- UChar buf[M_VG_ERRTXT];
+ static UChar buf[M_VG_ERRTXT];
Bool main_done = False;
ExeContext* ec = VG_(get_error_where)(err);
@@ -986,6 +986,6 @@ static Supp* is_suppressible_error ( Err
Int i;
- Char caller_obj[VG_N_SUPP_CALLERS][M_VG_ERRTXT];
- Char caller_fun[VG_N_SUPP_CALLERS][M_VG_ERRTXT];
+ static Char caller_obj[VG_N_SUPP_CALLERS][M_VG_ERRTXT];
+ static Char caller_fun[VG_N_SUPP_CALLERS][M_VG_ERRTXT];
Supp* su;
--- valgrind/coregrind/vg_include.h #1.235.2.2:1.235.2.3
@@ -75,5 +75,5 @@
/* Max length of a text fragment used to construct error messages. */
-#define M_VG_ERRTXT 512
+#define M_VG_ERRTXT 4096
/* Max length of the string copied from env var VG_ARGS at startup. */
--- valgrind/coregrind/vg_symtab2.c #1.85:1.85.2.1
@@ -2175,7 +2175,7 @@ Char* VG_(describe_eip)(Addr eip, Char*
UChar ibuf[20];
UInt n = 0;
- UChar buf_fn[M_VG_ERRTXT];
- UChar buf_obj[M_VG_ERRTXT];
- UChar buf_srcloc[M_VG_ERRTXT];
+ static UChar buf_fn[M_VG_ERRTXT];
+ static UChar buf_obj[M_VG_ERRTXT];
+ static UChar buf_srcloc[M_VG_ERRTXT];
Bool know_fnname = VG_(get_fnname) (eip, buf_fn, M_VG_ERRTXT);
Bool know_objname = VG_(get_objname)(eip, buf_obj, M_VG_ERRTXT);
@@ -2215,5 +2215,5 @@ void VG_(mini_stack_dump) ( Addr eips[],
{
UInt i;
- UChar buf[M_VG_ERRTXT];
+ static UChar buf[M_VG_ERRTXT];
Bool main_done = False;
--- valgrind/coregrind/vg_to_ucode.c #1.146:1.146.2.1
@@ -3858,5 +3858,5 @@ static Addr disInstr ( UCodeBlock* cb, A
UChar dis_buf[50];
Int am_sz, d_sz;
- Char loc_buf[M_VG_ERRTXT];
+ static Char loc_buf[M_VG_ERRTXT];
/* Holds eip at the start of the insn, so that we can print
|