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: finish MAC, gen drc entry/exit (for statically alloced regs)
[libpicofe.git]
/
linux
/
host_dasm.c
diff --git
a/linux/host_dasm.c
b/linux/host_dasm.c
index
91ea4da
..
d2d6d0a
100644
(file)
--- a/
linux/host_dasm.c
+++ b/
linux/host_dasm.c
@@
-144,6
+144,7
@@
static int insn_printf(void *f, const char *format, ...)
static void host_dasm_init(void)
{
static void host_dasm_init(void)
{
+ bfd_init();
slurp_symtab(g_argv[0]);
init_disassemble_info(&di, NULL, insn_printf);
slurp_symtab(g_argv[0]);
init_disassemble_info(&di, NULL, insn_printf);
@@
-170,7
+171,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");
}