diff options
author | mgretton <mgretton> | 2010-05-04 08:47:11 +0000 |
---|---|---|
committer | mgretton <mgretton> | 2010-05-04 08:47:11 +0000 |
commit | 384b96f4e6097e1d6492e9e3681017fe04d56749 (patch) | |
tree | f4088e4fe04dc2b10350aacb0a2a1d3456fb645f /gdb/exec.c | |
parent | 3c0433dfe2835ab40ad098baec7e87cfcca0c0e2 (diff) | |
download | gdb-384b96f4e6097e1d6492e9e3681017fe04d56749.tar.gz |
* gdb/exec.c (print_section_info): Display entry point without arch
specific parts.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r-- | gdb/exec.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/exec.c b/gdb/exec.c index 89511bd296d..5757a917f26 100644 --- a/gdb/exec.c +++ b/gdb/exec.c @@ -669,6 +669,7 @@ print_section_info (struct target_section_table *t, bfd *abfd) { /* gcc-3.4 does not like the initialization in <p == t->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_section_table *t, bfd *abfd) 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++) { |