Index: gdb/exec.c =================================================================== RCS file: /cvs/src/src/gdb/exec.c,v retrieving revision 1.97 diff -u -p -u -p -r1.97 exec.c --- gdb/exec.c 14 Apr 2010 17:26:11 -0000 1.97 +++ gdb/exec.c 30 Apr 2010 13:05:27 -0000 @@ -669,6 +669,7 @@ print_section_info (struct target_sectio { /* gcc-3.4 does not like the initialization in
sections_end>. */ bfd_vma displacement = 0; + bfd_vma entry_point; for (p = t->sections; p < t->sections_end; p++) { @@ -690,9 +691,11 @@ print_section_info (struct target_sectio warning (_("Cannot find section for the entry point of %s.\n"), bfd_get_filename (abfd)); + entry_point = gdbarch_addr_bits_remove (gdbarch, + bfd_get_start_address (abfd) + + displacement); printf_filtered (_("\tEntry point: %s\n"), - paddress (gdbarch, (bfd_get_start_address (abfd) - + displacement))); + paddress (gdbarch, entry_point)); } for (p = t->sections; p < t->sections_end; p++) {