names that can be demangled.
MERGED FROM HEAD
git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_2_2_0_BRANCH@2788
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);
Int stop_at = VG_(clo_backtrace_size);
{
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;
#define M_VG_LIBNAMESTR 100
/* 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. */
#define M_VG_CMDLINE_STRLEN 1000
UInt lineno;
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);
Bool know_srcloc = VG_(get_filename_linenum)(eip, buf_srcloc, M_VG_ERRTXT,
void VG_(mini_stack_dump) ( Addr eips[], UInt n_eips )
{
UInt i;
- UChar buf[M_VG_ERRTXT];
+ static UChar buf[M_VG_ERRTXT];
Bool main_done = False;
Int stop_at = n_eips;
Int t1, t2, t3, t4;
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
consistent error messages for unimplemented insns. */