* gdb/exec.c (print_section_info): Display entry point without arch
authorMatthew Gretton-Dann <matthew.gretton-dann@arm.com>
Tue, 4 May 2010 08:47:13 +0000 (08:47 +0000)
committerMatthew Gretton-Dann <matthew.gretton-dann@arm.com>
Tue, 4 May 2010 08:47:13 +0000 (08:47 +0000)
specific parts.

gdb/ChangeLog
gdb/exec.c

index 972a64d8fba434832ea0b72040fc262baf5c766f..3b144e8074248e684bb37a68e4db696c36146add 100644 (file)
@@ -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.
index 89511bd296d1c2a2dec29b515d73fa259661707f..5757a917f26812d40deb1911a23ba35d955174a4 100644 (file)
@@ -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++)
     {
This page took 0.03293 seconds and 4 git commands to generate.