notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
32x: drc: handlers wip
[libpicofe.git]
/
linux
/
host_dasm.c
diff --git
a/linux/host_dasm.c
b/linux/host_dasm.c
index
a3c0e00
..
3cc9c7b
100644
(file)
--- a/
linux/host_dasm.c
+++ b/
linux/host_dasm.c
@@
-37,7
+37,7
@@
remove_useless_symbols (asymbol **symbols, long count)
{
asymbol *sym = *in_ptr++;
{
asymbol *sym = *in_ptr++;
- if (sym->name == NULL || sym->name[0] == '\0')
+ if (sym->name == NULL || sym->name[0] == '\0'
|| sym->name[0] == '$'
)
continue;
if (sym->flags & (BSF_DEBUGGING | BSF_SECTION_SYM))
continue;
continue;
if (sym->flags & (BSF_DEBUGGING | BSF_SECTION_SYM))
continue;
@@
-53,6
+53,7
@@
remove_useless_symbols (asymbol **symbols, long count)
*/
*out_ptr++ = sym;
}
*/
*out_ptr++ = sym;
}
+
return out_ptr - symbols;
}
return out_ptr - symbols;
}
@@
-169,7
+170,7
@@
void host_dasm(void *addr, int len)
vma_end = vma + len;
while (vma < vma_end) {
vma_end = vma + len;
while (vma < vma_end) {
- printf(" %p ", (void *)(long)vma);
+ printf("
%p ", (void *)(long)vma);
vma += print_insn_func(vma, &di);
printf("\n");
}
vma += print_insn_func(vma, &di);
printf("\n");
}