aboutsummaryrefslogtreecommitdiff
path: root/gdb/maint.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-04-08 20:20:46 +0000
committerTom Tromey <tromey@redhat.com>2013-04-08 20:20:46 +0000
commit8625fc1bbae9c0c26859f3f6b2111f737d897d15 (patch)
treee20102b8ad827cd3e7503e26cf36fc6b4c024747 /gdb/maint.c
parente27d198cc40537237b23d1f34f972d3b2e1c805e (diff)
downloadgdb-8625fc1bbae9c0c26859f3f6b2111f737d897d15.zip
gdb-8625fc1bbae9c0c26859f3f6b2111f737d897d15.tar.gz
gdb-8625fc1bbae9c0c26859f3f6b2111f737d897d15.tar.bz2
* maint.c (print_bfd_section_info): Print the section index.
* symmisc.c (dump_msymbols): Print the section index.
Diffstat (limited to 'gdb/maint.c')
-rw-r--r--gdb/maint.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/maint.c b/gdb/maint.c
index 63dd25d..18a804a 100644
--- a/gdb/maint.c
+++ b/gdb/maint.c
@@ -329,6 +329,7 @@ print_bfd_section_info (bfd *abfd,
addr = bfd_section_vma (abfd, asect);
endaddr = addr + bfd_section_size (abfd, asect);
+ printf_filtered (" [%d] ", gdb_bfd_section_index (abfd, asect));
maint_print_section_info (name, flags, addr, endaddr,
asect->filepos, addr_size);
}