mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 06:23:58 +08:00
* gdb/exec.c (print_section_info): Display entry point without arch
specific parts.
This commit is contained in:
@ -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>
|
2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
|
||||||
|
|
||||||
PR exp/11349.
|
PR exp/11349.
|
||||||
|
@ -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>. */
|
/* gcc-3.4 does not like the initialization in <p == t->sections_end>. */
|
||||||
bfd_vma displacement = 0;
|
bfd_vma displacement = 0;
|
||||||
|
bfd_vma entry_point;
|
||||||
|
|
||||||
for (p = t->sections; p < t->sections_end; p++)
|
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"),
|
warning (_("Cannot find section for the entry point of %s.\n"),
|
||||||
bfd_get_filename (abfd));
|
bfd_get_filename (abfd));
|
||||||
|
|
||||||
|
entry_point = gdbarch_addr_bits_remove (gdbarch,
|
||||||
|
bfd_get_start_address (abfd)
|
||||||
|
+ displacement);
|
||||||
printf_filtered (_("\tEntry point: %s\n"),
|
printf_filtered (_("\tEntry point: %s\n"),
|
||||||
paddress (gdbarch, (bfd_get_start_address (abfd)
|
paddress (gdbarch, entry_point));
|
||||||
+ displacement)));
|
|
||||||
}
|
}
|
||||||
for (p = t->sections; p < t->sections_end; p++)
|
for (p = t->sections; p < t->sections_end; p++)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user