mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
temporaly change/add to debug on powerpc64-linux
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
633b2fc9d7
commit
3bd0fd118d
2 changed files with 15 additions and 9 deletions
|
@ -571,11 +571,17 @@ fill_lines(int num_traces, void **traces, char **syms, int check_debuglink,
|
|||
char *strtab = file + strtab_shdr->sh_offset;
|
||||
ElfW(Sym) *symtab = (ElfW(Sym) *)(file + symtab_shdr->sh_offset);
|
||||
int symtab_count = (int)(symtab_shdr->sh_size / sizeof(ElfW(Sym)));
|
||||
#ifdef __powerpc64__
|
||||
kprintf("\n= %s %lx\n",lines[offset].path,lines[offset].base_addr);
|
||||
#endif
|
||||
for (j = 0; j < symtab_count; j++) {
|
||||
ElfW(Sym) *sym = &symtab[j];
|
||||
int type = ELF_ST_TYPE(sym->st_info);
|
||||
intptr_t saddr = (intptr_t)sym->st_value + current_line->base_addr;
|
||||
if (type != STT_FUNC) continue;
|
||||
#ifdef __powerpc64__
|
||||
kprintf("%s %lx %lx\n",strtab + sym->st_name,sym->st_value,sym->st_size);
|
||||
#endif
|
||||
for (i = offset; i < num_traces; i++) {
|
||||
intptr_t d = (intptr_t)traces[i] - saddr;
|
||||
if (lines[i].line != -1)
|
||||
|
|
18
vm_dump.c
18
vm_dump.c
|
@ -819,15 +819,6 @@ rb_vm_bugreport(void)
|
|||
fputs("\n", stderr);
|
||||
}
|
||||
|
||||
#if HAVE_BACKTRACE || defined(_WIN32)
|
||||
fprintf(stderr, "-- C level backtrace information "
|
||||
"-------------------------------------------\n");
|
||||
rb_print_backtrace();
|
||||
|
||||
|
||||
fprintf(stderr, "\n");
|
||||
#endif /* HAVE_BACKTRACE */
|
||||
|
||||
if (other_runtime_info || vm) {
|
||||
fprintf(stderr, "-- Other runtime information "
|
||||
"-----------------------------------------------\n\n");
|
||||
|
@ -907,5 +898,14 @@ rb_vm_bugreport(void)
|
|||
fprintf(stderr, "\n");
|
||||
}
|
||||
#endif /* __FreeBSD__ */
|
||||
#if HAVE_BACKTRACE || defined(_WIN32)
|
||||
fprintf(stderr, "-- C level backtrace information "
|
||||
"-------------------------------------------\n");
|
||||
rb_print_backtrace();
|
||||
|
||||
|
||||
fprintf(stderr, "\n");
|
||||
#endif /* HAVE_BACKTRACE */
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue