debuggers.hg
changeset 13981:1b74475ad511
[LIBELF] Print phdr addresses when loading.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author | Hollis Blanchard <hollisb@us.ibm.com> |
---|---|
date | Fri Feb 09 14:43:21 2007 -0600 (2007-02-09) |
parents | 376940a942e9 |
children | c7251801580a |
files | xen/common/libelf/libelf-loader.c |
line diff
1.1 --- a/xen/common/libelf/libelf-loader.c Fri Feb 09 14:43:21 2007 -0600 1.2 +++ b/xen/common/libelf/libelf-loader.c Fri Feb 09 14:43:21 2007 -0600 1.3 @@ -128,6 +128,8 @@ void elf_load_binary(struct elf_binary * 1.4 filesz = elf_uval(elf, phdr, p_filesz); 1.5 memsz = elf_uval(elf, phdr, p_memsz); 1.6 dest = elf_get_ptr(elf, paddr); 1.7 + elf_msg(elf, "%s: phdr %" PRIu64 " at 0x%p -> 0x%p\n", 1.8 + __func__, i, dest, dest + filesz); 1.9 memcpy(dest, elf->image + offset, filesz); 1.10 memset(dest + filesz, 0, memsz - filesz); 1.11 }