aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Gretton-Dann <matthew.gretton-dann@arm.com>2010-05-04 08:47:13 +0000
committerMatthew Gretton-Dann <matthew.gretton-dann@arm.com>2010-05-04 08:47:13 +0000
commit2f1bdd26c4065b71245da29262039531a9664aae (patch)
treea67d5963d0bb9cba4ff30c6807d774c5be4612b7
parente1c34c5d94deefd6bc672d0058df0bb1513888b6 (diff)
downloadgdb-2f1bdd26c4065b71245da29262039531a9664aae.zip
gdb-2f1bdd26c4065b71245da29262039531a9664aae.tar.gz
gdb-2f1bdd26c4065b71245da29262039531a9664aae.tar.bz2
* gdb/exec.c (print_section_info): Display entry point without arch
specific parts.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/exec.c7
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 972a64d..3b144e8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
+
+ * exec.c (print_section_info): Display entry point without arch
+ specific parts.
+
2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
PR exp/11349.
diff --git a/gdb/exec.c b/gdb/exec.c
index 89511bd..5757a91 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++)
{