~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/resolve_stack_dump.cc

Merged bug600088-multibyte-comments-in-show-create into bug600635-table-proto-default-null-false.

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
         internal::my_progname);
81
81
  my_print_help(my_long_options);
82
82
  my_print_variables(my_long_options);
83
 
  printf("\n\
84
 
The symbols-file should include the output from:  'nm --numeric-sort drizzled'.\n\
85
 
The numeric-dump-file should contain a numeric stack trace from drizzled.\n\
86
 
If the numeric-dump-file is not given, the stack trace is read from stdin.\n");
 
83
  printf("\n"
 
84
         "The symbols-file should include the output from: \n"
 
85
         "  'nm --numeric-sort drizzled'.\n"
 
86
         "The numeric-dump-file should contain a numeric stack trace "
 
87
         "from drizzled.\n"
 
88
         "If the numeric-dump-file is not given, the stack trace is "
 
89
         "read from stdin.\n");
87
90
}
88
91
 
89
92
static void die(const char* fmt, ...)
160
163
  /* if name not given, assume stdin*/
161
164
 
162
165
  if (!sym_fname)
163
 
    die("Please run nm --numeric-sort on drizzled binary that produced stack \
164
 
trace dump and specify the path to it with -s or --symbols-file");
 
166
    die("Please run nm --numeric-sort on drizzled binary that produced stack "
 
167
        "trace dump and specify the path to it with -s or --symbols-file");
165
168
  if (!(fp_sym= fopen(sym_fname, "r")))
166
169
    die("Could not open %s", sym_fname);
167
170
 
248
251
    SYM_ENTRY se;
249
252
    get_dynamic(&sym_table, (unsigned char*)&se, i);
250
253
    if (se.addr < last)
251
 
      die("sym table does not appear to be sorted, did you forget \
252
 
--numeric-sort arg to nm? trouble addr = %p, last = %p", se.addr, last);
 
254
      die("sym table does not appear to be sorted, did you forget "
 
255
          "--numeric-sort arg to nm? trouble addr = %p, last = %p",
 
256
          se.addr, last);
253
257
    last = se.addr;
254
258
  }
255
259
}